hotspot/test/compiler/jvmci/events/JvmciNotifyInstallEventTest.java
changeset 35823 59a847ec6ee3
parent 35582 c32a0cc19877
child 36508 5f9eee6b383b
equal deleted inserted replaced
35822:d04be2a635f2 35823:59a847ec6ee3
   107         }
   107         }
   108         HotSpotResolvedJavaMethod method = CTVMUtilities
   108         HotSpotResolvedJavaMethod method = CTVMUtilities
   109                 .getResolvedMethod(SimpleClass.class, testMethod);
   109                 .getResolvedMethod(SimpleClass.class, testMethod);
   110         HotSpotCompiledCode compiledCode = new HotSpotCompiledCode(METHOD_NAME, new byte[0], 0, new Site[0],
   110         HotSpotCompiledCode compiledCode = new HotSpotCompiledCode(METHOD_NAME, new byte[0], 0, new Site[0],
   111                 new Assumption[0], new ResolvedJavaMethod[]{method}, new Comment[0], new byte[0], 16,
   111                 new Assumption[0], new ResolvedJavaMethod[]{method}, new Comment[0], new byte[0], 16,
   112                 new DataPatch[0], false, 0, 0);
   112                 new DataPatch[0], false, 0, null);
   113         codeCache.installCode(method, compiledCode, /* installedCode = */ null, /* speculationLog = */ null,
   113         codeCache.installCode(method, compiledCode, /* installedCode = */ null, /* speculationLog = */ null,
   114                 /* isDefault = */ false);
   114                 /* isDefault = */ false);
   115         Asserts.assertEQ(gotInstallNotification, 1,
   115         Asserts.assertEQ(gotInstallNotification, 1,
   116                 "Got unexpected event count after 1st install attempt");
   116                 "Got unexpected event count after 1st install attempt");
   117         // since "empty" compilation result is ok, a second attempt should be ok
   117         // since "empty" compilation result is ok, a second attempt should be ok