当前位置: 首页>>代码示例>>Java>>正文


Java JavaRunScheme类代码示例

本文整理汇总了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();
        }
    }
}
 
开发者ID:beehive-lab,项目名称:Maxine-VM,代码行数:22,代码来源:HeapSchemeWithTLAB.java

示例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();
        }
    }
}
 
开发者ID:arodchen,项目名称:MaxSim,代码行数:20,代码来源:HeapSchemeWithTLAB.java

示例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);
    }
}
 
开发者ID:beehive-lab,项目名称:Maxine-VM,代码行数:11,代码来源:Heap.java

示例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);
    }
}
 
开发者ID:beehive-lab,项目名称:Maxine-VM,代码行数:11,代码来源:Heap.java

示例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);
    }
}
 
开发者ID:beehive-lab,项目名称:Maxine-VM,代码行数:11,代码来源:Heap.java

示例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);
    }
}
 
开发者ID:beehive-lab,项目名称:Maxine-VM,代码行数:11,代码来源:Heap.java

示例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);
    }
}
 
开发者ID:beehive-lab,项目名称:Maxine-VM,代码行数:10,代码来源:Heap.java

示例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);
    }
}
 
开发者ID:arodchen,项目名称:MaxSim,代码行数:10,代码来源:Heap.java

示例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);
    }
}
 
开发者ID:arodchen,项目名称:MaxSim,代码行数:10,代码来源:Heap.java

示例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);
    }
}
 
开发者ID:arodchen,项目名称:MaxSim,代码行数:10,代码来源:Heap.java

示例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);
    }
}
 
开发者ID:arodchen,项目名称:MaxSim,代码行数:10,代码来源:Heap.java

示例12: profileAllocation

import com.sun.max.vm.run.java.JavaRunScheme; //导入依赖的package包/类
@INLINE
public static boolean profileAllocation() {
    return MaxineVM.isDebug() && JavaRunScheme.getHeapSamplingProfiler() != null;
}
 
开发者ID:beehive-lab,项目名称:Maxine-VM,代码行数:5,代码来源:Heap.java


注:本文中的com.sun.max.vm.run.java.JavaRunScheme类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。