`regionAtOffset()` and `toBitMapOffset()` expects a byte offset, but they 
receive a "slot". The fix is to convert the slot back to bytes first.

Testing: `test/hotspot/jtreg/serviceability/sa` with Shenandoah on 
linux-x86_64-server-fastdebug.

---------
- [x] I confirm that I make this contribution in accordance with the [OpenJDK 
Interim AI Policy](https://openjdk.org/legal/ai).

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

Commit messages:
 - 8398741: Shenandoah: ShenandoahMarkBitmap::at() mixes oop slots with bytes

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

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

Reply via email to