RFR: 8340392: Handle OopStorage in location decoder [v2]

Aleksey Shipilev shade at openjdk.org
Wed Sep 18 17:58:17 UTC 2024


> Another debugging QoL improvement.  Currently, when there is a pointer into `OopStorage` that we need to decode for the error log, we just print:
> 
>   0x00007ad45c169e10 into live malloced block starting at 0x00007ad45c169dd0, size 632, tag mtInternal
> 
> 
> This is reported by NMT after [JDK-8304815](https://bugs.openjdk.org/browse/JDK-8304815). It is likely worse without NMT. We can actually decode which block in which `OopStorage` the address likely belongs to. This becomes handy when debugging GC crashes that involve `OopStorage`-handled roots.
> 
> This patch is able to print the following instead:
> 
> 
>   0x0000000102c05bd0 is a pointer 2/64 into block 0 in oop storage "VM Global"

Aleksey Shipilev has updated the pull request incrementally with one additional commit since the last revision:

  Test touchups

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/21072/files
  - new: https://git.openjdk.org/jdk/pull/21072/files/22491b08..504d1f97

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

  Stats: 6 lines in 1 file changed: 1 ins; 2 del; 3 mod
  Patch: https://git.openjdk.org/jdk/pull/21072.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/21072/head:pull/21072

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


More information about the hotspot-dev mailing list