JDK-8054315 : vm/mlvm/indy/func/jvmti/mergeCP_indy2none_a fails in nightly
  • Type: Bug
  • Component: hotspot
  • Sub-Component: jvmti
  • Affected Version: 9
  • Priority: P4
  • Status: Closed
  • Resolution: Cannot Reproduce
  • Submitted: 2014-08-05
  • Updated: 2015-04-27
  • Resolved: 2015-04-27
Related Reports
Relates :  
Description
[2014-08-02T12:19:41.03] - IndyRedefineClass.c, 37: Setting redefined class name to vm/mlvm/indy/func/jvmti/mergeCP_indy2none_a/INDIFY_Dummy0
[2014-08-02T12:19:41.03] - IndyRedefineClass.c, 31: Setting redefine trigger method name to redefineNow
[2014-08-02T12:19:51.80] - IndyRedefineClass.c, 109: Entering redefine tigger method: Lvm/mlvm/indy/func/jvmti/mergeCP_indy2none_a/INDIFY_Dummy0;.redefineNow
[2014-08-02T12:19:51.80] - IndyRedefineClass.c, 117: Redefining class vm/mlvm/indy/func/jvmti/mergeCP_indy2none_a/INDIFY_Dummy0
[2014-08-02T12:19:51.80] # info :: File = /export/local/aurora/sandbox/sca/vmsqe/testbase/vm/9/build/nightly/vm//bin/newclass/vm/mlvm/indy/func/jvmti/mergeCP_indy2none_a/INDIFY_Dummy0.class 
[2014-08-02T12:19:51.80] #  info **Agent:: opening file /export/local/aurora/sandbox/sca/vmsqe/testbase/vm/9/build/nightly/vm//bin/newclass/vm/mlvm/indy/func/jvmti/mergeCP_indy2none_a/INDIFY_Dummy0.class 
[2014-08-02T12:19:51.80] # info file size= 3007
[2014-08-02T12:19:51.83]  File red completely 
[2014-08-02T12:19:52.01] - IndyRedefineClass.c, 71: Enabling single step
[2014-08-02T12:19:52.01] - IndyRedefineClass.c, 80: Forcing early return
[2014-08-02T12:19:52.01] - IndyRedefineClass.c, 145: Single step event: Lvm/mlvm/indy/func/jvmti/mergeCP_indy2none_a/INDIFY_Dummy0; .bootstrap :2e
[2014-08-02T12:19:52.01] - IndyRedefineClass.c, 71: Enabling single step
[2014-08-02T12:19:52.01] - IndyRedefineClass.c, 76: Popping a frame
[2014-08-02T12:19:52.01] - IndyRedefineClass.c, 145: Single step event: Ljava/lang/invoke/LambdaForm$DMH/2055281021; .invokeStatic_L3_L :e
[2014-08-02T12:19:52.01] - IndyRedefineClass.c, 65: Disabling single step
[2014-08-02T12:19:52.03] - IndyRedefineClass.c, 109: Entering redefine tigger method: Lvm/mlvm/indy/func/jvmti/mergeCP_indy2none_a/INDIFY_Dummy0;.redefineNow
[2014-08-02T12:19:52.03] - IndyRedefineClass.c, 113: Class is already redefined.

From sspitsyn:

This is the most important part of the log with errors:

#>  
#>  WARNING: switching log to verbose mode,
#>      because error is complained
#>  
Original bootstrap(): Lookup vm.mlvm.indy.func.jvmti.mergeCP_indy2none_a.INDIFY_Dummy0; method name = greet; method type = (Object,String,int)Boolean
Original bootstrap(): Lookup vm.mlvm.indy.func.jvmti.mergeCP_indy2none_a.INDIFY_Dummy0; method name = greet; method type = (Object,String,int)Boolean
# ERROR: Test caught an exception: 
# ERROR: java.lang.RuntimeException
# ERROR: 	at vm.mlvm.share.Env.throwAsUnckechedException(Env.java:171)
# ERROR: 	at vm.mlvm.share.MlvmTestExecutor.runMlvmTest(MlvmTestExecutor.java:339)
# ERROR: 	at vm.mlvm.share.MlvmTestExecutor.launch(MlvmTestExecutor.java:222)
# ERROR: 	at vm.mlvm.share.MlvmTestExecutor.launch(MlvmTestExecutor.java:164)
# ERROR: 	at vm.mlvm.share.MlvmTestExecutor.launch(MlvmTestExecutor.java:135)
# ERROR: 	at vm.mlvm.share.MlvmTest.launch(MlvmTest.java:275)
# ERROR: 	at vm.mlvm.indy.func.jvmti.share.IndyRedefineTest.main(IndyRedefineTest.java:39)
# ERROR: Caused by: java.lang.reflect.InvocationTargetException
# ERROR: 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
# ERROR: 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
# ERROR: 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
# ERROR: 	at java.lang.reflect.Method.invoke(Method.java:484)
# ERROR: 	at vm.mlvm.indy.func.jvmti.share.IndyRedefineTest.run(IndyRedefineTest.java:25)
# ERROR: 	at vm.mlvm.share.MlvmTestExecutor.runMlvmTest(MlvmTestExecutor.java:308)
# ERROR: 	... 5 more
# ERROR: Caused by: java.lang.BootstrapMethodError: call site initialization exception
# ERROR: 	at java.lang.invoke.CallSite.makeSite(CallSite.java:328)
# ERROR: 	at java.lang.invoke.MethodHandleNatives.linkCallSiteImpl(MethodHandleNatives.java:307)
# ERROR: 	at java.lang.invoke.MethodHandleNatives.linkCallSite(MethodHandleNatives.java:297)
# ERROR: 	at vm.mlvm.indy.func.jvmti.mergeCP_indy2none_a.INDIFY_Dummy0.null(Unknown Source)
# ERROR: 	at vm.mlvm.indy.func.jvmti.mergeCP_indy2none_a.INDIFY_Dummy0.invokeTarget(Unknown Source)
# ERROR: 	... 11 more
# ERROR: Caused by: java.lang.RuntimeException: Bootstrap method has not been redefined. Test failed.
# ERROR: 	at vm.mlvm.indy.func.jvmti.mergeCP_indy2none_a.INDIFY_Dummy0.null(Unknown Source)
# ERROR: 	at java.lang.invoke.CallSite.makeSite(CallSite.java:270)
# ERROR: 	... 15 more
### TRACE 1: TEST FAILED


#>  
#>  SUMMARY: Following errors occured
#>      during test execution:
#>  
# ERROR: Test caught an exception: 
# ERROR: java.lang.RuntimeException
# ERROR: 	at vm.mlvm.share.Env.throwAsUnckechedException(Env.java:171)
# ERROR: 	at vm.mlvm.share.MlvmTestExecutor.runMlvmTest(MlvmTestExecutor.java:339)
# ERROR: 	at vm.mlvm.share.MlvmTestExecutor.launch(MlvmTestExecutor.java:222)
# ERROR: 	at vm.mlvm.share.MlvmTestExecutor.launch(MlvmTestExecutor.java:164)
# ERROR: 	at vm.mlvm.share.MlvmTestExecutor.launch(MlvmTestExecutor.java:135)
# ERROR: 	at vm.mlvm.share.MlvmTest.launch(MlvmTest.java:275)
# ERROR: 	at vm.mlvm.indy.func.jvmti.share.IndyRedefineTest.main(IndyRedefineTest.java:39)
# ERROR: Caused by: java.lang.reflect.InvocationTargetException
# ERROR: 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
# ERROR: 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
# ERROR: 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
# ERROR: 	at java.lang.reflect.Method.invoke(Method.java:484)
# ERROR: 	at vm.mlvm.indy.func.jvmti.share.IndyRedefineTest.run(IndyRedefineTest.java:25)
# ERROR: 	at vm.mlvm.share.MlvmTestExecutor.runMlvmTest(MlvmTestExecutor.java:308)
# ERROR: 	... 5 more
# ERROR: Caused by: java.lang.BootstrapMethodError: call site initialization exception
# ERROR: 	at java.lang.invoke.CallSite.makeSite(CallSite.java:328)
# ERROR: 	at java.lang.invoke.MethodHandleNatives.linkCallSiteImpl(MethodHandleNatives.java:307)
# ERROR: 	at java.lang.invoke.MethodHandleNatives.linkCallSite(MethodHandleNatives.java:297)
# ERROR: 	at vm.mlvm.indy.func.jvmti.mergeCP_indy2none_a.INDIFY_Dummy0.null(Unknown Source)
# ERROR: 	at vm.mlvm.indy.func.jvmti.mergeCP_indy2none_a.INDIFY_Dummy0.invokeTarget(Unknown Source)
# ERROR: 	... 11 more
# ERROR: Caused by: java.lang.RuntimeException: Bootstrap method has not been redefined. Test failed.
# ERROR: 	at vm.mlvm.indy.func.jvmti.mergeCP_indy2none_a.INDIFY_Dummy0.null(Unknown Source)
# ERROR: 	at java.lang.invoke.CallSite.makeSite(CallSite.java:270)
# ERROR: 	... 15 more


ILW=MLH=P4
Comments
My guess is that it is this one: https://bugs.openjdk.java.net/browse/JDK-8013267 For instance, the following bug with the same manifestation was closed as a dup of 8013267: https://bugs.openjdk.java.net/browse/JDK-8040201
05-08-2014

This is the list of flags that was used int the test run: # Actual: JAVA_OPTS=-d64 -server -Xcomp -XX:MaxRAMFraction=8 -XX:+CreateMinidumpOnCrash -ea -esa -XX:+TieredCompilation -XX:CompileThreshold=100 -XX:+UnlockExperimentalVMOptions -XX:+IgnoreUnrecognizedVMOptions -XX:+DeoptimizeALot -agentlib:IndyRedefineClass=verbose=~pathToNewByteCode=/export/local/aurora/sandbox/sca/vmsqe/testbase/vm/9/build/nightly/vm//bin/newclass The error message is: # ERROR: Caused by: java.lang.RuntimeException: Bootstrap method has not been redefined. Test failed.
05-08-2014