tqchen commented on issue #11307: Memory Management
URL: 
https://github.com/apache/incubator-mxnet/issues/11307#issuecomment-397774432
 
 
   I think @yzhliu knows more details, the original design of scala was done in 
an implicit way by doing disposable at finalizer.  
   
   The problem is that the gc of JVM is not eager, and these weak references 
are treated as single memory cell(without knowing the resource themselves are 
huge). As a result, JVM never triggers the gc function. 
   
   This is essentially the same problem of using files in jvm languages, when a 
resource is not understandable by jvm, you have to explicitly dispose it

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to