< prev index next >

make/hotspot/src/native/dtrace/generateJvmOffsets.cpp

Print this page




  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  *
  23  */
  24 
  25 /*
  26  * This is to provide sanity check in jhelper.d which compares SCCS
  27  * versions of generateJvmOffsets.cpp used to create and extract
  28  * contents of __JvmOffsets[] table.
  29  * The __JvmOffsets[] table is located in generated JvmOffsets.cpp.
  30  *
  31  * GENOFFS_SCCS_VER 34
  32  */
  33 
  34 #include "generateJvmOffsets.h"

  35 
  36 /* A workaround for private and protected fields */
  37 #define private   public
  38 #define protected public
  39 
  40 #include <proc_service.h>
  41 #include "code/codeBlob.hpp"
  42 #include "code/nmethod.hpp"
  43 #include "code/pcDesc.hpp"
  44 #include "gc/shared/collectedHeap.hpp"
  45 #include "memory/heap.hpp"
  46 #include "memory/memRegion.hpp"
  47 #include "memory/universe.hpp"
  48 #include "memory/virtualspace.hpp"
  49 #include "oops/constMethod.hpp"
  50 #include "oops/klass.hpp"
  51 #include "oops/method.hpp"
  52 #include "oops/oop.hpp"
  53 #include "oops/symbol.hpp"
  54 #include "runtime/vmStructs.hpp"
  55 #include "utilities/accessFlags.hpp"
  56 #include "utilities/globalDefinitions.hpp"





  57 #ifdef COMPILER1
  58 #ifdef ASSERT
  59 
  60 /*
  61  * To avoid the most part of potential link errors
  62  * we link this program with -z nodefs .
  63  *
  64  * But for 'debug1' and 'fastdebug1' we still have to provide
  65  * a particular workaround for the following symbols below.
  66  * It will be good to find out a generic way in the future.
  67  */
  68 
  69 #pragma weak tty
  70 #pragma weak CMSExpAvgFactor
  71 
  72 #if defined(i386) || defined(__i386) || defined(__amd64)
  73 #pragma weak noreg
  74 #endif /* i386 */
  75 
  76 LIR_Opr LIR_OprFact::illegalOpr = (LIR_Opr) 0;




  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  *
  23  */
  24 
  25 /*
  26  * This is to provide sanity check in jhelper.d which compares SCCS
  27  * versions of generateJvmOffsets.cpp used to create and extract
  28  * contents of __JvmOffsets[] table.
  29  * The __JvmOffsets[] table is located in generated JvmOffsets.cpp.
  30  *
  31  * GENOFFS_SCCS_VER 34
  32  */
  33 
  34 #include <stdio.h>
  35 #include <strings.h>
  36 
  37 /* A workaround for private and protected fields */
  38 #define private   public
  39 #define protected public
  40 
  41 #include <proc_service.h>



  42 #include "gc/shared/collectedHeap.hpp"









  43 #include "runtime/vmStructs.hpp"
  44 
  45 typedef enum GEN_variant {
  46         GEN_OFFSET = 0,
  47         GEN_INDEX  = 1,
  48         GEN_TABLE  = 2
  49 } GEN_variant;
  50 
  51 #ifdef COMPILER1
  52 #ifdef ASSERT
  53 
  54 /*
  55  * To avoid the most part of potential link errors
  56  * we link this program with -z nodefs .
  57  *
  58  * But for 'debug1' and 'fastdebug1' we still have to provide
  59  * a particular workaround for the following symbols below.
  60  * It will be good to find out a generic way in the future.
  61  */
  62 
  63 #pragma weak tty
  64 #pragma weak CMSExpAvgFactor
  65 
  66 #if defined(i386) || defined(__i386) || defined(__amd64)
  67 #pragma weak noreg
  68 #endif /* i386 */
  69 
  70 LIR_Opr LIR_OprFact::illegalOpr = (LIR_Opr) 0;


< prev index next >