src/share/vm/prims/jvmtiEnvBase.cpp
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File 7017732 Cdiff src/share/vm/prims/jvmtiEnvBase.cpp

src/share/vm/prims/jvmtiEnvBase.cpp

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 2003, 2010, 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) 2003, 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.
*** 614,626 **** return false; } bool found = false; if (jfieldIDWorkaround::is_static_jfieldID(field)) { JNIid* id = jfieldIDWorkaround::from_static_jfieldID(field); ! int offset = id->offset(); ! klassOop holder = id->holder(); ! found = instanceKlass::cast(holder)->find_local_field_from_offset(offset, true, fd); } else { // Non-static field. The fieldID is really the offset of the field within the object. int offset = jfieldIDWorkaround::from_instance_jfieldID(k, field); found = instanceKlass::cast(k)->find_field_from_offset(offset, false, fd); } --- 614,624 ---- return false; } bool found = false; if (jfieldIDWorkaround::is_static_jfieldID(field)) { JNIid* id = jfieldIDWorkaround::from_static_jfieldID(field); ! found = id->find_local_field(fd); } else { // Non-static field. The fieldID is really the offset of the field within the object. int offset = jfieldIDWorkaround::from_instance_jfieldID(k, field); found = instanceKlass::cast(k)->find_field_from_offset(offset, false, fd); }
src/share/vm/prims/jvmtiEnvBase.cpp
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File