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

Lei Zaakjyu duke at openjdk.org
Sat Dec 23 02:13:10 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.

Lei Zaakjyu has updated the pull request incrementally with one additional commit since the last revision:

  use the 'DEBUG_ONLY' macro

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/17188/files
  - new: https://git.openjdk.org/jdk/pull/17188/files/17294833..6a18b094

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=17188&range=03
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=17188&range=02-03

  Stats: 14 lines in 1 file changed: 7 ins; 0 del; 7 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