steveloughran commented on PR #6010: URL: https://github.com/apache/hadoop/pull/6010#issuecomment-2437373896
@zzccctv just checked this. direct memory is off heap, but it is still in process; process exit will reclaim it. It just doesn't move around the way objects on heap do. what is important is that as direct memory only consumes a small amount of on-heap memory (the object containing a pointer to it), it doesn't trigger GCs even if you have been leaking them. other GCs will trigger this, call finalize() on the references and release the DM then. we have a test for this somewhere -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
