Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8063481 | 8u45 | Albert Noll | P5 | Resolved | Fixed | b01 |
JDK-8062625 | 8u40 | Albert Noll | P5 | Resolved | Fixed | b13 |
JDK-8070866 | emb-8u47 | Albert Noll | P5 | Resolved | Fixed | team |
Got asked by a member of the vulnerability team if we had a bug on this but I haven't found any.
Running the VM with -XX:CICompilerCount=-1 -XX:-TieredCompilation will lead to creating a GrowablArray with the size -1. When doing raw_allocate for this array we use the size and the element size to calculate how much to allocate and get a native memory allocation failure. Like this:
> java -XX:CICompilerCount=-1 -XX:-TieredCompilation
#
# There is insufficient memory for the Java Runtime Environment to continue.
# Native memory allocation (malloc) failed to allocate 18446744073709551608 bytes for AllocateHeap
# An error report file with more information is saved as:
# /tmp/cms/reproducer/hs_err_pid28802.log
Running with threads equal to -1 should probably not work but we should make sure we verify the input and provide a better error message.
ILW => MLL => P5
Running the VM with -XX:CICompilerCount=-1 -XX:-TieredCompilation will lead to creating a GrowablArray with the size -1. When doing raw_allocate for this array we use the size and the element size to calculate how much to allocate and get a native memory allocation failure. Like this:
> java -XX:CICompilerCount=-1 -XX:-TieredCompilation
#
# There is insufficient memory for the Java Runtime Environment to continue.
# Native memory allocation (malloc) failed to allocate 18446744073709551608 bytes for AllocateHeap
# An error report file with more information is saved as:
# /tmp/cms/reproducer/hs_err_pid28802.log
Running with threads equal to -1 should probably not work but we should make sure we verify the input and provide a better error message.
ILW => MLL => P5
- backported by
-
JDK-8062625 Failing to initialize VM when running with negative value for -XX:CICompilerCount
-
- Resolved
-
-
JDK-8063481 Failing to initialize VM when running with negative value for -XX:CICompilerCount
-
- Resolved
-
-
JDK-8070866 Failing to initialize VM when running with negative value for -XX:CICompilerCount
-
- Resolved
-
- relates to
-
JDK-8038393 [TESTBUG] ciReplay/* tests fail after 8034775
-
- Resolved
-
-
JDK-8041992 Fix of JDK-8034775 neglects to account for non-JIT VMs
-
- Resolved
-