Comment Comment by bakery2k > any thread can change the internal variables of any other thread at any timeWhy is this different from Java, where the JVM can assume that local variables cannot be changed by other threads?That is, in the absence of special cases, which I believe include `volatile` and function calls. (Any other special cases?) parent bakery2k 7 years ago
Why is this different from Java, where the JVM can assume that local variables cannot be changed by other threads?
That is, in the absence of special cases, which I believe include `volatile` and function calls. (Any other special cases?)