RFR: 8264395: WB_EnqueueInitializerForCompilation fails with "method holder must be initialized" when called for uninitialized class [v2]
Tobias Hartmann
thartmann at openjdk.java.net
Thu Apr 29 10:38:58 UTC 2021
On Thu, 29 Apr 2021 10:30:11 GMT, Rahul Raghavan <rraghavan at openjdk.org> wrote:
>> test/hotspot/jtreg/compiler/whitebox/TestEnqueueInitializerForCompilation.java line 42:
>>
>>> 40:
>>> 41: public static void main(String[] args) {
>>> 42: WhiteBox.getWhiteBox().enqueueInitializerForCompilation(LongWrapper.class, 4);
>>
>> What if compilation level 4 (= C2) is not available?
>
> Found unavailable/bad comp levels handled in WhiteBox::compile_method() or later in CompileBroker::compile_method.
Right but wouldn't we hit an assert there if C2 is not available?
-------------
PR: https://git.openjdk.java.net/jdk/pull/3757
More information about the hotspot-compiler-dev
mailing list