~/talk

Understanding How Graal Works — a Java JIT Compiler Written in Java

Talkat Joker 2017 · 2017-11-03..11-04· [compilers-and-language-design, java]
slides:none on file

Graal is a JIT compiler written entirely in Java that plugs into HotSpot via JVMCI (JEP 243) and replaces the C++ server compiler without rebuilding the JVM; source builds with MX on Java 9. It parses bytecode into an object graph IR (viewable with IGV visualizer), runs Java-coded optimization passes like canonicalization, global value numbering and lock coarsening, then emits machine code as byte arrays; a simple edit swaps an ADD into SUB to prove it works. Native-image/SubstrateVM produces a ~6MB static executable.

AI-written summary · about

  1. 0:00Introduction to Graal JIT
  2. 1:26Why Graal is written in Java
  3. 3:14Limitations of C++ JIT compilers
  4. 5:24Graal as a high-level JIT
  5. 6:05Setting up Graal for development
  6. 7:30Demonstrating Graal compilation
  7. 9:16JVM Compiler Interface explained
  8. 10:20JIT compiler interface in Graal
  9. 12:06Modifying Graal at runtime
  10. 13:51Compiler theory and graph representation
  11. 15:39Visualizing Graal graphs
  12. 16:41Bytecode to graph conversion
  13. 18:26Generating machine code from graphs
  14. 21:33Verifying Graal compilation
  15. 23:00Optimizations in Graal
  16. 23:44Canonicalization in Graal
  17. 25:51Global value numbering
  18. 27:15Control flow in optimizations
  19. 28:02Lock coarsening optimization
  20. 30:10Practicalities of Graal
  21. 31:34Uses of Graal beyond JIT
  22. 34:01Graal VM and native compilation
  23. 35:26Truffle and Graal integration
  24. 36:27Why Graal works in Java
  25. 37:30Future of Graal and GraalVM
  26. 38:07Q&A: Future development plans
  27. 39:31Q&A: Garbage collection in native images
  28. 40:33Q&A: Reflection in GraalVM
  29. 41:59Q&A: Performance and benchmarks
  30. 44:16Q&A: Specialized optimizations
  31. 45:20Q&A: VM integration requirements
  32. 47:17Q&A: Custom optimizations for languages
  33. 48:22Q&A: GraalVM and JVMCI
  34. 49:25Q&A: Applications benefiting from Graal
  35. 50:53Q&A: Profiling information in Graal
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.