src/os/solaris/dtrace/generateJvmOffsets.cpp
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File 7104565 Sdiff src/os/solaris/dtrace

src/os/solaris/dtrace/generateJvmOffsets.cpp

Print this page




  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_interface/collectedHeap.hpp"
  45 #include "memory/heap.hpp"
  46 #include "memory/memRegion.hpp"
  47 #include "memory/universe.hpp"
  48 #include "oops/constMethod.hpp"
  49 #include "oops/klass.hpp"
  50 #include "oops/method.hpp"
  51 #include "oops/oop.hpp"
  52 #include "oops/symbol.hpp"
  53 #include "runtime/virtualspace.hpp"
  54 #include "runtime/vmStructs.hpp"
  55 #include "utilities/accessFlags.hpp"
  56 #include "utilities/globalDefinitions.hpp"
  57 #ifdef COMPILER1
  58 #if defined(DEBUG) || defined(FASTDEBUG)
  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 bellow.
  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;
  77 
  78 address StubRoutines::_call_stub_return_address = NULL;
  79 
  80 StubQueue* AbstractInterpreter::_code = NULL;
  81 
  82 #endif /* defined(DEBUG) || defined(FASTDEBUG) */
  83 #endif /* COMPILER1 */
  84 
  85 #define GEN_OFFS(Type,Name)                             \
  86   switch(gen_variant) {                                 \
  87   case GEN_OFFSET:                                      \
  88     printf("#define OFFSET_%-33s %d\n",                 \
  89             #Type #Name, offset_of(Type, Name));        \
  90     break;                                              \
  91   case GEN_INDEX:                                       \
  92     printf("#define IDX_OFFSET_%-33s %d\n",             \
  93             #Type #Name, index++);                      \
  94     break;                                              \
  95   case GEN_TABLE:                                       \
  96     printf("\tOFFSET_%s,\n", #Type #Name);              \
  97     break;                                              \
  98   }
  99 
 100 #define GEN_SIZE(Type)                                  \
 101   switch(gen_variant) {                                 \
 102   case GEN_OFFSET:                                      \




  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_interface/collectedHeap.hpp"
  45 #include "memory/heap.hpp"
  46 #include "memory/memRegion.hpp"
  47 #include "memory/universe.hpp"
  48 #include "oops/constMethod.hpp"
  49 #include "oops/klass.hpp"
  50 #include "oops/method.hpp"
  51 #include "oops/oop.hpp"
  52 #include "oops/symbol.hpp"
  53 #include "runtime/virtualspace.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;
  77 
  78 address StubRoutines::_call_stub_return_address = NULL;
  79 
  80 StubQueue* AbstractInterpreter::_code = NULL;
  81 
  82 #endif /* ASSERT */
  83 #endif /* COMPILER1 */
  84 
  85 #define GEN_OFFS(Type,Name)                             \
  86   switch(gen_variant) {                                 \
  87   case GEN_OFFSET:                                      \
  88     printf("#define OFFSET_%-33s %d\n",                 \
  89             #Type #Name, offset_of(Type, Name));        \
  90     break;                                              \
  91   case GEN_INDEX:                                       \
  92     printf("#define IDX_OFFSET_%-33s %d\n",             \
  93             #Type #Name, index++);                      \
  94     break;                                              \
  95   case GEN_TABLE:                                       \
  96     printf("\tOFFSET_%s,\n", #Type #Name);              \
  97     break;                                              \
  98   }
  99 
 100 #define GEN_SIZE(Type)                                  \
 101   switch(gen_variant) {                                 \
 102   case GEN_OFFSET:                                      \


src/os/solaris/dtrace/generateJvmOffsets.cpp
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File