RFR: 8227713: Convert G1's assert_ macros into NOT_DEBUG_RETURN functions

Lei Zaakjyu duke at openjdk.org
Sat Dec 23 01:21:12 UTC 2023


Description:
In G1CollectedHeap there are several "assert_*" macros (e.g. assert_heap_locked_and_not_at_safepoint) that were presumably implemented as macros due to bad stack traces in hs_err files. 

Convert them to functions using NOT_DEBUG_RETURN to avoid the macros.

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

Commit messages:
 - refactor heap locking assert functions

Changes: https://git.openjdk.org/jdk/pull/17188/files
 Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=17188&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8227713
  Stats: 120 lines in 2 files changed: 56 ins; 56 del; 8 mod
  Patch: https://git.openjdk.org/jdk/pull/17188.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/17188/head:pull/17188

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


More information about the hotspot-gc-dev mailing list