changeset 9444:5778381d2350

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
author dpochepk
date Fri, 06 Nov 2015 15:07:00 +0300
parents a7b9e9e46fd4
children 4bee38ba018c 125ebc94f667
files test/compiler/jvmci/events/JvmciNotifyInstallEventTest.java
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/test/compiler/jvmci/events/JvmciNotifyInstallEventTest.java	Fri Nov 06 14:54:02 2015 +0300
+++ b/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,