Static variables during marking phase of PSParallelCompact

Thomas Schatzl thomas.schatzl at oracle.com
Thu Apr 25 15:05:12 UTC 2013


Hi,

On Thu, 2013-04-25 at 22:57 +0800, Lokesh Gidra wrote:
> Hello,
> 
> I am trying to understand the code of PSParallelCompact. I am having hard time understanding, how are the static variables taken into account during the marking phase? There is no root set taken from the permanent generation, where I thought the static variables reside (inside the class objects). Please correct me and guide through right path.
> 

In hs21 the static variables moved to the java.lang.Class instances in
the java heap.

(see http://bugs.sun.com/view_bug.do?bug_id=7017732)

Thomas




More information about the hotspot-gc-dev mailing list