RFR: 8352565: Add native method implementation of Reference.get() [v2]
Kim Barrett
kbarrett at openjdk.org
Wed Apr 2 18:37:53 UTC 2025
On Tue, 1 Apr 2025 22:01:55 GMT, Brent Christian <bchristi at openjdk.org> wrote:
>> Kim Barrett has updated the pull request incrementally with one additional commit since the last revision:
>>
>> parameterized return type of native get0
>
> test/hotspot/jtreg/gc/TestNativeReferenceGet.java line 162:
>
>> 160: System.out.println("Testing nonconcurrent GC");
>> 161: clearReferents();
>> 162: strengthenReferents();
>
> Might the GC clear refs between `clearReferents()` and `strengthenReferents()`?
Yeah, an ill-timed GC between those operations would result in test failure.
I've added a GC immediately before those operations to make that pretty unlikely.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/24315#discussion_r2025385681
More information about the core-libs-dev
mailing list