Details
-
Bug
-
Resolution: Fixed
-
P3
-
repo-valhalla
Description
The following new test in TestCallingConventionC1.java crashes when running with -XX:+StressValueTypeReturnedAsFields
static inline class Test103Value {
int x = 112233;
}
static Object test103_v;
@Test(compLevel = C1)
public void test103() {
// when this method is compiled by C1, the Test103Value class is not yet loaded.
test103_v = new Test103Value(); // invokestatic "Test103Value.<init>()QTest103Value;"
}
@DontCompile
public void test103_verifier(boolean warmup) {
if (warmup) {
// Maue sure test103() is compiled before the classes are loaded
return;
}
test103();
Test103Value v = (Test103Value)test103_v;
Asserts.assertEQ(v.x, 112233);
}
static inline class Test103Value {
int x = 112233;
}
static Object test103_v;
@Test(compLevel = C1)
public void test103() {
// when this method is compiled by C1, the Test103Value class is not yet loaded.
test103_v = new Test103Value(); // invokestatic "Test103Value.<init>()QTest103Value;"
}
@DontCompile
public void test103_verifier(boolean warmup) {
if (warmup) {
// Maue sure test103() is compiled before the classes are loaded
return;
}
test103();
Test103Value v = (Test103Value)test103_v;
Asserts.assertEQ(v.x, 112233);
}