Closed GoogleCodeExporter closed 9 years ago
We need to eliminate the super.finalize() call and avoid the override
annotation here. That's a design mistake.
Having a finalizer incurs a big overhead on the GC which needs to execute
additional code to perform the finalization and possibly delay the GC itself.
Having a finalize method in object means delaying the GC for every single
object in the system.
Original comment by shai.almog
on 25 Jan 2015 at 6:50
So the gc will still call finalize if the method exists?
Original comment by steve.ha...@codenameone.com
on 25 Jan 2015 at 2:12
Original comment by steve.ha...@codenameone.com
on 25 Jan 2015 at 3:05
Yes the GC will invoke finalize if there is such a method defined on the object.
Original comment by shai.almog
on 26 Jan 2015 at 7:16
Original issue reported on code.google.com by
steve.ha...@codenameone.com
on 24 Jan 2015 at 10:01