Is the Java memory model only Java-wide or actually JVM-wide?

I see that it is always referred to as the Java-Memory-Model, but so far I have instinctively thought about this in relation to the entire JVM ecosystem.

Is it applicable only to Java applications, or can any of the executable files compatible with the JVM byte code use its guarantees?

I looked at the JVM specification for "Memory Models" and could not find much about it. The java specification, on the other hand, fully describes this, leaving me with the impression that the memory model is specific to Java.

thanks

+4
source share
1 answer

Java Java Java (, , ...). JMM JVM .

, - monitorenter/monitorexit.

, JVM ( JMM) -.

, Scala @volatile Clojure volatile-mutable.

+4

All Articles