On Tue, 1 Apr 2025 22:01:55 GMT, Brent Christian <bchri...@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

Reply via email to