Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Are JVM languages bound by the Java Memory Model or just the Java Programming Language?

Is the memory model for Java a feature of the Java Programming Language or a feature of the JVM? Are JVM languages bound by the Java Memory Model or just The Java Programming Language?

like image 504
ams Avatar asked Sep 25 '26 07:09

ams


1 Answers

Strictly speaking the Java Memory Model is part of the Java Language Specification as opposed to the Java Virtual Machine Specification. However, the JVM Spec depends heavily on the JLS to specify details of the operation and the Java Memory Model applies to every bytecode executed, no matter which language it was originally compiled from. Therefore all JVM languages are bound to it (or benefit from it, depending on how you look at it).

like image 61
Joachim Sauer Avatar answered Sep 27 '26 19:09

Joachim Sauer



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!