Mercurial > hg > graal-jvmci-8
comparison agent/src/share/classes/sun/jvm/hotspot/utilities/HeapHprofBinWriter.java @ 2380:32f7097f9d8f
7030300: more nightly failures after statics in Class changes
Reviewed-by: iveresov, jcoomes, dcubed
author | never |
---|---|
date | Wed, 23 Mar 2011 10:55:43 -0700 |
parents | 3582bf76420e |
children | 63997f575155 |
comparison
equal
deleted
inserted
replaced
2379:b099aaf51bf8 | 2380:32f7097f9d8f |
---|---|
1 /* | 1 /* |
2 * Copyright (c) 2004, 2008, Oracle and/or its affiliates. All rights reserved. | 2 * Copyright (c) 2004, 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. |
744 char typeCode = (char) field.getSignature().getByteAt(0); | 744 char typeCode = (char) field.getSignature().getByteAt(0); |
745 int kind = signatureToHprofKind(typeCode); | 745 int kind = signatureToHprofKind(typeCode); |
746 out.writeByte((byte)kind); | 746 out.writeByte((byte)kind); |
747 if (ik != null) { | 747 if (ik != null) { |
748 // static field | 748 // static field |
749 writeField(field, ik); | 749 writeField(field, ik.getJavaMirror()); |
750 } | 750 } |
751 } | 751 } |
752 } | 752 } |
753 | 753 |
754 public static int signatureToHprofKind(char ch) { | 754 public static int signatureToHprofKind(char ch) { |