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);
}
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();
}
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;
}
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();
}
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();
}
Aggregations