Hacker News new | past | comments | ask | show | jobs | submit login

You normally fix that not with the GC itself, but with the compiler.

If new Object() truly doesn't have any effects visible other than the valid reference, then it's creation can be moved to after the if statement.




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: