The problem happens when  JvmtiTagMapKey::heapwalk_object() is trying to create 
JvmtiHeapwalkObject for object that has been already freed by GC. 
The standard JDK works the same way. It doesn't fail because comparing the oops 
and not trying to create JvmtiHeapwalkObject.

I verified that test pass now.

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

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

Commit messages:
 - 8375355

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

PR: https://git.openjdk.org/valhalla/pull/2323

Reply via email to