本文整理汇总了Java中com.sun.max.vm.run.java.JavaRunScheme类的典型用法代码示例。如果您正苦于以下问题:Java JavaRunScheme类的具体用法?Java JavaRunScheme怎么用?Java JavaRunScheme使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
JavaRunScheme类属于com.sun.max.vm.run.java包,在下文中一共展示了JavaRunScheme类的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: initialize
import com.sun.max.vm.run.java.JavaRunScheme; //导入依赖的package包/类
@Override
public void initialize(MaxineVM.Phase phase) {
super.initialize(phase);
if (Compilation.PrintCompilationAllocationOption.getValue() ||
JavaRunScheme.isHeapProfilingOptionPassed()) {
useAllocationCounter = true;
}
if (phase == MaxineVM.Phase.PRISTINE) {
useTLAB = UseTLAB;
initialTlabSize = tlabSizeOption.getValue();
if (initialTlabSize.lessThan(0)) {
FatalError.unexpected("Specified TLAB size is too small");
}
} else if (phase == MaxineVM.Phase.RUNNING) {
HeapSchemeWithTLAB.setTraceTLAB(false);
} else if (phase == MaxineVM.Phase.TERMINATING) {
if (PrintTLABStats) {
globalTlabStats.printTLABStats();
}
}
}
示例2: initialize
import com.sun.max.vm.run.java.JavaRunScheme; //导入依赖的package包/类
@Override
public void initialize(MaxineVM.Phase phase) {
super.initialize(phase);
if (Compilation.PrintCompilationAllocationOption.getValue() ||
JavaRunScheme.isHeapProfilingOptionPassed()) {
useAllocationCounter = true;
}
if (phase == MaxineVM.Phase.PRISTINE) {
useTLAB = UseTLAB;
initialTlabSize = tlabSizeOption.getValue();
if (initialTlabSize.lessThan(0)) {
FatalError.unexpected("Specified TLAB size is too small");
}
} else if (phase == MaxineVM.Phase.TERMINATING) {
if (PrintTLABStats) {
globalTlabStats.printTLABStats();
}
}
}
示例3: doDebugAfterCreateArray
import com.sun.max.vm.run.java.JavaRunScheme; //导入依赖的package包/类
@NEVER_INLINE
private static void doDebugAfterCreateArray(Hub hub, int length, Object array) {
allocationLogger.logUnalignedArray(array, hub.classActor);
if (Heap.logAllocation()) {
allocationLogger.logCreateArray(hub, length, array);
}
if (Heap.profileAllocation()) {
JavaRunScheme.getHeapSamplingProfiler().sampleAllocation(array);
}
}
示例4: doDebugAfterCreateTuple
import com.sun.max.vm.run.java.JavaRunScheme; //导入依赖的package包/类
@NEVER_INLINE
private static void doDebugAfterCreateTuple(Hub hub, Object object) {
allocationLogger.logUnalignedTuple(object, hub.classActor);
if (Heap.logAllocation()) {
allocationLogger.logCreateTuple(hub, object);
}
if (Heap.profileAllocation()) {
JavaRunScheme.getHeapSamplingProfiler().sampleAllocation(object);
}
}
示例5: doDebugAfterCreateHybrid
import com.sun.max.vm.run.java.JavaRunScheme; //导入依赖的package包/类
@NEVER_INLINE
private static void doDebugAfterCreateHybrid(Hub hub, Object hybrid) {
allocationLogger.logUnalignedHybrid(hybrid, hub.classActor);
if (Heap.logAllocation()) {
allocationLogger.logCreateHybrid(hub, hybrid);
}
if (Heap.profileAllocation()) {
JavaRunScheme.getHeapSamplingProfiler().sampleAllocation(hybrid);
}
}
示例6: doDebugAfterExpandHybrid
import com.sun.max.vm.run.java.JavaRunScheme; //导入依赖的package包/类
@NEVER_INLINE
private static void doDebugAfterExpandHybrid(Hub hub, Object expandedHybrid) {
allocationLogger.logUnalignedHybrid(expandedHybrid, hub.classActor);
if (Heap.logAllocation()) {
allocationLogger.logExpandHybrid(hub, expandedHybrid);
}
if (Heap.profileAllocation()) {
JavaRunScheme.getHeapSamplingProfiler().sampleAllocation(expandedHybrid);
}
}
示例7: doDebugAfterClone
import com.sun.max.vm.run.java.JavaRunScheme; //导入依赖的package包/类
@NEVER_INLINE
private static void doDebugAfterClone(Hub hub, Object clone) {
if (Heap.logAllocation()) {
allocationLogger.logClone(hub, clone);
}
if (Heap.profileAllocation()) {
JavaRunScheme.getHeapSamplingProfiler().sampleAllocation(clone);
}
}
示例8: doDebugAfterCreateArray
import com.sun.max.vm.run.java.JavaRunScheme; //导入依赖的package包/类
@NEVER_INLINE
private static void doDebugAfterCreateArray(Hub hub, int length, Object array) {
if (Heap.logAllocation()) {
allocationLogger.logCreateArray(hub, length, array);
}
if (Heap.profileAllocation()) {
JavaRunScheme.getHeapSamplingProfiler().sampleAllocation(array);
}
}
示例9: doDebugAfterCreateTuple
import com.sun.max.vm.run.java.JavaRunScheme; //导入依赖的package包/类
@NEVER_INLINE
private static void doDebugAfterCreateTuple(Hub hub, Object object) {
if (Heap.logAllocation()) {
allocationLogger.logCreateTuple(hub, object);
}
if (Heap.profileAllocation()) {
JavaRunScheme.getHeapSamplingProfiler().sampleAllocation(object);
}
}
示例10: doDebugAfterCreateHybrid
import com.sun.max.vm.run.java.JavaRunScheme; //导入依赖的package包/类
@NEVER_INLINE
private static void doDebugAfterCreateHybrid(Hub hub, Object hybrid) {
if (Heap.logAllocation()) {
allocationLogger.logCreateHybrid(hub, hybrid);
}
if (Heap.profileAllocation()) {
JavaRunScheme.getHeapSamplingProfiler().sampleAllocation(hybrid);
}
}
示例11: doDebugAfterExpandHybrid
import com.sun.max.vm.run.java.JavaRunScheme; //导入依赖的package包/类
@NEVER_INLINE
private static void doDebugAfterExpandHybrid(Hub hub, Object expandedHybrid) {
if (Heap.logAllocation()) {
allocationLogger.logExpandHybrid(hub, expandedHybrid);
}
if (Heap.profileAllocation()) {
JavaRunScheme.getHeapSamplingProfiler().sampleAllocation(expandedHybrid);
}
}
示例12: profileAllocation
import com.sun.max.vm.run.java.JavaRunScheme; //导入依赖的package包/类
@INLINE
public static boolean profileAllocation() {
return MaxineVM.isDebug() && JavaRunScheme.getHeapSamplingProfiler() != null;
}