3 ms·
And yet, we still have to tell the JVM how much memory it may use, and then watch as it consumes it all, regardless of what the program actually needed. I'm sur
by happyslobro 10y ago
And yet, we still have to tell the JVM how much memory it may use, and then watch as it consumes it all, regardless of what the program actually needed. I'm sure there must be reasonable sounding reasons for this, but I doubt they will explain why this was necessary only in Java, and not in any other cross platform VM (V8, compiled Python, etc)
- badlogic 10y agoWhat you describe has nothing to do with the Java Memory Model, but with GC tuning, which is an implementation detail. The JMM governs multi-threaded shared memory access semantics. C++11 also defines a MM, inspired by the JMM. V8 and Python are a long way from anything resembling an MM.