Hacker News new | ask | show | jobs
by mike_hearn 3199 days ago
It's not impossible. HotSpot/OpenJDK already has one. It's a native method/compiler intrinsic rather than a keyword but amounts to the same thing:

http://www.docjar.com/docs/api/sun/misc/Unsafe.html#freeMemo...

1 comments

That frees a block of native memory, not an arbitrary Java object...