Java Code Examples for sun.jvm.hotspot.types.Type#getAddressField()

The following examples show how to use sun.jvm.hotspot.types.Type#getAddressField() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: Method.java    From openjdk-jdk8u with GNU General Public License v2.0 6 votes vote down vote up
private static synchronized void initialize(TypeDataBase db) throws WrongTypeException {
  Type type                  = db.lookupType("Method");
  constMethod                = type.getAddressField("_constMethod");
  methodData                 = type.getAddressField("_method_data");
  methodCounters             = type.getAddressField("_method_counters");
  methodSize                 = new CIntField(type.getCIntegerField("_method_size"), 0);
  accessFlags                = new CIntField(type.getCIntegerField("_access_flags"), 0);
  code                       = type.getAddressField("_code");
  vtableIndex                = new CIntField(type.getCIntegerField("_vtable_index"), 0);
  bytecodeOffset = type.getSize();

  /*
  interpreterEntry           = type.getAddressField("_interpreter_entry");
  fromCompiledCodeEntryPoint = type.getAddressField("_from_compiled_code_entry_point");

  */
  objectInitializerName = null;
  classInitializerName = null;
}
 
Example 2
Source File: Method.java    From openjdk-8 with GNU General Public License v2.0 6 votes vote down vote up
private static synchronized void initialize(TypeDataBase db) throws WrongTypeException {
  Type type                  = db.lookupType("Method");
  constMethod                = type.getAddressField("_constMethod");
  methodData                 = type.getAddressField("_method_data");
  methodCounters             = type.getAddressField("_method_counters");
  methodSize                 = new CIntField(type.getCIntegerField("_method_size"), 0);
  accessFlags                = new CIntField(type.getCIntegerField("_access_flags"), 0);
  code                       = type.getAddressField("_code");
  vtableIndex                = new CIntField(type.getCIntegerField("_vtable_index"), 0);
  bytecodeOffset = type.getSize();

  /*
  interpreterEntry           = type.getAddressField("_interpreter_entry");
  fromCompiledCodeEntryPoint = type.getAddressField("_from_compiled_code_entry_point");

  */
  objectInitializerName = null;
  classInitializerName = null;
}
 
Example 3
Source File: Method.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 6 votes vote down vote up
private static synchronized void initialize(TypeDataBase db) throws WrongTypeException {
  Type type                  = db.lookupType("Method");
  constMethod                = type.getAddressField("_constMethod");
  methodData                 = type.getAddressField("_method_data");
  methodCounters             = type.getAddressField("_method_counters");
  methodSize                 = new CIntField(type.getCIntegerField("_method_size"), 0);
  accessFlags                = new CIntField(type.getCIntegerField("_access_flags"), 0);
  code                       = type.getAddressField("_code");
  vtableIndex                = new CIntField(type.getCIntegerField("_vtable_index"), 0);
  bytecodeOffset = type.getSize();

  /*
  interpreterEntry           = type.getAddressField("_interpreter_entry");
  fromCompiledCodeEntryPoint = type.getAddressField("_from_compiled_code_entry_point");

  */
  objectInitializerName = null;
  classInitializerName = null;
}
 
Example 4
Source File: Method.java    From TencentKona-8 with GNU General Public License v2.0 6 votes vote down vote up
private static synchronized void initialize(TypeDataBase db) throws WrongTypeException {
  Type type                  = db.lookupType("Method");
  constMethod                = type.getAddressField("_constMethod");
  methodData                 = type.getAddressField("_method_data");
  methodCounters             = type.getAddressField("_method_counters");
  methodSize                 = new CIntField(type.getCIntegerField("_method_size"), 0);
  accessFlags                = new CIntField(type.getCIntegerField("_access_flags"), 0);
  code                       = type.getAddressField("_code");
  vtableIndex                = new CIntField(type.getCIntegerField("_vtable_index"), 0);
  bytecodeOffset = type.getSize();

  /*
  interpreterEntry           = type.getAddressField("_interpreter_entry");
  fromCompiledCodeEntryPoint = type.getAddressField("_from_compiled_code_entry_point");

  */
  objectInitializerName = null;
  classInitializerName = null;
}
 
Example 5
Source File: Method.java    From jdk8u60 with GNU General Public License v2.0 6 votes vote down vote up
private static synchronized void initialize(TypeDataBase db) throws WrongTypeException {
  Type type                  = db.lookupType("Method");
  constMethod                = type.getAddressField("_constMethod");
  methodData                 = type.getAddressField("_method_data");
  methodCounters             = type.getAddressField("_method_counters");
  methodSize                 = new CIntField(type.getCIntegerField("_method_size"), 0);
  accessFlags                = new CIntField(type.getCIntegerField("_access_flags"), 0);
  code                       = type.getAddressField("_code");
  vtableIndex                = new CIntField(type.getCIntegerField("_vtable_index"), 0);
  bytecodeOffset = type.getSize();

  /*
  interpreterEntry           = type.getAddressField("_interpreter_entry");
  fromCompiledCodeEntryPoint = type.getAddressField("_from_compiled_code_entry_point");

  */
  objectInitializerName = null;
  classInitializerName = null;
}
 
Example 6
Source File: CompactibleFreeListSpace.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
private static synchronized void initialize(TypeDataBase db) {
   long sizeofFreeChunk = db.lookupType("FreeChunk").getSize();
   VM vm = VM.getVM();
   MinChunkSizeInBytes = numQuanta(sizeofFreeChunk, vm.getMinObjAlignmentInBytes()) *
                  vm.getMinObjAlignmentInBytes();

  Type type = db.lookupType("CompactibleFreeListSpace");
  collectorField = type.getAddressField("_collector");
  collectorField       = type.getAddressField("_collector");
  dictionaryField      = type.getAddressField("_dictionary");
  indexedFreeListField = type.getAddressField("_indexedFreeList[0]");
  smallLinearAllocBlockFieldOffset = type.getField("_smallLinearAllocBlock").getOffset();
}
 
Example 7
Source File: G1CollectedHeap.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
static private synchronized void initialize(TypeDataBase db) {
    Type type = db.lookupType("G1CollectedHeap");

    hrsFieldOffset = type.getField("_hrs").getOffset();
    g1CommittedFieldOffset = type.getField("_g1_committed").getOffset();
    summaryBytesUsedField = type.getCIntegerField("_summary_bytes_used");
    g1mmField = type.getAddressField("_g1mm");
    oldSetFieldOffset = type.getField("_old_set").getOffset();
    humongousSetFieldOffset = type.getField("_humongous_set").getOffset();
}
 
Example 8
Source File: G1HeapRegionTable.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
static private synchronized void initialize(TypeDataBase db) {
    Type type = db.lookupType("G1HeapRegionTable");

    baseField = type.getAddressField("_base");
    lengthField = type.getCIntegerField("_length");
    biasedBaseField = type.getAddressField("_biased_base");
    biasField = type.getCIntegerField("_bias");
    shiftByField = type.getCIntegerField("_shift_by");
}
 
Example 9
Source File: G1CollectedHeap.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
static private synchronized void initialize(TypeDataBase db) {
    Type type = db.lookupType("G1CollectedHeap");

    hrmFieldOffset = type.getField("_hrm").getOffset();
    summaryBytesUsedField = type.getCIntegerField("_summary_bytes_used");
    g1mmField = type.getAddressField("_g1mm");
    oldSetFieldOffset = type.getField("_old_set").getOffset();
    humongousSetFieldOffset = type.getField("_humongous_set").getOffset();
}
 
Example 10
Source File: CompactibleFreeListSpace.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
private static synchronized void initialize(TypeDataBase db) {
   long sizeofFreeChunk = db.lookupType("FreeChunk").getSize();
   VM vm = VM.getVM();
   MinChunkSizeInBytes = numQuanta(sizeofFreeChunk, vm.getMinObjAlignmentInBytes()) *
                  vm.getMinObjAlignmentInBytes();

  Type type = db.lookupType("CompactibleFreeListSpace");
  collectorField = type.getAddressField("_collector");
  collectorField       = type.getAddressField("_collector");
  dictionaryField      = type.getAddressField("_dictionary");
  indexedFreeListField = type.getAddressField("_indexedFreeList[0]");
  smallLinearAllocBlockFieldOffset = type.getField("_smallLinearAllocBlock").getOffset();
}
 
Example 11
Source File: G1HeapRegionTable.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
static private synchronized void initialize(TypeDataBase db) {
    Type type = db.lookupType("G1HeapRegionTable");

    baseField = type.getAddressField("_base");
    lengthField = type.getCIntegerField("_length");
    biasedBaseField = type.getAddressField("_biased_base");
    biasField = type.getCIntegerField("_bias");
    shiftByField = type.getCIntegerField("_shift_by");
}
 
Example 12
Source File: G1HeapRegionTable.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
static private synchronized void initialize(TypeDataBase db) {
    Type type = db.lookupType("G1HeapRegionTable");

    baseField = type.getAddressField("_base");
    lengthField = type.getCIntegerField("_length");
    biasedBaseField = type.getAddressField("_biased_base");
    biasField = type.getCIntegerField("_bias");
    shiftByField = type.getCIntegerField("_shift_by");
}
 
Example 13
Source File: CompactibleFreeListSpace.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
private static synchronized void initialize(TypeDataBase db) {
   long sizeofFreeChunk = db.lookupType("FreeChunk").getSize();
   VM vm = VM.getVM();
   MinChunkSizeInBytes = numQuanta(sizeofFreeChunk, vm.getMinObjAlignmentInBytes()) *
                  vm.getMinObjAlignmentInBytes();

  Type type = db.lookupType("CompactibleFreeListSpace");
  collectorField = type.getAddressField("_collector");
  collectorField       = type.getAddressField("_collector");
  dictionaryField      = type.getAddressField("_dictionary");
  indexedFreeListField = type.getAddressField("_indexedFreeList[0]");
  smallLinearAllocBlockFieldOffset = type.getField("_smallLinearAllocBlock").getOffset();
}
 
Example 14
Source File: G1CollectedHeap.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
static private synchronized void initialize(TypeDataBase db) {
    Type type = db.lookupType("G1CollectedHeap");

    hrmFieldOffset = type.getField("_hrm").getOffset();
    g1Allocator = type.getAddressField("_allocator");
    g1mmField = type.getAddressField("_g1mm");
    oldSetFieldOffset = type.getField("_old_set").getOffset();
    humongousSetFieldOffset = type.getField("_humongous_set").getOffset();
}
 
Example 15
Source File: G1HeapRegionTable.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
static private synchronized void initialize(TypeDataBase db) {
    Type type = db.lookupType("G1HeapRegionTable");

    baseField = type.getAddressField("_base");
    lengthField = type.getCIntegerField("_length");
    biasedBaseField = type.getAddressField("_biased_base");
    biasField = type.getCIntegerField("_bias");
    shiftByField = type.getCIntegerField("_shift_by");
}
 
Example 16
Source File: CompactibleFreeListSpace.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
private static synchronized void initialize(TypeDataBase db) {
   long sizeofFreeChunk = db.lookupType("FreeChunk").getSize();
   VM vm = VM.getVM();
   MinChunkSizeInBytes = numQuanta(sizeofFreeChunk, vm.getMinObjAlignmentInBytes()) *
                  vm.getMinObjAlignmentInBytes();

  Type type = db.lookupType("CompactibleFreeListSpace");
  collectorField = type.getAddressField("_collector");
  collectorField       = type.getAddressField("_collector");
  dictionaryField      = type.getAddressField("_dictionary");
  indexedFreeListField = type.getAddressField("_indexedFreeList[0]");
  smallLinearAllocBlockFieldOffset = type.getField("_smallLinearAllocBlock").getOffset();
}
 
Example 17
Source File: HeapRegion.java    From openjdk-jdk9 with GNU General Public License v2.0 3 votes vote down vote up
static private synchronized void initialize(TypeDataBase db) {
    Type type = db.lookupType("HeapRegion");

    grainBytesField = type.getCIntegerField("GrainBytes");
    topField = type.getAddressField("_top");

}
 
Example 18
Source File: HeapRegion.java    From jdk8u60 with GNU General Public License v2.0 3 votes vote down vote up
static private synchronized void initialize(TypeDataBase db) {
    Type type = db.lookupType("HeapRegion");

    grainBytesField = type.getCIntegerField("GrainBytes");
    topField = type.getAddressField("_top");

}
 
Example 19
Source File: HeapRegion.java    From openjdk-jdk8u with GNU General Public License v2.0 3 votes vote down vote up
static private synchronized void initialize(TypeDataBase db) {
    Type type = db.lookupType("HeapRegion");

    grainBytesField = type.getCIntegerField("GrainBytes");
    topField = type.getAddressField("_top");

}
 
Example 20
Source File: HeapRegion.java    From hottub with GNU General Public License v2.0 3 votes vote down vote up
static private synchronized void initialize(TypeDataBase db) {
    Type type = db.lookupType("HeapRegion");

    grainBytesField = type.getCIntegerField("GrainBytes");
    topField = type.getAddressField("_top");

}