agent/src/share/classes/sun/jvm/hotspot/ci/ciField.java

Thu, 20 Dec 2012 16:24:51 -0800

author
katleman
date
Thu, 20 Dec 2012 16:24:51 -0800
changeset 4376
79f492f184d0
parent 3138
f6f3bb0ee072
child 6876
710a3c8b516e
permissions
-rw-r--r--

8004982: JDK8 source with GPL header errors
Reviewed-by: ohair

never@3138 1 /*
never@3138 2 * Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
never@3138 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
never@3138 4 *
never@3138 5 * This code is free software; you can redistribute it and/or modify it
never@3138 6 * under the terms of the GNU General Public License version 2 only, as
never@3138 7 * published by the Free Software Foundation.
never@3138 8 *
never@3138 9 * This code is distributed in the hope that it will be useful, but WITHOUT
never@3138 10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
never@3138 11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
never@3138 12 * version 2 for more details (a copy is included in the LICENSE file that
never@3138 13 * accompanied this code).
never@3138 14 *
never@3138 15 * You should have received a copy of the GNU General Public License version
never@3138 16 * 2 along with this work; if not, write to the Free Software Foundation,
never@3138 17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
never@3138 18 *
katleman@4376 19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
katleman@4376 20 * or visit www.oracle.com if you need additional information or have any
katleman@4376 21 * questions.
never@3138 22 *
never@3138 23 */
never@3138 24
never@3138 25 package sun.jvm.hotspot.ci;
never@3138 26
never@3138 27 import java.util.*;
never@3138 28 import sun.jvm.hotspot.debugger.*;
never@3138 29 import sun.jvm.hotspot.runtime.*;
never@3138 30 import sun.jvm.hotspot.oops.*;
never@3138 31 import sun.jvm.hotspot.types.*;
never@3138 32
never@3138 33 public class ciField extends VMObject {
never@3138 34 static {
never@3138 35 VM.registerVMInitializedObserver(new Observer() {
never@3138 36 public void update(Observable o, Object data) {
never@3138 37 initialize(VM.getVM().getTypeDataBase());
never@3138 38 }
never@3138 39 });
never@3138 40 }
never@3138 41
never@3138 42 private static synchronized void initialize(TypeDataBase db) throws WrongTypeException {
never@3138 43 Type type = db.lookupType("ciField");
never@3138 44 constantValueField = type.getAddressField("_constant_value");
never@3138 45 isConstantField = type.getAddressField("_is_constant");
never@3138 46 offsetField = new CIntField(type.getCIntegerField("_offset"), 0);
never@3138 47 signatureField = type.getAddressField("_signature");
never@3138 48 nameField = type.getAddressField("_name");
never@3138 49 holderField = type.getAddressField("_holder");
never@3138 50 }
never@3138 51
never@3138 52 private static AddressField constantValueField;
never@3138 53 private static AddressField isConstantField;
never@3138 54 private static CIntField offsetField;
never@3138 55 private static AddressField signatureField;
never@3138 56 private static AddressField nameField;
never@3138 57 private static AddressField holderField;
never@3138 58
never@3138 59 public ciField(Address addr) {
never@3138 60 super(addr);
never@3138 61 }
never@3138 62 }

mercurial