Last active
February 5, 2020 11:00
-
-
Save headius/5de632bd4a95492b5f16582f8b297040 to your computer and use it in GitHub Desktop.
JRuby cache classes cheat sheet
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Branch: jit_irscope_removal | |
Primary flag: -Xcompile.cache.classes | |
* Cache precompiled scripts to ~/.ir | |
* Pass -X+C to get loads to precompile | |
Logging: -Xcompile.cache.classes.logging | |
Put ~/.ir in CLASSPATH or jar up contents to load them. logging flag will show they're loading | |
AppCDS flags: | |
* -XX:ArchiveClassesAtExit=blah.jsa to save CDS archive | |
* -XX:SharedArchiveFile=blah.jsa to use it | |
OpenJ9 flags: | |
* -Xquickstart to reduce optimizations (client mode sort-of) | |
* -Xshareclasses[:name=something] to cache (and reuse) metadata and JIT output |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment