8144529: [JVMCI] compiler/jvmci/errors/TestInvalidCompilationResult.java fails to compile after JDK-8143730
Reviewed-by: kvn
This commit is contained in:
parent
b0e745f5fe
commit
a676faba28
@ -68,6 +68,7 @@ public class CodeInstallerTest {
|
||||
}
|
||||
|
||||
protected void installCode(CompilationResult result) {
|
||||
result.close();
|
||||
codeCache.addCode(dummyMethod, result, null, null);
|
||||
}
|
||||
|
||||
|
@ -218,13 +218,6 @@ public class TestInvalidCompilationResult extends CodeInstallerTest {
|
||||
installCode(result);
|
||||
}
|
||||
|
||||
@Test(expected = JVMCIError.class)
|
||||
public void testUnknownInfopointReason() {
|
||||
CompilationResult result = createEmptyCompilationResult();
|
||||
result.addInfopoint(new Infopoint(0, null, InfopointReason.UNKNOWN));
|
||||
installCode(result);
|
||||
}
|
||||
|
||||
@Test(expected = JVMCIError.class)
|
||||
public void testInfopointMissingDebugInfo() {
|
||||
CompilationResult result = createEmptyCompilationResult();
|
||||
|
@ -106,13 +106,12 @@ public class JvmciNotifyInstallEventTest implements HotSpotVMEventListener {
|
||||
HotSpotCompilationRequest compRequest = new HotSpotCompilationRequest(method, -1, 0L);
|
||||
// to pass sanity check of default -1
|
||||
compResult.setTotalFrameSize(0);
|
||||
compResult.close();
|
||||
codeCache.installCode(compRequest, compResult, /* installedCode = */ null, /* speculationLog = */ null,
|
||||
/* isDefault = */ false);
|
||||
Asserts.assertEQ(gotInstallNotification, 1,
|
||||
"Got unexpected event count after 1st install attempt");
|
||||
// since "empty" compilation result is ok, a second attempt should be ok
|
||||
compResult = new CompilationResult(METHOD_NAME); // create another instance with fresh state
|
||||
compResult.setTotalFrameSize(0);
|
||||
codeCache.installCode(compRequest, compResult, /* installedCode = */ null, /* speculationLog = */ null,
|
||||
/* isDefault = */ false);
|
||||
Asserts.assertEQ(gotInstallNotification, 2,
|
||||
|
Loading…
Reference in New Issue
Block a user