|
|
|
|
|
by kjeetgill
1327 days ago
|
|
Hotspot introduced the JVM Compiler Interface (JVMCI) a while back, so you could drop in any JIT replacement, including Graal. https://openjdk.org/jeps/243 This is different than using GraalVM, which has all the polyglot stuff too. And the Native Image AOT stuff is different yet again ... I think!
There's a lot of uses of the same core technology. It's pretty cool stuff! |
|
Every other part of Graal is also ordinary java classes, for example Truffle, which can execute interpreters and JIT optimize them very effectively (Truffle’s javascript can run after warm up with comparable speed as V8, while the former has orders of magnitude smaller team/budget). This is possible because the JIT compiler has a few special intrinsics for these libraries that allow for this magic, and also the reuse of the many many thousands of workhours that went into the OpenJDK project, reusing its killer GCs, etc.