What is the reason for the additional indirection in Handle?
ramon.garcia.f at gmail.com
Mon Sep 8 07:22:04 PDT 2008
What is exactly the function for garbage collection? Does it just make
it known that the oop is used, so it is not deleted, or in addition it
handles the case where the oop is moved by a copying collector?
In the first case, there would be more efficient ways, such as
increasing a reference count when the handle is created.
> It is for garbage collection. You need to use handles to protect
> oops across function calls that might GC.
More information about the hotspot-runtime-dev