3 ms·
> Assuming a global mutable variable will never change is generally not a safe assumption. Put your logging level behind a switch point and C2 will treat it as
by chrisseaton 5y ago
> Assuming a global mutable variable will never change is generally not a safe assumption.
Put your logging level behind a switch point and C2 will treat it as a constant but still let it be changed - that works today.
- eropple 5y agoObviously with your background you know this offhand, but is there a mere-mortals reference for JVM JIT behaviors and capabilities to keep in one's back pocket? I have a pretty strong understanding of a lot of the Java universe (particularly around the JMM) but modern JVM JIT behaviors are a black box to me.