RFR 9: 8165641 : Deprecate Object.finalize

Philip Race philip.race at oracle.com
Sun Mar 12 16:40:15 UTC 2017

On 3/12/17, 3:07 AM, Andrew Haley wrote:
> I guess "difficulty in properly triggering GC for non-memory resource
> exhaustion" is closest to what I just described.

This has long been an issue in the Java client area where native desktop
resources or the like need to be managed carefully, but it is not just
native window handles but any resource not managed by GC.

So more precisely "non-Java Heap" resource exhaustion as you could
allocate 2GB of native heap and the GC would not care at all if
it were tied solely to a 32 byte finalizable Java object.


More information about the core-libs-dev mailing list