Search in sources :

Example 16 with Log

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

the class SpaceVerifierImpl method verifyUnalignedChunks.

private boolean verifyUnalignedChunks() {
    final Log trace = HeapImpl.getHeapImpl().getHeapVerifierImpl().getTraceLog().string("[SpaceVerifierImpl.verifyUnalignedChunks:");
    boolean result = true;
    UnalignedHeapChunk.UnalignedHeader chunk = space.getFirstUnalignedHeapChunk();
    while (chunk.isNonNull()) {
        result &= UnalignedHeapChunk.verifyUnalignedHeapChunk(chunk);
        chunk = chunk.getNext();
    }
    trace.string("  returns: ").bool(result).string("]").newline();
    return result;
}
Also used : Log(com.oracle.svm.core.log.Log)

Example 17 with Log

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

the class SpaceVerifierImpl method verifyChunks.

/**
 * Verify the contents of the chunks.
 */
private boolean verifyChunks() {
    final Log trace = HeapImpl.getHeapImpl().getHeapVerifierImpl().getTraceLog().string("[SpaceVerifierImpl.VerifierImpl.verifyChunks:");
    boolean result = true;
    result &= verifyAlignedChunks();
    result &= verifyUnalignedChunks();
    trace.string("  returns: ").bool(result).string("]").newline();
    return result;
}
Also used : Log(com.oracle.svm.core.log.Log)

Example 18 with Log

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

the class SpaceVerifierImpl method verifyChunkLists.

/**
 * Verify the chunk list structures, but not the chunks themselves.
 */
private boolean verifyChunkLists() {
    final Log trace = HeapImpl.getHeapImpl().getHeapVerifierImpl().getTraceLog();
    trace.string("[SpaceVerifierImpl.VerifierImpl.verifyChunkLists:");
    boolean result = true;
    /* Verify the list structure. */
    result &= verifyAlignedChunkList();
    result &= verifyUnalignedList();
    trace.string("  returns: ").bool(result);
    trace.string("]").newline();
    return result;
}
Also used : Log(com.oracle.svm.core.log.Log)

Example 19 with Log

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

the class SpaceVerifierImpl method verifyOnlyCleanAlignedChunks.

private boolean verifyOnlyCleanAlignedChunks() {
    final Log trace = HeapImpl.getHeapImpl().getHeapVerifierImpl().getTraceLog().string("[SpaceVerifierImpl.VerifierImpl.verifyOnlyAlignedChunks:").newline();
    boolean result = true;
    AlignedHeapChunk.AlignedHeader chunk = space.getFirstAlignedHeapChunk();
    while (chunk.isNonNull()) {
        result &= AlignedHeapChunk.verifyOnlyCleanCards(chunk);
        chunk = chunk.getNext();
    }
    trace.string("  returns: ").bool(result).string("]").newline();
    return result;
}
Also used : Log(com.oracle.svm.core.log.Log)

Example 20 with Log

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

the class SpaceVerifierImpl method verifyOnlyCleanCards.

boolean verifyOnlyCleanCards() {
    final Log trace = HeapImpl.getHeapImpl().getHeapVerifierImpl().getTraceLog().string("[SpaceVerifierImpl.VerifierImpl.verifyOnlyCleanCards:");
    trace.string("  space: ").string(space.getName()).newline();
    boolean result = verifyOnlyCleanAlignedChunks() && verifyOnlyCleanUnalignedChunks();
    trace.string("  returns: ").bool(result).string("]").newline();
    return result;
}
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