author | erikj |
Tue, 12 Sep 2017 19:03:39 +0200 | |
changeset 47216 | 71c04702a3d5 |
parent 35217 | hotspot/src/jdk.hotspot.agent/share/classes/sun/jvm/hotspot/gc/cms/LinearAllocBlock.java@ce4b5303a813 |
permissions | -rw-r--r-- |
578
862a85ed20db
6670684: 4/5 SA command universe did not print out CMS space information
dcubed
parents:
diff
changeset
|
1 |
/* |
862a85ed20db
6670684: 4/5 SA command universe did not print out CMS space information
dcubed
parents:
diff
changeset
|
2 |
* @(#)BinaryTreeDictionary.java |
30769 | 3 |
* Copyright (c) 2000, 2015, Oracle and/or its affiliates. All rights reserved. |
578
862a85ed20db
6670684: 4/5 SA command universe did not print out CMS space information
dcubed
parents:
diff
changeset
|
4 |
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
862a85ed20db
6670684: 4/5 SA command universe did not print out CMS space information
dcubed
parents:
diff
changeset
|
5 |
* |
862a85ed20db
6670684: 4/5 SA command universe did not print out CMS space information
dcubed
parents:
diff
changeset
|
6 |
* This code is free software; you can redistribute it and/or modify it |
862a85ed20db
6670684: 4/5 SA command universe did not print out CMS space information
dcubed
parents:
diff
changeset
|
7 |
* under the terms of the GNU General Public License version 2 only, as |
862a85ed20db
6670684: 4/5 SA command universe did not print out CMS space information
dcubed
parents:
diff
changeset
|
8 |
* published by the Free Software Foundation. |
862a85ed20db
6670684: 4/5 SA command universe did not print out CMS space information
dcubed
parents:
diff
changeset
|
9 |
* |
862a85ed20db
6670684: 4/5 SA command universe did not print out CMS space information
dcubed
parents:
diff
changeset
|
10 |
* This code is distributed in the hope that it will be useful, but WITHOUT |
862a85ed20db
6670684: 4/5 SA command universe did not print out CMS space information
dcubed
parents:
diff
changeset
|
11 |
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
862a85ed20db
6670684: 4/5 SA command universe did not print out CMS space information
dcubed
parents:
diff
changeset
|
12 |
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
862a85ed20db
6670684: 4/5 SA command universe did not print out CMS space information
dcubed
parents:
diff
changeset
|
13 |
* version 2 for more details (a copy is included in the LICENSE file that |
862a85ed20db
6670684: 4/5 SA command universe did not print out CMS space information
dcubed
parents:
diff
changeset
|
14 |
* accompanied this code). |
862a85ed20db
6670684: 4/5 SA command universe did not print out CMS space information
dcubed
parents:
diff
changeset
|
15 |
* |
862a85ed20db
6670684: 4/5 SA command universe did not print out CMS space information
dcubed
parents:
diff
changeset
|
16 |
* You should have received a copy of the GNU General Public License version |
862a85ed20db
6670684: 4/5 SA command universe did not print out CMS space information
dcubed
parents:
diff
changeset
|
17 |
* 2 along with this work; if not, write to the Free Software Foundation, |
862a85ed20db
6670684: 4/5 SA command universe did not print out CMS space information
dcubed
parents:
diff
changeset
|
18 |
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
862a85ed20db
6670684: 4/5 SA command universe did not print out CMS space information
dcubed
parents:
diff
changeset
|
19 |
* |
5547
f4b087cbb361
6941466: Oracle rebranding changes for Hotspot repositories
trims
parents:
670
diff
changeset
|
20 |
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
f4b087cbb361
6941466: Oracle rebranding changes for Hotspot repositories
trims
parents:
670
diff
changeset
|
21 |
* or visit www.oracle.com if you need additional information or have any |
f4b087cbb361
6941466: Oracle rebranding changes for Hotspot repositories
trims
parents:
670
diff
changeset
|
22 |
* questions. |
578
862a85ed20db
6670684: 4/5 SA command universe did not print out CMS space information
dcubed
parents:
diff
changeset
|
23 |
* |
862a85ed20db
6670684: 4/5 SA command universe did not print out CMS space information
dcubed
parents:
diff
changeset
|
24 |
*/ |
862a85ed20db
6670684: 4/5 SA command universe did not print out CMS space information
dcubed
parents:
diff
changeset
|
25 |
|
30769 | 26 |
package sun.jvm.hotspot.gc.cms; |
578
862a85ed20db
6670684: 4/5 SA command universe did not print out CMS space information
dcubed
parents:
diff
changeset
|
27 |
|
862a85ed20db
6670684: 4/5 SA command universe did not print out CMS space information
dcubed
parents:
diff
changeset
|
28 |
import java.util.*; |
862a85ed20db
6670684: 4/5 SA command universe did not print out CMS space information
dcubed
parents:
diff
changeset
|
29 |
import sun.jvm.hotspot.debugger.*; |
862a85ed20db
6670684: 4/5 SA command universe did not print out CMS space information
dcubed
parents:
diff
changeset
|
30 |
import sun.jvm.hotspot.types.*; |
862a85ed20db
6670684: 4/5 SA command universe did not print out CMS space information
dcubed
parents:
diff
changeset
|
31 |
import sun.jvm.hotspot.runtime.*; |
862a85ed20db
6670684: 4/5 SA command universe did not print out CMS space information
dcubed
parents:
diff
changeset
|
32 |
|
862a85ed20db
6670684: 4/5 SA command universe did not print out CMS space information
dcubed
parents:
diff
changeset
|
33 |
public class LinearAllocBlock extends VMObject { |
862a85ed20db
6670684: 4/5 SA command universe did not print out CMS space information
dcubed
parents:
diff
changeset
|
34 |
static { |
862a85ed20db
6670684: 4/5 SA command universe did not print out CMS space information
dcubed
parents:
diff
changeset
|
35 |
VM.registerVMInitializedObserver(new Observer() { |
862a85ed20db
6670684: 4/5 SA command universe did not print out CMS space information
dcubed
parents:
diff
changeset
|
36 |
public void update(Observable o, Object data) { |
862a85ed20db
6670684: 4/5 SA command universe did not print out CMS space information
dcubed
parents:
diff
changeset
|
37 |
initialize(VM.getVM().getTypeDataBase()); |
862a85ed20db
6670684: 4/5 SA command universe did not print out CMS space information
dcubed
parents:
diff
changeset
|
38 |
} |
862a85ed20db
6670684: 4/5 SA command universe did not print out CMS space information
dcubed
parents:
diff
changeset
|
39 |
}); |
862a85ed20db
6670684: 4/5 SA command universe did not print out CMS space information
dcubed
parents:
diff
changeset
|
40 |
} |
862a85ed20db
6670684: 4/5 SA command universe did not print out CMS space information
dcubed
parents:
diff
changeset
|
41 |
|
862a85ed20db
6670684: 4/5 SA command universe did not print out CMS space information
dcubed
parents:
diff
changeset
|
42 |
private static synchronized void initialize(TypeDataBase db) { |
862a85ed20db
6670684: 4/5 SA command universe did not print out CMS space information
dcubed
parents:
diff
changeset
|
43 |
Type type = db.lookupType("LinearAllocBlock"); |
862a85ed20db
6670684: 4/5 SA command universe did not print out CMS space information
dcubed
parents:
diff
changeset
|
44 |
word_sizeField= type.getCIntegerField("_word_size"); |
862a85ed20db
6670684: 4/5 SA command universe did not print out CMS space information
dcubed
parents:
diff
changeset
|
45 |
} |
862a85ed20db
6670684: 4/5 SA command universe did not print out CMS space information
dcubed
parents:
diff
changeset
|
46 |
|
862a85ed20db
6670684: 4/5 SA command universe did not print out CMS space information
dcubed
parents:
diff
changeset
|
47 |
// Fields |
862a85ed20db
6670684: 4/5 SA command universe did not print out CMS space information
dcubed
parents:
diff
changeset
|
48 |
private static CIntegerField word_sizeField; |
862a85ed20db
6670684: 4/5 SA command universe did not print out CMS space information
dcubed
parents:
diff
changeset
|
49 |
|
862a85ed20db
6670684: 4/5 SA command universe did not print out CMS space information
dcubed
parents:
diff
changeset
|
50 |
// Accessors |
862a85ed20db
6670684: 4/5 SA command universe did not print out CMS space information
dcubed
parents:
diff
changeset
|
51 |
public long word_size() { |
862a85ed20db
6670684: 4/5 SA command universe did not print out CMS space information
dcubed
parents:
diff
changeset
|
52 |
return word_sizeField.getValue(addr); |
862a85ed20db
6670684: 4/5 SA command universe did not print out CMS space information
dcubed
parents:
diff
changeset
|
53 |
} |
862a85ed20db
6670684: 4/5 SA command universe did not print out CMS space information
dcubed
parents:
diff
changeset
|
54 |
|
862a85ed20db
6670684: 4/5 SA command universe did not print out CMS space information
dcubed
parents:
diff
changeset
|
55 |
// Constructor |
862a85ed20db
6670684: 4/5 SA command universe did not print out CMS space information
dcubed
parents:
diff
changeset
|
56 |
public LinearAllocBlock(Address addr) { |
862a85ed20db
6670684: 4/5 SA command universe did not print out CMS space information
dcubed
parents:
diff
changeset
|
57 |
super(addr); |
862a85ed20db
6670684: 4/5 SA command universe did not print out CMS space information
dcubed
parents:
diff
changeset
|
58 |
} |
862a85ed20db
6670684: 4/5 SA command universe did not print out CMS space information
dcubed
parents:
diff
changeset
|
59 |
} |