RFR: 8365256: RelocIterator should use indexes instead of pointers [v2]
    Johan Sjölen 
    jsjolen at openjdk.org
       
    Mon Aug 18 09:47:15 UTC 2025
    
    
  
> Hi,
> 
> This PR replaces the `current` and `end` pointers with a `base` pointer alongside a `current` index and a `len`. This allows us to have `-1` as the initial value for current, while retaining `nullptr` as the 'dead' value for `_mutable_data`.
> 
> Performance testing shows no difference/performance improvements on DaCapo Linux x64. I don't think that these are actual improvements, but at least there are no clear regressions.
> 
> Testing: GHA
Johan Sjölen has updated the pull request incrementally with two additional commits since the last revision:
 - Good catch by Vladimir
 - Vladimir's comments
-------------
Changes:
  - all: https://git.openjdk.org/jdk/pull/26569/files
  - new: https://git.openjdk.org/jdk/pull/26569/files/c5ea4184..e71b4924
Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=26569&range=01
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=26569&range=00-01
  Stats: 7 lines in 3 files changed: 3 ins; 2 del; 2 mod
  Patch: https://git.openjdk.org/jdk/pull/26569.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/26569/head:pull/26569
PR: https://git.openjdk.org/jdk/pull/26569
    
    
More information about the hotspot-compiler-dev
mailing list