JDK-8193082 : vmTestbase/vm/mlvm/meth/stress/jni/nativeAndMH/Test.java failed in PIT w/ ERROR at nativeAndMH.c:51
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 10,11,12
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • Submitted: 2017-12-05
  • Updated: 2019-09-13
  • Resolved: 2019-01-31
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
tbdResolved
Related Reports
Duplicate :  
Duplicate :  
Relates :  
Description
[2017-12-02T14:48:25.63] Java HotSpot(TM) 64-Bit Server VM warning: CodeCache is full. Compiler has been disabled.
[2017-12-02T14:48:25.63] [276.551s][warning][codecache] CodeCache is full. Compiler has been disabled.
[2017-12-02T14:48:25.63] [276.551s][warning][codecache] Try increasing the code cache size using -XX:ReservedCodeCacheSize=
[2017-12-02T14:48:25.63] Java HotSpot(TM) 64-Bit Server VM warning: Try increasing the code cache size using -XX:ReservedCodeCacheSize=
[2017-12-02T14:48:25.63] CodeCache: size=49152Kb used=41126Kb max_used=41130Kb free=8025Kb
[2017-12-02T14:48:25.63]  bounds [0xffffffff6bc00000, 0xffffffff6ec00000, 0xffffffff6ec00000]
[2017-12-02T14:48:25.63]  total_blobs=75732 nmethods=24388 adapters=835
[2017-12-02T14:48:25.63]  compilation: disabled (not enough contiguous free space left)
[2017-12-02T14:48:27.10] # ERROR: nativeAndMH.c, 51: # ERROR: nativeAndMH.c, 51: # ERROR: nativeAndMH.c, 51: # ERROR: nativeAndMH.c, 51: # ERROR: nativeAndMH.c, 51: NULL != (result = NSK_CPP_STUB4(CallObjectMethod, pEnv, mhToCall, mid, arguments))
[2017-12-02T14:48:27.10] Exception Exception Exception in thread "Thread-789" in thread "Thread-1104" in thread "Thread-227" Exception Exception in thread "Thread-737" Exception Exception in thread "Thread-986" in thread "Thread-33" in thread "Thread-588" Exception Exception in thread "Thread-311" in thread "Thread-391" Exception Exception in thread "Thread-13" in thread "Thread-276" Exception Exception in thread "Thread-350" in thread "Thread-828" Exception Exception in thread "Thread-786" in thread "Thread-82" Exception Exception in thread "Thread-1125" in thread "Thread-927" Exception Exception in thread "Thread-308" Exception Exception in thread "Thread-953" in thread "Thread-49" in thread "Thread-853" Exception in thread "Thread-851" Exception Exception in thread "Thread-682" in thread "Thread-944" Exception in thread "Thread-854" Exception in thread "Thread-764" Exception Exception in thread "Thread-768" in thread "Thread-105" Exception Exception Exception in thread "Thread-1009" in thread "Thread-631" in thread "Thread-76" ExcNULL != (result = NSK_CPP_STUB4(CallObjectMethod, pEnv, mhToCall, mid, arguments))
[2017-12-02T14:48:27.10] NULL != (result = NSK_CPP_STUB4(CallObjectMethod, pEnv, mhToCall, mid, arguments))
[2017-12-02T14:48:27.10] # ERROR: nativeAndMH.c, 51: #   verified JNI assertion is FALSE
[2017-12-02T14:48:27.10] #   verified JNI assertion is FALSE
[2017-12-02T14:48:27.10] #   verified JNI assertion is FALSE
[2017-12-02T14:48:27.10] # ERROR: nativeAndMH.c, 51: NULL != (result = NSK_CPP_STUB4(CallObjectMethod, pEnv, mhToCall, mid, arguments))
[2017-12-02T14:48:27.10] # ERROR: nativeAndMH.c, 51: NULL != (result = NSK_CPP_STUB4(CallObjectMethod, pEnv, mhToCall, mid, arguments))
[2017-12-02T14:48:27.10] eption Exception in thread "Thread-827" Exception Exception in thread "Thread-1135" in thread "Thread-810" Exception Exception in thread "Thread-1088" in thread "Thread-498" in thread "Thread-45" Exception Exception in thread "Thread-75" Exception in thread "Thread-1124" in thread "Thread-1011" Exception Exception in thread "Thread-784" Exception in thread "Thread-224" in thread "Thread-65" Exception Exception Exception in thread "Thread-644" in thread "Thread-483" Exception in thread "Thread-1061" Exception in thread "Thread-885" Exception in thread "Thread-835" in thread "Thread-824" Exception in thread "Thread-6" Exception Exception in thread "Thread-863" in thread "Thread-71" Exception in thread "Thread-449" Exception Exception in thread "Thread-108" in thread "Thread-800" Exception in thread "Thread-717" Exception Exception in thread "Thread-340" in thread "Thread-868" Exception in thread "Thread-905" Exception in thread "Thread-641" Exception Exception in thread "Thread-93" in thread "Thread-734" Except# ERROR: nativeAndMH.c, 51: NULL != (result = NSK_CPP_STUB4(CallObjectMethod, pEnv, mhToCall, mid, arguments))
[2017-12-02T14:48:27.10] NULL != (result = NSK_CPP_STUB4(CallObjectMethod, pEnv, mhToCall, mid, arguments))
[2017-12-02T14:48:27.10] NULL != (result = NSK_CPP_STUB4(CallObjectMethod, pEnv, mhToCall, mid, arguments))
Comments
closing as dup of JDK-8058176 [mlvm] tests should tolerate exceptions caused by code cache exhaustion.
31-01-2019

Thanks Igor. I agree with your analysis. ILW = Test fails due to code cache exhaustion, single test, no workaround = MLH = P4
07-12-2017

the log also contains lots of 'java.lang.NoSuchMethodException: no such method: java.lang.invoke.MethodHandle.linkToSpecial(Object,Object,MemberName)double/invokeStatic' and 'java.lang.VirtualMachineError: Out of space in CodeCache for method handle intrinsic', so I believe it's an old known issue w/ jsr292 tests which exhauste code cache similar to JDK-8171445.
06-12-2017

Igor, could you provide more information about why you think this is a test bug?
06-12-2017