RFR: 8350616: Skip ValidateHazardPtrsClosure in non-debug builds [v2]
David Holmes
dholmes at openjdk.org
Wed Feb 26 07:12:17 UTC 2025
> Simple cleanup to skip debug code in a non-debug build. This removes some overhead when working with very large numbers of threads. Basic perf testing starting a new thread when 20000 already exist:
>
> Before: 532377 ns
> After: 361178 ns
>
> which is 32% improvement.
>
> Testing:
> - tiers 1-3 sanity
>
> Thanks
David Holmes has updated the pull request incrementally with one additional commit since the last revision:
Change DEBUG to ASSERT
-------------
Changes:
- all: https://git.openjdk.org/jdk/pull/23762/files
- new: https://git.openjdk.org/jdk/pull/23762/files/2411daa6..e38b45ed
Webrevs:
- full: https://webrevs.openjdk.org/?repo=jdk&pr=23762&range=01
- incr: https://webrevs.openjdk.org/?repo=jdk&pr=23762&range=00-01
Stats: 2 lines in 1 file changed: 0 ins; 0 del; 2 mod
Patch: https://git.openjdk.org/jdk/pull/23762.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/23762/head:pull/23762
PR: https://git.openjdk.org/jdk/pull/23762
More information about the hotspot-runtime-dev
mailing list