Mercurial > hg > graal-compiler
comparison agent/src/share/classes/sun/jvm/hotspot/jdi/ClassObjectReferenceImpl.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 | c18cbe5936b8 |
children |
comparison
equal
deleted
inserted
replaced
2410:fe1dbd98e18f | 2411:63997f575155 |
---|---|
1 /* | 1 /* |
2 * Copyright (c) 2002, 2003, Oracle and/or its affiliates. All rights reserved. | 2 * Copyright (c) 2002, 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. |
25 package sun.jvm.hotspot.jdi; | 25 package sun.jvm.hotspot.jdi; |
26 | 26 |
27 import com.sun.jdi.*; | 27 import com.sun.jdi.*; |
28 import sun.jvm.hotspot.oops.Instance; | 28 import sun.jvm.hotspot.oops.Instance; |
29 import sun.jvm.hotspot.oops.Klass; | 29 import sun.jvm.hotspot.oops.Klass; |
30 import sun.jvm.hotspot.oops.OopUtilities; | 30 import sun.jvm.hotspot.oops.java_lang_Class; |
31 | 31 |
32 public class ClassObjectReferenceImpl extends ObjectReferenceImpl | 32 public class ClassObjectReferenceImpl extends ObjectReferenceImpl |
33 implements ClassObjectReference { | 33 implements ClassObjectReference { |
34 private ReferenceType reflectedType; | 34 private ReferenceType reflectedType; |
35 | 35 |
37 super(vm, oRef); | 37 super(vm, oRef); |
38 } | 38 } |
39 | 39 |
40 public ReferenceType reflectedType() { | 40 public ReferenceType reflectedType() { |
41 if (reflectedType == null) { | 41 if (reflectedType == null) { |
42 Klass k = OopUtilities.classOopToKlass(ref()); | 42 Klass k = java_lang_Class.asKlass(ref()); |
43 reflectedType = vm.referenceType(k); | 43 reflectedType = vm.referenceType(k); |
44 } | 44 } |
45 return reflectedType; | 45 return reflectedType; |
46 } | 46 } |
47 | 47 |