RFR: 8345173: BlockLocationPrinter::print_location misses a ResourceMark
Thomas Schatzl
tschatzl at openjdk.org
Fri Nov 29 09:41:08 UTC 2024
Hi all,
please review this small change that adds a missing `ResourceMark` to `BlockLocationPrinter`; it can be called at very arbitrary places (e.g. the stop() method of MacroAssembler), and without this change it might fail with a "Missing ResourceMark error - possible memory leak" error instead of providing the stop() output (and then faiiling).
Testing: local testing, after the change the ResourceMark crash goes away, gha
Thanks,
Thomas
-------------
Commit messages:
- * add missing include
- 8345173
Changes: https://git.openjdk.org/jdk/pull/22455/files
Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=22455&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8345173
Stats: 2 lines in 1 file changed: 2 ins; 0 del; 0 mod
Patch: https://git.openjdk.org/jdk/pull/22455.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/22455/head:pull/22455
PR: https://git.openjdk.org/jdk/pull/22455
More information about the hotspot-gc-dev
mailing list