JDK-8073260 : java/lang/invoke/LFCaching/LFGarbageCollectedTest.java throws OOME
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.lang.invoke
  • Affected Version: 8,9
  • Priority: P1
  • Status: Closed
  • Resolution: Duplicate
  • Submitted: 2015-02-16
  • Updated: 2015-04-24
  • Resolved: 2015-04-24
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.
JDK 9
9Resolved
Related Reports
Duplicate :  
Description
#section:main
----------messages:(3/318)----------
command: main -Xmx64m -XX:SoftRefLRUPolicyMSPerMB=0 -XX:+HeapDumpOnOutOfMemoryError -DHEAP_DUMP=false LFGarbageCollectedTest
reason: User specified action: run main/othervm -Xmx64m -XX:SoftRefLRUPolicyMSPerMB=0 -XX:+HeapDumpOnOutOfMemoryError -DHEAP_DUMP=false LFGarbageCollectedTest 
elapsed time (seconds): 1901.014
----------System.out:(12/574)----------
-Dseed=3618769038966396354
-DtestLimit=2000
Number of iterations according to -DtestLimit is 181 (1991 cases)
Code cache size is 251658240 bytes
Non-profiled code cache size is 122033256 bytes
Number of iterations limited by code cache size is 84 (924 cases)
Number of iterations limited by non-profiled code cache size is 40 (440 cases)
Number of iterations is set to 40 (440 cases)
java.lang.OutOfMemoryError: Java heap space


Comments
ILW=unexpected OOME, once so far, none=MLH=P4 + nightly = P1
18-02-2015

Extract from heap dump: Class Name | Objects | Shallow Heap | Retained Heap ------------------------------------------------------------------------------------------------------ char[] | 82,037 | 8,659,088 | java.lang.invoke.LambdaForm$Name | 150,369 | 8,420,664 | java.lang.Class[] | 14,190 | 5,259,856 | java.lang.invoke.DirectMethodHandle$Accessor | 67,830 | 4,883,760 | java.lang.invoke.MemberName | 73,569 | 4,119,864 | int[] | 9,625 | 3,463,800 | java.lang.invoke.LambdaForm$NamedFunction | 73,007 | 2,920,280 | java.lang.String | 82,033 | 2,625,056 | java.lang.Object[] | 11,132 | 1,680,752 | java.lang.invoke.LambdaForm$Name[] | 2,189 | 1,440,808 | java.lang.ref.SoftReference[] | 10,110 | 1,091,880 | java.lang.invoke.MethodType | 14,267 | 913,088 | java.lang.invoke.MethodType$ConcurrentWeakInternSet$WeakEntry| 14,267 | 798,952 | java.util.concurrent.ConcurrentHashMap$Node | 14,569 | 699,312 | java.lang.invoke.MethodHandle[] | 2,970 | 638,096 | java.lang.invoke.LambdaForm$BasicType[] | 1,287 | 574,712 | java.lang.invoke.LambdaForm$NamedFunction[] | 1,285 | 573,576 | java.lang.Integer | 20,129 | 483,096 | java.lang.invoke.MethodTypeForm | 5,147 | 411,760 | java.util.concurrent.ConcurrentHashMap$Node[] | 19 | 269,512 | java.util.HashMap$Node | 3,424 | 164,352 | java.lang.Integer[] | 1 | 161,056 | java.lang.invoke.LambdaForm | 2,183 | 157,176 | java.lang.ref.SoftReference | 2,551 | 142,856 | ------------------------------------------------------------------------------------------------------ Total size: ~50MB
16-02-2015

What is interesting: java.lang.invoke.LambdaForm 2,183 instances java.lang.invoke.MethodTypeForm 5,147 instances
16-02-2015