Java Code Examples for sun.jvm.hotspot.runtime.VMObjectFactory#newObject()

The following examples show how to use sun.jvm.hotspot.runtime.VMObjectFactory#newObject() . 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: G1HeapRegionTable.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
private HeapRegion at(long index) {
    Address arrayAddr = baseField.getValue(addr);
    // Offset of &_base[index]
    long offset = index * VM.getVM().getAddressSize();
    Address regionAddr = arrayAddr.getAddressAt(offset);
    return (HeapRegion) VMObjectFactory.newObject(HeapRegion.class,
                                                  regionAddr);
}
 
Example 2
Source File: G1HeapRegionTable.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
private HeapRegion at(long index) {
    Address arrayAddr = baseField.getValue(addr);
    // Offset of &_base[index]
    long offset = index * VM.getVM().getAddressSize();
    Address regionAddr = arrayAddr.getAddressAt(offset);
    return (HeapRegion) VMObjectFactory.newObject(HeapRegion.class,
                                                  regionAddr);
}
 
Example 3
Source File: G1CollectedHeap.java    From openjdk-jdk8u with GNU General Public License v2.0 4 votes vote down vote up
public G1Allocator allocator() {
    Address g1AllocatorAddr = g1Allocator.getValue(addr);
    return (G1Allocator) VMObjectFactory.newObject(G1Allocator.class, g1AllocatorAddr);
}
 
Example 4
Source File: HeapRegionManager.java    From openjdk-jdk9 with GNU General Public License v2.0 4 votes vote down vote up
private G1HeapRegionTable regions() {
    Address regionsAddr = addr.addOffsetTo(regionsFieldOffset);
    return (G1HeapRegionTable) VMObjectFactory.newObject(G1HeapRegionTable.class,
                                                         regionsAddr);
}
 
Example 5
Source File: G1CollectedHeap.java    From openjdk-jdk8u with GNU General Public License v2.0 4 votes vote down vote up
private HeapRegionManager hrm() {
    Address hrmAddr = addr.addOffsetTo(hrmFieldOffset);
    return (HeapRegionManager) VMObjectFactory.newObject(HeapRegionManager.class,
                                                     hrmAddr);
}
 
Example 6
Source File: G1CollectedHeap.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 4 votes vote down vote up
public HeapRegionSetBase humongousSet() {
    Address humongousSetAddr = addr.addOffsetTo(humongousSetFieldOffset);
    return (HeapRegionSetBase) VMObjectFactory.newObject(HeapRegionSetBase.class,
                                                         humongousSetAddr);
}
 
Example 7
Source File: G1CollectedHeap.java    From openjdk-jdk8u with GNU General Public License v2.0 4 votes vote down vote up
public G1MonitoringSupport g1mm() {
    Address g1mmAddr = g1mmField.getValue(addr);
    return (G1MonitoringSupport) VMObjectFactory.newObject(G1MonitoringSupport.class, g1mmAddr);
}
 
Example 8
Source File: Method.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 4 votes vote down vote up
public MethodData   getMethodData()                 {
  Address addr = methodData.getValue(getAddress());
  return (MethodData) VMObjectFactory.newObject(MethodData.class, addr);
}
 
Example 9
Source File: G1CollectedHeap.java    From openjdk-8-source with GNU General Public License v2.0 4 votes vote down vote up
private HeapRegionSeq hrs() {
    Address hrsAddr = addr.addOffsetTo(hrsFieldOffset);
    return (HeapRegionSeq) VMObjectFactory.newObject(HeapRegionSeq.class,
                                                     hrsAddr);
}
 
Example 10
Source File: Method.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 4 votes vote down vote up
public MethodCounters getMethodCounters()           {
  Address addr = methodCounters.getValue(getAddress());
  return (MethodCounters) VMObjectFactory.newObject(MethodCounters.class, addr);
}
 
Example 11
Source File: G1CollectedHeap.java    From openjdk-8-source with GNU General Public License v2.0 4 votes vote down vote up
public HeapRegionSetBase humongousSet() {
    Address humongousSetAddr = addr.addOffsetTo(humongousSetFieldOffset);
    return (HeapRegionSetBase) VMObjectFactory.newObject(HeapRegionSetBase.class,
                                                         humongousSetAddr);
}
 
Example 12
Source File: G1CollectedHeap.java    From openjdk-jdk8u with GNU General Public License v2.0 4 votes vote down vote up
public HeapRegionSetBase humongousSet() {
    Address humongousSetAddr = addr.addOffsetTo(humongousSetFieldOffset);
    return (HeapRegionSetBase) VMObjectFactory.newObject(HeapRegionSetBase.class,
                                                         humongousSetAddr);
}
 
Example 13
Source File: G1CollectedHeap.java    From openjdk-8-source with GNU General Public License v2.0 4 votes vote down vote up
public G1MonitoringSupport g1mm() {
    Address g1mmAddr = g1mmField.getValue(addr);
    return (G1MonitoringSupport) VMObjectFactory.newObject(G1MonitoringSupport.class, g1mmAddr);
}
 
Example 14
Source File: G1CollectedHeap.java    From openjdk-8 with GNU General Public License v2.0 4 votes vote down vote up
private HeapRegionSeq hrs() {
    Address hrsAddr = addr.addOffsetTo(hrsFieldOffset);
    return (HeapRegionSeq) VMObjectFactory.newObject(HeapRegionSeq.class,
                                                     hrsAddr);
}
 
Example 15
Source File: HeapRegionManager.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 4 votes vote down vote up
private G1HeapRegionTable regions() {
    Address regionsAddr = addr.addOffsetTo(regionsFieldOffset);
    return (G1HeapRegionTable) VMObjectFactory.newObject(G1HeapRegionTable.class,
                                                         regionsAddr);
}
 
Example 16
Source File: CompactibleFreeListSpace.java    From hottub with GNU General Public License v2.0 4 votes vote down vote up
public CMSCollector collector() {
 return (CMSCollector) VMObjectFactory.newObject(
                              CMSCollector.class,
                              collectorField.getValue(addr));
}
 
Example 17
Source File: HeapRegionSetBase.java    From hottub with GNU General Public License v2.0 4 votes vote down vote up
public HeapRegionSetCount count() {
    Address countFieldAddr = addr.addOffsetTo(countField);
    return (HeapRegionSetCount) VMObjectFactory.newObject(HeapRegionSetCount.class, countFieldAddr);
}
 
Example 18
Source File: Method.java    From TencentKona-8 with GNU General Public License v2.0 4 votes vote down vote up
public NMethod getNativeMethod() {
  Address addr = code.getValue(getAddress());
  return (NMethod) VMObjectFactory.newObject(NMethod.class, addr);
}
 
Example 19
Source File: HeapRegionSeq.java    From openjdk-8 with GNU General Public License v2.0 4 votes vote down vote up
private G1HeapRegionTable regions() {
    Address regionsAddr = addr.addOffsetTo(regionsFieldOffset);
    return (G1HeapRegionTable) VMObjectFactory.newObject(G1HeapRegionTable.class,
                                                         regionsAddr);
}
 
Example 20
Source File: G1CollectedHeap.java    From hottub with GNU General Public License v2.0 4 votes vote down vote up
private HeapRegionManager hrm() {
    Address hrmAddr = addr.addOffsetTo(hrmFieldOffset);
    return (HeapRegionManager) VMObjectFactory.newObject(HeapRegionManager.class,
                                                     hrmAddr);
}