RFR: 8369238: Allow virtual thread preemption on some common class initialization paths [v3]
Coleen Phillimore
coleenp at openjdk.org
Fri Oct 24 14:26:46 UTC 2025
On Thu, 23 Oct 2025 22:29:04 GMT, Patricio Chilano Mateo <pchilanomate at openjdk.org> wrote:
>> Would an initialize_preemptable() = 0 be better? then you can see if it's called by anything other than InstanceKlass. Klass is always abstract.
>
> We can but we would have to implement it for `ArrayKlass` too which is kind of the same of what we have now. We have a `ShouldNotReachHere()` in `Klass::initialize_preemptable` (following the same pattern as `Klass::initialize`), so we will catch anything other than `InstanceKlass`.
I guess following the pattern is better.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/27802#discussion_r2460745900
More information about the hotspot-dev
mailing list