RFR (S): 8150839: Adjust the number of compiler threads for 32-bit platforms
zoltan.majo at oracle.com
Thu Mar 3 15:40:22 UTC 2016
please review the patch for 8150839.
Problem: If the VM is executed on a machine with a large number of
cores, it will create a large number of compiler threads. For example,
on a 24-core machine, the VM will create 12 compiler threads (8 C2
compiler threads + 4 C1 compiler threads).
On 32-bit platforms the virtual memory available to processes is
typically limited to 2-4GB. As a result, the VM is likely to exhaust the
virtual memory address space on these platforms and crash.
Solution: This patch proposes to set the number of compiler threads to 3
on 32-bit platforms (2 C2 threads and 1 C1 thread), unless the user
decides differently. On 64-bit platforms, the number of compiler threads
is still set according to the number of available cores.
More information about the hotspot-compiler-dev