RFR: 8344609: Check ResourceMark nesting when allocating a GrowableArray on an alternative ResourceArea

Richard Reingruber rrich at openjdk.org
Wed Nov 20 14:48:33 UTC 2024


With this change the GrowableArray nesting check is also performed if allocating from an `Arena` which in fact is a `ResourceArea`.

The additional checking can help find issue as [JDK-8328085](https://bugs.openjdk.org/browse/JDK-8328085).

More testing is pending.

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

Commit messages:
 - Check GrowableArray nesting if allocating on alternative ResourceArea

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

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


More information about the hotspot-dev mailing list