RFR: 8355632: WhiteBox.waitForReferenceProcessing() fails assert for return type
Stuart Marks
smarks at openjdk.org
Sat Apr 26 00:12:44 UTC 2025
On Fri, 25 Apr 2025 23:37:13 GMT, Brent Christian <bchristi at openjdk.org> wrote:
> The newly-added `WhiteBox.waitForReferenceProcessing()` (see [8305186](https://bugs.openjdk.org/browse/JDK-8305186)) always fails with assertions enabled.
> I've updated the assertion, and also added the test I used locally to test the new method (just not with assertions enabled, apparently.)
test/lib/jdk/test/whitebox/WhiteBox.java line 572:
> 570: wfrp = Reference.class.getDeclaredMethod("waitForReferenceProcessing");
> 571: wfrp.setAccessible(true);
> 572: assert wfrp.getReturnType().equals(Class.forPrimitiveName("boolean"));
Does `boolean.class` work?
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/24892#discussion_r2061055041
More information about the hotspot-gc-dev
mailing list