RFR: 8369238: Allow virtual thread preemption on some common class initialization paths [v3]

David Holmes dholmes at openjdk.org
Wed Oct 22 06:32:08 UTC 2025


On Mon, 20 Oct 2025 19:20:31 GMT, Patricio Chilano Mateo <pchilanomate at openjdk.org> wrote:

>> src/hotspot/share/interpreter/linkResolver.cpp line 1122:
>> 
>>> 1120:       resolved_klass->initialize(CHECK);
>>> 1121:     } else if (static_mode == StaticMode::initialize_klass_preemptable) {
>>> 1122:       resolved_klass->initialize_preemptable(CHECK);
>> 
>> Why is this not CHECK_AND_CLEAR_PREEMPTED?
>
> We need to let the exception propagate all the way back to the VM entry point, and only then we can clear it.

Right - sorry - I though this was the entry point, but it is up in IRT.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/27802#discussion_r2450573813


More information about the core-libs-dev mailing list