If any object variable still points to some object that is useless, then the JVM will not garbage collect this object and the object will remain in memory, creating a memory leak
There is a possibility of a memory leak in the above scenario .. Why is this not garbage? Can anyone clarify this?
As long as someone has an object reference, it can be used, and the JVM cannot garbage collect it.
JVM , , . , , , , .
, , , .
, .
, 100% , . " ", , , : , , - , , , . , : GC , , , , ( , ).
" " - , . "", . . , , .
. , , . , , - .
: http://www.javaworld.com/javaworld/javatips/jw-javatip79.html
, , - , , . , , , .
, , , , , - , . , , .
. , . .
, JVM , ""? , , JVM , . GC Java , .
, JVM , . JVM .
Source: https://habr.com/ru/post/1729806/More articles:Parent view problems with UIImagePickerControllerSourceTypeCamera - iphoneThe preferred way to store / retrieve python data is pythonhttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1729803/how-important-is-adding-quietverbose-flags-to-new-unix-tools&usg=ALkJrhgib8JGyL0AHav89Yei4bOylmIZ5ADo I need to have a selector name in the same case in css and html? - htmlJQUERY, вызов диалога, который я создал? Не найти его - javascriptBest approach for binary column with LINQ to SQL - filestreamGoogle App Engine - Does a new instance of a user launch so that it waits for its initialization? - google-app-engineMultiple drag and drop in jQuery: event after drag and drop - javascriptHow can I calculate individual masses of points? - mathВозможно ли создать 2 поля, которые могут НЕ иметь одинаковое значение? - djangoAll Articles