RFR: 8329261: G1: interpreter post-barrier x86 code asserts index size of wrong buffer

Roberto Castañeda Lozano rcastanedalo at openjdk.org
Thu Apr 4 08:56:19 UTC 2024


This changeset updates an assert in G1's interpreter x86 post-barrier logic so that it refers to the right queue (`G1DirtyCardQueue` rather than pre-barrier's `SATBMarkQueue`) and moves the assert closer to the logic that exploits it.

Thanks to Kim Barrett for reporting the issue and suggesting the fix.

**Testing**: built on windows-x64, linux-x64, and macosx-x64.

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

Commit messages:
 - Make comment more precise
 - Replace 'SATBMarkQueue' with 'G1DirtyCardQueue' and move assertion closer to the use

Changes: https://git.openjdk.org/jdk/pull/18616/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=18616&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8329261
  Stats: 5 lines in 1 file changed: 3 ins; 2 del; 0 mod
  Patch: https://git.openjdk.org/jdk/pull/18616.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/18616/head:pull/18616

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


More information about the hotspot-dev mailing list