comparison agent/src/share/classes/sun/jvm/hotspot/memory/Universe.java @ 3972:4f93f0d00802

7059019: G1: add G1 support to the SA Summary: Extend the SA to recognize the G1CollectedHeap and implement any code that's needed by our serviceability tools (jmap, jinfo, jstack, etc.) that depend on the SA. Reviewed-by: never, poonam, johnc
author tonyp
date Tue, 20 Sep 2011 09:59:59 -0400
parents c18cbe5936b8
children da91efe96a93
comparison
equal deleted inserted replaced
3953:77e1a9153757 3972:4f93f0d00802
1 /* 1 /*
2 * Copyright (c) 2000, 2009, Oracle and/or its affiliates. All rights reserved. 2 * Copyright (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 * 4 *
5 * This code is free software; you can redistribute it and/or modify it 5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as 6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation. 7 * published by the Free Software Foundation.
26 26
27 import java.io.*; 27 import java.io.*;
28 import java.util.*; 28 import java.util.*;
29 import sun.jvm.hotspot.debugger.*; 29 import sun.jvm.hotspot.debugger.*;
30 import sun.jvm.hotspot.gc_interface.*; 30 import sun.jvm.hotspot.gc_interface.*;
31 import sun.jvm.hotspot.gc_implementation.g1.G1CollectedHeap;
31 import sun.jvm.hotspot.gc_implementation.parallelScavenge.*; 32 import sun.jvm.hotspot.gc_implementation.parallelScavenge.*;
32 import sun.jvm.hotspot.oops.*; 33 import sun.jvm.hotspot.oops.*;
33 import sun.jvm.hotspot.types.*; 34 import sun.jvm.hotspot.types.*;
34 import sun.jvm.hotspot.runtime.*; 35 import sun.jvm.hotspot.runtime.*;
35 36
70 collectedHeapField = type.getAddressField("_collectedHeap"); 71 collectedHeapField = type.getAddressField("_collectedHeap");
71 72
72 heapConstructor = new VirtualConstructor(db); 73 heapConstructor = new VirtualConstructor(db);
73 heapConstructor.addMapping("GenCollectedHeap", GenCollectedHeap.class); 74 heapConstructor.addMapping("GenCollectedHeap", GenCollectedHeap.class);
74 heapConstructor.addMapping("ParallelScavengeHeap", ParallelScavengeHeap.class); 75 heapConstructor.addMapping("ParallelScavengeHeap", ParallelScavengeHeap.class);
76 heapConstructor.addMapping("G1CollectedHeap", G1CollectedHeap.class);
75 77
76 mainThreadGroupField = type.getOopField("_main_thread_group"); 78 mainThreadGroupField = type.getOopField("_main_thread_group");
77 systemThreadGroupField = type.getOopField("_system_thread_group"); 79 systemThreadGroupField = type.getOopField("_system_thread_group");
78 80
79 boolArrayKlassObjField = type.getOopField("_boolArrayKlassObj"); 81 boolArrayKlassObjField = type.getOopField("_boolArrayKlassObj");