agent/src/share/classes/sun/jvm/hotspot/oops/Field.java
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File 7088955 Cdiff agent/src/share/classes/sun/jvm/hotspot/oops/Field.java

agent/src/share/classes/sun/jvm/hotspot/oops/Field.java

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 2000, 2003, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. --- 1,7 ---- /* ! * Copyright (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation.
*** 46,55 **** --- 46,56 ---- ConstantPool cp = holder.getConstants(); TypeArray fields = holder.getFields(); short access = fields.getShortAt(fieldArrayIndex + InstanceKlass.ACCESS_FLAGS_OFFSET); short nameIndex = fields.getShortAt(fieldArrayIndex + InstanceKlass.NAME_INDEX_OFFSET); short signatureIndex = fields.getShortAt(fieldArrayIndex + InstanceKlass.SIGNATURE_INDEX_OFFSET); + initialValueIndex = fields.getShortAt(fieldArrayIndex + InstanceKlass.INITVAL_INDEX_OFFSET); offset = VM.getVM().buildIntFromShorts(fields.getShortAt(fieldArrayIndex + InstanceKlass.LOW_OFFSET), fields.getShortAt(fieldArrayIndex + InstanceKlass.HIGH_OFFSET)); short genericSignatureIndex = fields.getShortAt(fieldArrayIndex + InstanceKlass.GENERIC_SIGNATURE_INDEX_OFFSET); Symbol name = cp.getSymbolAt(nameIndex); id = new NamedFieldIdentifier(name.asString());
*** 72,81 **** --- 73,83 ---- private FieldType fieldType; private Symbol signature; private Symbol genericSignature; private AccessFlags accessFlags; private int fieldArrayIndex; + private int initialValueIndex; /** Returns the byte offset of the field within the object or klass */ public long getOffset() { return offset; } /** Returns the identifier of the field */
*** 131,140 **** --- 133,144 ---- public boolean isTransient() { return accessFlags.isTransient(); } public boolean isSynthetic() { return accessFlags.isSynthetic(); } public boolean isEnumConstant() { return accessFlags.isEnum(); } + public boolean hasInitialValue() { return initialValueIndex != 0; } + public boolean equals(Object obj) { if (obj == null) { return false; }
agent/src/share/classes/sun/jvm/hotspot/oops/Field.java
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File