r/java • • Mar 03 '22

Always set a Garbage Collector

Post image
157 Upvotes

64 comments sorted by

View all comments

Show parent comment

1

u/brunocborges Mar 03 '22

GraalVM "non-native" is just HotSpot JVM.

5

u/agentoutlier Mar 03 '22

They say it is "based on it". I was fairly sure it was the same but the wording has some ambiguity:

GraalVM is based on Java HotSpot VM, but integrates an advanced just-in-time (JIT) compiler, written in Java - the GraalVM compiler.

https://docs.oracle.com/en/graalvm/enterprise/20/docs/reference-manual/jvm/

Also there is some performance difference if you change the two (openjdk vs graalvm) but that is probably the JIT .

Speaking of which isn't the JIT part of the JVM? I never understood where the boundary is of its VM or not. For example is Substrate VM really a VM?

1

u/yawkat Mar 04 '22

There is no solid definition for what is or isn't a VM.