RFR: 8345266: java/util/concurrent/locks/StampedLock/OOMEInStampedLock.java JTREG_TEST_THREAD_FACTORY=Virtual fails with OOME

David Holmes dholmes at openjdk.org
Tue Dec 17 04:25:35 UTC 2024


On Tue, 17 Dec 2024 04:16:54 GMT, Patricio Chilano Mateo <pchilanomate at openjdk.org> wrote:

>> src/hotspot/share/runtime/continuation.cpp line 164:
>> 
>>> 162:   JVMTI_ONLY(jubm.set_result(res);)
>>> 163: 
>>> 164:   if (target->has_pending_exception()) {
>> 
>> Is `target` always the current thread, because we should only ever check and clear exceptions on the current thread. ??
>
> Yes. For context, this method was copied from the external preemption work which implemented the `Continuation.tryPreempt` API, where a thread tries to preempt another one. But that was all experimental and currently target is always current. I could rename the instances to avoid confusion.

Yes please!

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

PR Review Comment: https://git.openjdk.org/jdk/pull/22780#discussion_r1887875445


More information about the hotspot-runtime-dev mailing list