spark-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From yaoshengzhe <>
Subject [GitHub] spark pull request: [SPARK-1103] [WIP] Automatic garbage collectio...
Date Thu, 13 Mar 2014 01:59:43 GMT
Github user yaoshengzhe commented on the pull request:
    @tdas, based on what you said, it's fine to put logic into finalize if we can make sure
code in finalize is done in the right way and accept the fact that finalize might never be
called. You also mentioned weak reference, I think it is not a bad idea to use some kind of
reference classes in java to solve this problem. e.g. java's PhantomReference could guarantee
to call cleanup method when it is out of scope.  

If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at or file a JIRA ticket
with INFRA.

View raw message