src/jdk.internal.vm.ci/share/classes/jdk.vm.ci.code/src/jdk/vm/ci/code/InstalledCode.java
Index Unified diffs Context diffs Sdiffs Frames Patch New Old Previous File Next File open Sdiff src/jdk.internal.vm.ci/share/classes/jdk.vm.ci.code/src/jdk/vm/ci/code

src/jdk.internal.vm.ci/share/classes/jdk.vm.ci.code/src/jdk/vm/ci/code/InstalledCode.java

Print this page


   1 /*
   2  * Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
   3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4  *
   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
   7  * published by the Free Software Foundation.
   8  *
   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  */


  35 
  36     /**
  37      * Raw address of entryPoint of this installed code.
  38      */
  39     protected long entryPoint;
  40 
  41     /**
  42      * Counts how often the address field was reassigned.
  43      */
  44     protected long version;
  45 
  46     protected final String name;
  47 
  48     public InstalledCode(String name) {
  49         this.name = name;
  50     }
  51 
  52     /**
  53      * @return the address of entity representing this installed code.
  54      */
  55     public final long getAddress() {
  56         return address;
  57     }
  58 
  59     /**
  60      * @return the address of the normal entry point of the installed code.
  61      */
  62     public final long getEntryPoint() {
  63         return entryPoint;
  64     }
  65 
  66     /**
  67      * @return the version number of this installed code
  68      */
  69     public final long getVersion() {
  70         return version;
  71     }
  72 
  73     /**
  74      * Returns the name of this installed code.
  75      */
  76     public String getName() {
  77         return name;
  78     }
  79 
  80     /**
  81      * Returns the start address of this installed code if it is {@linkplain #isValid() valid}, 0
  82      * otherwise.


   1 /*
   2  * Copyright (c) 2011, 2019, Oracle and/or its affiliates. All rights reserved.
   3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4  *
   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
   7  * published by the Free Software Foundation.
   8  *
   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  */


  35 
  36     /**
  37      * Raw address of entryPoint of this installed code.
  38      */
  39     protected long entryPoint;
  40 
  41     /**
  42      * Counts how often the address field was reassigned.
  43      */
  44     protected long version;
  45 
  46     protected final String name;
  47 
  48     public InstalledCode(String name) {
  49         this.name = name;
  50     }
  51 
  52     /**
  53      * @return the address of entity representing this installed code.
  54      */
  55     public long getAddress() {
  56         return address;
  57     }
  58 
  59     /**
  60      * @return the address of the normal entry point of the installed code.
  61      */
  62     public long getEntryPoint() {
  63         return entryPoint;
  64     }
  65 
  66     /**
  67      * @return the version number of this installed code
  68      */
  69     public final long getVersion() {
  70         return version;
  71     }
  72 
  73     /**
  74      * Returns the name of this installed code.
  75      */
  76     public String getName() {
  77         return name;
  78     }
  79 
  80     /**
  81      * Returns the start address of this installed code if it is {@linkplain #isValid() valid}, 0
  82      * otherwise.


src/jdk.internal.vm.ci/share/classes/jdk.vm.ci.code/src/jdk/vm/ci/code/InstalledCode.java
Index Unified diffs Context diffs Sdiffs Frames Patch New Old Previous File Next File