comparison agent/src/share/classes/sun/jvm/hotspot/oops/Oop.java @ 8764:8552f0992748

8008796: SA: Oop.iterateFields() should support CompressedKlassPointers again Summary: add a missing change from JDK-7054512 so that Oop.iterateFields() works with UseCompressedKlassPointers Reviewed-by: coleenp, roland Contributed-by: yunda.mly@taobao.com
author kmo
date Fri, 15 Mar 2013 22:07:42 -0700
parents 8e47bac5643a
children
comparison
equal deleted inserted replaced
8758:a40807924950 8764:8552f0992748
1 /* 1 /*
2 * Copyright (c) 2000, 2012, Oracle and/or its affiliates. All rights reserved. 2 * Copyright (c) 2000, 2013, 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.
146 146
147 void iterateFields(OopVisitor visitor, boolean doVMFields) { 147 void iterateFields(OopVisitor visitor, boolean doVMFields) {
148 if (doVMFields) { 148 if (doVMFields) {
149 visitor.doCInt(mark, true); 149 visitor.doCInt(mark, true);
150 if (VM.getVM().isCompressedKlassPointersEnabled()) { 150 if (VM.getVM().isCompressedKlassPointersEnabled()) {
151 throw new InternalError("unimplemented"); 151 visitor.doMetadata(compressedKlass, true);
152 } else { 152 } else {
153 visitor.doMetadata(klass, true); 153 visitor.doMetadata(klass, true);
154 } 154 }
155 } 155 }
156 } 156 }