GC finalize()一问# Java - 爪哇娇娃
m*k
1 楼
according to the book, for an obj to be GC,
finalize() is never run more than once on any object,
I am puzzled here, since it is possible that the obj is made reachable again
in its finalize(), then after a while, this obj may again become unreachable,
then finalize might again be called. 如此往复。 so the finalize() is called
more than once.
望指教,谢谢啦。
finalize() is never run more than once on any object,
I am puzzled here, since it is possible that the obj is made reachable again
in its finalize(), then after a while, this obj may again become unreachable,
then finalize might again be called. 如此往复。 so the finalize() is called
more than once.
望指教,谢谢啦。