RFR(S): 8198756: Limit number of compiler threads for small code cache

Doerr, Martin martin.doerr at sap.com
Tue Feb 27 16:10:16 UTC 2018


the VM currently starts a large amount of compiler threads on systems with many CPUs regardless of the code cache size.
This doesn't make sense for very small code cache sizes.

The dynamically determined number of compiler threads can be observed by:
jdk/bin/java -XX:ReservedCodeCacheSize=128m -XX:+PrintFlagsFinal -version|grep CICompiler

I suggest not to use more than 1 compiler thread per 32MB of code cache:

This seems to be conservative.
Please review and let me know if you have a different limitation proposal.

Best regards,

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/hotspot-compiler-dev/attachments/20180227/68f997c7/attachment.html>

More information about the hotspot-compiler-dev mailing list