RFR: 8369296: Add fast class init checks in interpreter for resolving ConstantPool entries for static field [v2]
Vladimir Kozlov
kvn at openjdk.org
Tue Oct 7 18:10:14 UTC 2025
On Tue, 7 Oct 2025 17:46:24 GMT, Vladimir Ivanov <vlivanov at openjdk.org> wrote:
> > Can we loop to L_clinit_barrier_slow several times until class is initialized?
>
> No, `clinit_barrier` either "blocks" (not yet initialized or being initialized, but not in init thread) or returns right away (fully initialized or being initialized and in init thread). No need for repeated attempts.
First, what do you mean "blocks"? It wait something with lock?
Second, my question was that slow path in `clinit_barrier` will jump to `L_clinit_barrier_slow` which is before `clinit_barrier` there are no branch there so after `call_VM` we again will call `clinit_barrier`? what I am missing?
-------------
PR Comment: https://git.openjdk.org/jdk/pull/27676#issuecomment-3378009886
More information about the hotspot-dev
mailing list