sun.jvm.hotspot.runtime.VMObjectFactory Java Examples
The following examples show how to use
sun.jvm.hotspot.runtime.VMObjectFactory.
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: CompactibleFreeListSpace.java From jdk8u60 with GNU General Public License v2.0 | 6 votes |
public long free() { // small chunks long size = 0; Address cur = addr.addOffsetTo( indexedFreeListField.getOffset() ); cur = cur.addOffsetTo(IndexSetStart*AdaptiveFreeList.sizeOf()); for (int i=IndexSetStart; i<IndexSetSize; i += IndexSetStride) { AdaptiveFreeList freeList = (AdaptiveFreeList) VMObjectFactory.newObject(AdaptiveFreeList.class, cur); size += i*freeList.count(); cur= cur.addOffsetTo(IndexSetStride*AdaptiveFreeList.sizeOf()); } // large block AFLBinaryTreeDictionary aflbd = (AFLBinaryTreeDictionary) VMObjectFactory.newObject(AFLBinaryTreeDictionary.class, dictionaryField.getValue(addr)); size += aflbd.size(); // linear block in TLAB LinearAllocBlock lab = (LinearAllocBlock) VMObjectFactory.newObject(LinearAllocBlock.class, addr.addOffsetTo(smallLinearAllocBlockFieldOffset)); size += lab.word_size(); return size*heapWordSize; }
Example #2
Source File: CompactibleFreeListSpace.java From TencentKona-8 with GNU General Public License v2.0 | 6 votes |
public long free() { // small chunks long size = 0; Address cur = addr.addOffsetTo( indexedFreeListField.getOffset() ); cur = cur.addOffsetTo(IndexSetStart*AdaptiveFreeList.sizeOf()); for (int i=IndexSetStart; i<IndexSetSize; i += IndexSetStride) { AdaptiveFreeList freeList = (AdaptiveFreeList) VMObjectFactory.newObject(AdaptiveFreeList.class, cur); size += i*freeList.count(); cur= cur.addOffsetTo(IndexSetStride*AdaptiveFreeList.sizeOf()); } // large block AFLBinaryTreeDictionary aflbd = (AFLBinaryTreeDictionary) VMObjectFactory.newObject(AFLBinaryTreeDictionary.class, dictionaryField.getValue(addr)); size += aflbd.size(); // linear block in TLAB LinearAllocBlock lab = (LinearAllocBlock) VMObjectFactory.newObject(LinearAllocBlock.class, addr.addOffsetTo(smallLinearAllocBlockFieldOffset)); size += lab.word_size(); return size*heapWordSize; }
Example #3
Source File: CompactibleFreeListSpace.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 6 votes |
public long free() { // small chunks long size = 0; Address cur = addr.addOffsetTo( indexedFreeListField.getOffset() ); cur = cur.addOffsetTo(IndexSetStart*AdaptiveFreeList.sizeOf()); for (int i=IndexSetStart; i<IndexSetSize; i += IndexSetStride) { AdaptiveFreeList freeList = (AdaptiveFreeList) VMObjectFactory.newObject(AdaptiveFreeList.class, cur); size += i*freeList.count(); cur= cur.addOffsetTo(IndexSetStride*AdaptiveFreeList.sizeOf()); } // large block AFLBinaryTreeDictionary aflbd = (AFLBinaryTreeDictionary) VMObjectFactory.newObject(AFLBinaryTreeDictionary.class, dictionaryField.getValue(addr)); size += aflbd.size(); // linear block in TLAB LinearAllocBlock lab = (LinearAllocBlock) VMObjectFactory.newObject(LinearAllocBlock.class, addr.addOffsetTo(smallLinearAllocBlockFieldOffset)); size += lab.word_size(); return size*heapWordSize; }
Example #4
Source File: G1HeapRegionTable.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
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 #5
Source File: G1HeapRegionTable.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
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 #6
Source File: G1HeapRegionTable.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
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 #7
Source File: G1HeapRegionTable.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
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 #8
Source File: G1HeapRegionTable.java From hottub with GNU General Public License v2.0 | 5 votes |
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 #9
Source File: G1HeapRegionTable.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
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 #10
Source File: OldgenAccessor.java From vjtools with Apache License 2.0 | 5 votes |
private void skipFreeChunk(final long addressSize) { if (!cur.equals(regionStart)) { liveRegions++; } FreeChunk fc = (FreeChunk) VMObjectFactory.newObject(FreeChunk.class, cur); long chunkSize = fc.size(); cur = cur.addOffsetTo(chunkSize * addressSize); }
Example #11
Source File: G1HeapRegionTable.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
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 #12
Source File: G1CollectedHeap.java From openjdk-8-source with GNU General Public License v2.0 | 4 votes |
public HeapRegionSetBase humongousSet() { Address humongousSetAddr = addr.addOffsetTo(humongousSetFieldOffset); return (HeapRegionSetBase) VMObjectFactory.newObject(HeapRegionSetBase.class, humongousSetAddr); }
Example #13
Source File: Method.java From openjdk-jdk9 with GNU General Public License v2.0 | 4 votes |
public ConstMethod getConstMethod() { Address addr = constMethod.getValue(getAddress()); return (ConstMethod) VMObjectFactory.newObject(ConstMethod.class, addr); }
Example #14
Source File: G1CollectedHeap.java From openjdk-8 with GNU General Public License v2.0 | 4 votes |
private HeapRegionSeq hrs() { Address hrsAddr = addr.addOffsetTo(hrsFieldOffset); return (HeapRegionSeq) VMObjectFactory.newObject(HeapRegionSeq.class, hrsAddr); }
Example #15
Source File: Method.java From openjdk-jdk9 with GNU General Public License v2.0 | 4 votes |
public MethodCounters getMethodCounters() { Address addr = methodCounters.getValue(getAddress()); return (MethodCounters) VMObjectFactory.newObject(MethodCounters.class, addr); }
Example #16
Source File: Method.java From openjdk-8 with GNU General Public License v2.0 | 4 votes |
public NMethod getNativeMethod() { Address addr = code.getValue(getAddress()); return (NMethod) VMObjectFactory.newObject(NMethod.class, addr); }
Example #17
Source File: G1CollectedHeap.java From hottub with GNU General Public License v2.0 | 4 votes |
public G1MonitoringSupport g1mm() { Address g1mmAddr = g1mmField.getValue(addr); return (G1MonitoringSupport) VMObjectFactory.newObject(G1MonitoringSupport.class, g1mmAddr); }
Example #18
Source File: G1CollectedHeap.java From hottub with GNU General Public License v2.0 | 4 votes |
private HeapRegionManager hrm() { Address hrmAddr = addr.addOffsetTo(hrmFieldOffset); return (HeapRegionManager) VMObjectFactory.newObject(HeapRegionManager.class, hrmAddr); }
Example #19
Source File: G1CollectedHeap.java From hottub with GNU General Public License v2.0 | 4 votes |
public G1Allocator allocator() { Address g1AllocatorAddr = g1Allocator.getValue(addr); return (G1Allocator) VMObjectFactory.newObject(G1Allocator.class, g1AllocatorAddr); }
Example #20
Source File: G1CollectedHeap.java From openjdk-8-source with GNU General Public License v2.0 | 4 votes |
private HeapRegionSeq hrs() { Address hrsAddr = addr.addOffsetTo(hrsFieldOffset); return (HeapRegionSeq) VMObjectFactory.newObject(HeapRegionSeq.class, hrsAddr); }
Example #21
Source File: Method.java From openjdk-8 with GNU General Public License v2.0 | 4 votes |
public MethodData getMethodData() { Address addr = methodData.getValue(getAddress()); return (MethodData) VMObjectFactory.newObject(MethodData.class, addr); }
Example #22
Source File: G1CollectedHeap.java From openjdk-jdk9 with GNU General Public License v2.0 | 4 votes |
public HeapRegionSetBase oldSet() { Address oldSetAddr = addr.addOffsetTo(oldSetFieldOffset); return (HeapRegionSetBase) VMObjectFactory.newObject(HeapRegionSetBase.class, oldSetAddr); }
Example #23
Source File: G1CollectedHeap.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 4 votes |
public HeapRegionSetBase humongousSet() { Address humongousSetAddr = addr.addOffsetTo(humongousSetFieldOffset); return (HeapRegionSetBase) VMObjectFactory.newObject(HeapRegionSetBase.class, humongousSetAddr); }
Example #24
Source File: G1CollectedHeap.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 4 votes |
public HeapRegionSetBase oldSet() { Address oldSetAddr = addr.addOffsetTo(oldSetFieldOffset); return (HeapRegionSetBase) VMObjectFactory.newObject(HeapRegionSetBase.class, oldSetAddr); }
Example #25
Source File: G1CollectedHeap.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 4 votes |
public G1Allocator allocator() { Address g1AllocatorAddr = g1Allocator.getValue(addr); return (G1Allocator) VMObjectFactory.newObject(G1Allocator.class, g1AllocatorAddr); }
Example #26
Source File: G1CollectedHeap.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 4 votes |
public G1MonitoringSupport g1mm() { Address g1mmAddr = g1mmField.getValue(addr); return (G1MonitoringSupport) VMObjectFactory.newObject(G1MonitoringSupport.class, g1mmAddr); }
Example #27
Source File: G1CollectedHeap.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 4 votes |
private HeapRegionManager hrm() { Address hrmAddr = addr.addOffsetTo(hrmFieldOffset); return (HeapRegionManager) VMObjectFactory.newObject(HeapRegionManager.class, hrmAddr); }
Example #28
Source File: CompactibleFreeListSpace.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 4 votes |
public CMSCollector collector() { return (CMSCollector) VMObjectFactory.newObject( CMSCollector.class, collectorField.getValue(addr)); }
Example #29
Source File: Method.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 4 votes |
public NMethod getNativeMethod() { Address addr = code.getValue(getAddress()); return (NMethod) VMObjectFactory.newObject(NMethod.class, addr); }
Example #30
Source File: Method.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 4 votes |
public MethodCounters getMethodCounters() { Address addr = methodCounters.getValue(getAddress()); return (MethodCounters) VMObjectFactory.newObject(MethodCounters.class, addr); }