RFR: 8343700: ceil_log2 should not loop endlessly [v2]

Sonia Zaldana Calles szaldana at openjdk.org
Wed Nov 13 18:29:04 UTC 2024


> 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

Sonia Zaldana Calles has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains two additional commits since the last revision:

 - Merge branch 'openjdk:master' into JDK-8343700
 - 8343700: ceil_log2 should not loop endlessly

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/22074/files
  - new: https://git.openjdk.org/jdk/pull/22074/files/229441a6..0dd27068

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=22074&range=01
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=22074&range=00-01

  Stats: 100572 lines in 2730 files changed: 23208 ins; 68851 del; 8513 mod
  Patch: https://git.openjdk.org/jdk/pull/22074.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/22074/head:pull/22074

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


More information about the hotspot-dev mailing list