2258N/A * Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved. 2258N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 2258N/A * This code is free software; you can redistribute it and/or modify it 2258N/A * under the terms of the GNU General Public License version 2 only, as 2258N/A * published by the Free Software Foundation. 2258N/A * This code is distributed in the hope that it will be useful, but WITHOUT 2258N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 2258N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 2258N/A * version 2 for more details (a copy is included in the LICENSE file that 2258N/A * You should have received a copy of the GNU General Public License version 2258N/A * 2 along with this work; if not, write to the Free Software Foundation, 2258N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 2258N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 2258N/A * or visit www.oracle.com if you need additional information or have any 2258N/A/** A utility class encapsulating useful oop operations */ 2258N/A// initialize fields for java.lang.Class 2258N/A // klass and oop_size are HotSpot magic fields and hence we can't 2258N/A // find them from InstanceKlass for java.lang.Class. 2258N/A /** get klassOop field at offset hc_klass_offset from a java.lang.Class object */ 2258N/A /** get oop_size field at offset oop_size_offset from a java.lang.Class object */