Mercurial > hg > graal-compiler
comparison agent/src/share/classes/sun/jvm/hotspot/oops/Oop.java @ 2411:63997f575155
7031614: jmap -permstat fails with java.lang.InternalError in sun.jvm.hotspot.oops.OopField.getValue
Reviewed-by: kvn, dcubed
author | never |
---|---|
date | Wed, 30 Mar 2011 07:47:19 -0700 |
parents | 0a8e0d4345b3 |
children | da91efe96a93 |
comparison
equal
deleted
inserted
replaced
2410:fe1dbd98e18f | 2411:63997f575155 |
---|---|
1 /* | 1 /* |
2 * Copyright (c) 2000, 2010, 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. |
101 } | 101 } |
102 | 102 |
103 // Returns the byte size of this object | 103 // Returns the byte size of this object |
104 public long getObjectSize() { | 104 public long getObjectSize() { |
105 Klass k = getKlass(); | 105 Klass k = getKlass(); |
106 if (k instanceof InstanceKlass) { | 106 // All other types should be overriding getObjectSize directly |
107 return ((InstanceKlass)k).getSizeHelper() | 107 return ((InstanceKlass)k).getObjectSize(this); |
108 * VM.getVM().getAddressSize(); | |
109 } | |
110 // If it is not an instance, this method should be replaced. | |
111 return getHeaderSize(); | |
112 } | 108 } |
113 | 109 |
114 // Type test operations | 110 // Type test operations |
115 public boolean isInstance() { return false; } | 111 public boolean isInstance() { return false; } |
116 public boolean isInstanceRef() { return false; } | 112 public boolean isInstanceRef() { return false; } |