Search in sources :

Example 71 with Log

use of com.oracle.svm.core.log.Log in project graal by oracle.

the class VMErrorSubstitutions method shutdown.

@Uninterruptible(reason = "Allow use in uninterruptible code.", calleeMustBe = false)
static void shutdown() {
    Log log = Log.log();
    log.autoflush(true);
    log.string("VMError.shouldNotReachHere").newline();
    doShutdown(log);
}
Also used : Log(com.oracle.svm.core.log.Log) Uninterruptible(com.oracle.svm.core.annotate.Uninterruptible)

Example 72 with Log

use of com.oracle.svm.core.log.Log in project graal by oracle.

the class InstalledCodeBuilder method freeOSMemory.

/**
 * A tracing wrapper around getOSInterface().freeVirtualMemory.
 */
protected void freeOSMemory(final Pointer start, final UnsignedWord size) {
    final Log trace = Log.noopLog();
    trace.string("[SubstrateInstalledCode.freeOSMemory:");
    trace.string("  start: ").hex(start);
    trace.string("  size: ").unsigned(size);
    ConfigurationValues.getOSInterface().freeVirtualMemory(start, size);
    trace.string("]").newline();
}
Also used : Log(com.oracle.svm.core.log.Log)

Example 73 with Log

use of com.oracle.svm.core.log.Log in project graal by oracle.

the class InstalledCodeBuilder method allocateOSMemory.

/**
 * A tracing wrapper around getOSInterface().allocateVirtualMemory.
 */
protected Pointer allocateOSMemory(final UnsignedWord size, final boolean executable) {
    final Log trace = Log.noopLog();
    trace.string("[SubstrateInstalledCode.allocateAlignedMemory:");
    trace.string("  size: ").unsigned(size);
    trace.string("  executable: ").bool(executable);
    final Pointer result = ConfigurationValues.getOSInterface().allocateVirtualMemory(size, executable);
    trace.string("  returns: ").hex(result);
    trace.string("]").newline();
    return result;
}
Also used : Log(com.oracle.svm.core.log.Log) CodePointer(org.graalvm.nativeimage.c.function.CodePointer) Pointer(org.graalvm.word.Pointer)

Example 74 with Log

use of com.oracle.svm.core.log.Log in project graal by oracle.

the class MetricsLogUtils method logSection.

public static void logSection(String section, int ident) {
    Log log = Log.log();
    log.newline();
    log.spaces(ident);
    log.string(section);
    log.newline();
}
Also used : Log(com.oracle.svm.core.log.Log)

Example 75 with Log

use of com.oracle.svm.core.log.Log in project graal by oracle.

the class MetricsLogUtils method logPercentMetric.

public static void logPercentMetric(String category, long value) {
    Log log = Log.log();
    log.spaces(INDENT_LEVEL_2);
    log.string(category, CATEGORY_FILL, Log.LEFT_ALIGN).unsigned(value, VALUE_FILL, Log.RIGHT_ALIGN).string("%", UNIT_FILL, Log.RIGHT_ALIGN).newline();
}
Also used : Log(com.oracle.svm.core.log.Log)

Aggregations

Log (com.oracle.svm.core.log.Log)130 Pointer (org.graalvm.word.Pointer)30 UnsignedWord (org.graalvm.word.UnsignedWord)30 IsolateThread (org.graalvm.nativeimage.IsolateThread)4 CodePointer (org.graalvm.nativeimage.c.function.CodePointer)4 Uninterruptible (com.oracle.svm.core.annotate.Uninterruptible)3 CollectionWatcher (com.oracle.svm.core.heap.CollectionWatcher)3 DiscoverableReference (com.oracle.svm.core.heap.DiscoverableReference)3 XOptions (com.oracle.svm.core.option.XOptions)3 AlwaysInline (com.oracle.svm.core.annotate.AlwaysInline)2 CEntryPointOptions (com.oracle.svm.core.c.function.CEntryPointOptions)2 KnownIntrinsics.readCallerStackPointer (com.oracle.svm.core.snippets.KnownIntrinsics.readCallerStackPointer)2 CEntryPoint (org.graalvm.nativeimage.c.function.CEntryPoint)2 RestrictHeapAccess (com.oracle.svm.core.annotate.RestrictHeapAccess)1 CodeInfoQueryResult (com.oracle.svm.core.code.CodeInfoQueryResult)1 SubstrateInstalledCode (com.oracle.svm.core.deopt.SubstrateInstalledCode)1 AlignedHeader (com.oracle.svm.core.genscavenge.AlignedHeapChunk.AlignedHeader)1 UnalignedHeader (com.oracle.svm.core.genscavenge.UnalignedHeapChunk.UnalignedHeader)1 AllocationFreeList (com.oracle.svm.core.heap.AllocationFreeList)1 NoAllocationVerifier (com.oracle.svm.core.heap.NoAllocationVerifier)1