Skip to content

Instantly share code, notes, and snippets.

@headius
Last active February 5, 2020 11:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save headius/5de632bd4a95492b5f16582f8b297040 to your computer and use it in GitHub Desktop.
Save headius/5de632bd4a95492b5f16582f8b297040 to your computer and use it in GitHub Desktop.
JRuby cache classes cheat sheet
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