Integrated: 8343700: ceil_log2 should not loop endlessly

Sonia Zaldana Calles szaldana at openjdk.org
Tue Nov 19 19:15:57 UTC 2024


On Wed, 13 Nov 2024 14:28:37 GMT, Sonia Zaldana Calles <szaldana at openjdk.org> wrote:

> Hi all, 
> 
> This PR addresses [8343700](https://bugs.openjdk.org/browse/JDK-8343700) where ceil_log2 looped endlessly if the input value has the highest bit set. 
> 
> I also dealt with the case where we try to find ceil_log2(1) which would've returned 1 as opposed to 0. 
> 
> Cheers, 
> Sonia

This pull request has now been integrated.

Changeset: 3328b4ec
Author:    Sonia Zaldana Calles <szaldana at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/3328b4ecf225f95edfce6ab848dcfb62ddc1aaff
Stats:     48 lines in 3 files changed: 41 ins; 1 del; 6 mod

8343700: ceil_log2 should not loop endlessly

Reviewed-by: shade, kbarrett, aph, stuefe

-------------

PR: https://git.openjdk.org/jdk/pull/22074


More information about the hotspot-dev mailing list