Hacker News new | ask | show | jobs
by Dylan16807 4099 days ago
Execution in Java does not have a concept of "current object". 'this' is passed in a magic way, but it does not exist in a magic way. It's like any other variable, and can be collected as soon as it's not needed. Which can be extremely early, because optimizations can reduce the 'need' for a variable to only its side effects.

Go pick apart aggressively optimized and inlined code and I bet you can find situations where 'this' never even exists.