# HG changeset patch # User dpochepk # Date 1446811620 -10800 # Node ID 5646275e80539ce4f48448bfb727f8ac2cce70bf # Parent 8d9e0cbf93a27f62b95507453742e6739f4e6b62 8141552: [TESTBUG] compiler/jvmci/events/JvmciNotifyInstallEventTest failed after jvmci refresh Summary: Fixed test bug, which used same CompilationResult object instance in 2 installCode calls Reviewed-by: iignatyev, twisti diff -r 8d9e0cbf93a2 -r 5646275e8053 hotspot/test/compiler/jvmci/events/JvmciNotifyInstallEventTest.java --- a/hotspot/test/compiler/jvmci/events/JvmciNotifyInstallEventTest.java Fri Nov 06 14:54:02 2015 +0300 +++ b/hotspot/test/compiler/jvmci/events/JvmciNotifyInstallEventTest.java Fri Nov 06 15:07:00 2015 +0300 @@ -111,6 +111,8 @@ 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,