Coverage Report

Created: 2018-07-03 15:31

/home/travis/build/MoarVM/MoarVM/src/gc/allocation.h
Line
Count
Source
1
#if !defined(MVM_CAN_UNALIGNED_INT64) || !defined(MVM_CAN_UNALIGNED_NUM64)
2
#define MVM_ALIGN_SIZE(size) MVM_ALIGN_SECTION(size)
3
#else
4
63.5M
#define MVM_ALIGN_SIZE(size) (size)
5
#endif
6
void * MVM_gc_allocate_nursery(MVMThreadContext *tc, size_t size);
7
void * MVM_gc_allocate_zeroed(MVMThreadContext *tc, size_t size);
8
MVMSTable * MVM_gc_allocate_stable(MVMThreadContext *tc, const MVMREPROps *repr, MVMObject *how);
9
MVMObject * MVM_gc_allocate_type_object(MVMThreadContext *tc, MVMSTable *st);
10
MVMObject * MVM_gc_allocate_object(MVMThreadContext *tc, MVMSTable *st);
11
MVMFrame * MVM_gc_allocate_frame(MVMThreadContext *tc);
12
void MVM_gc_allocate_gen2_default_set(MVMThreadContext *tc);
13
void MVM_gc_allocate_gen2_default_clear(MVMThreadContext *tc);
14
15
36.8M
MVM_STATIC_INLINE void * MVM_gc_allocate(MVMThreadContext *tc, size_t size) {
16
36.8M
    return tc->allocate_in_gen2
17
4.22M
        ? MVM_gc_gen2_allocate_zeroed(tc->gen2, size)
18
32.6M
        : MVM_gc_allocate_nursery(tc, MVM_ALIGN_SIZE(size));
19
36.8M
}
Unexecuted instantiation: facts.c:MVM_gc_allocate
Unexecuted instantiation: sc.c:MVM_gc_allocate
Unexecuted instantiation: serialization.c:MVM_gc_allocate
Unexecuted instantiation: compiler.c:MVM_gc_allocate
Unexecuted instantiation: driver.c:MVM_gc_allocate
Unexecuted instantiation: dump.c:MVM_gc_allocate
Unexecuted instantiation: graph.c:MVM_gc_allocate
Unexecuted instantiation: codegen.c:MVM_gc_allocate
Unexecuted instantiation: candidate.c:MVM_gc_allocate
Unexecuted instantiation: manipulate.c:MVM_gc_allocate
Unexecuted instantiation: bootstrap.c:MVM_gc_allocate
Unexecuted instantiation: optimize.c:MVM_gc_allocate
Unexecuted instantiation: dead_bb_elimination.c:MVM_gc_allocate
Unexecuted instantiation: deopt.c:MVM_gc_allocate
Unexecuted instantiation: log.c:MVM_gc_allocate
Unexecuted instantiation: threshold.c:MVM_gc_allocate
Unexecuted instantiation: inline.c:MVM_gc_allocate
Unexecuted instantiation: osr.c:MVM_gc_allocate
Unexecuted instantiation: lookup.c:MVM_gc_allocate
Unexecuted instantiation: iterator.c:MVM_gc_allocate
Unexecuted instantiation: ConcBlockingQueue.c:MVM_gc_allocate
Unexecuted instantiation: NativeCall.c:MVM_gc_allocate
Unexecuted instantiation: CPointer.c:MVM_gc_allocate
Unexecuted instantiation: CStr.c:MVM_gc_allocate
Unexecuted instantiation: CArray.c:MVM_gc_allocate
Unexecuted instantiation: CStruct.c:MVM_gc_allocate
Unexecuted instantiation: CUnion.c:MVM_gc_allocate
Unexecuted instantiation: ReentrantMutex.c:MVM_gc_allocate
Unexecuted instantiation: ConditionVariable.c:MVM_gc_allocate
Unexecuted instantiation: Semaphore.c:MVM_gc_allocate
Unexecuted instantiation: worker.c:MVM_gc_allocate
Unexecuted instantiation: MVMAsyncTask.c:MVM_gc_allocate
Unexecuted instantiation: MVMNull.c:MVM_gc_allocate
Unexecuted instantiation: CPPStruct.c:MVM_gc_allocate
Unexecuted instantiation: NativeRef.c:MVM_gc_allocate
Unexecuted instantiation: MultiDimArray.c:MVM_gc_allocate
Unexecuted instantiation: Decoder.c:MVM_gc_allocate
Unexecuted instantiation: MVMSpeshLog.c:MVM_gc_allocate
Unexecuted instantiation: MVMStaticFrameSpesh.c:MVM_gc_allocate
Unexecuted instantiation: 6model.c:MVM_gc_allocate
Unexecuted instantiation: mmap.c:MVM_gc_allocate
Unexecuted instantiation: profile.c:MVM_gc_allocate
Unexecuted instantiation: heapsnapshot.c:MVM_gc_allocate
Unexecuted instantiation: telemeh.c:MVM_gc_allocate
Unexecuted instantiation: crossthreadwrite.c:MVM_gc_allocate
Unexecuted instantiation: line_coverage.c:MVM_gc_allocate
Unexecuted instantiation: sys.c:MVM_gc_allocate
Unexecuted instantiation: random.c:MVM_gc_allocate
Unexecuted instantiation: memmem32.c:MVM_gc_allocate
Unexecuted instantiation: moar.c:MVM_gc_allocate
Unexecuted instantiation: instrument.c:MVM_gc_allocate
Unexecuted instantiation: time.c:MVM_gc_allocate
Unexecuted instantiation: label.c:MVM_gc_allocate
Unexecuted instantiation: compile.c:MVM_gc_allocate
Unexecuted instantiation: expr.c:MVM_gc_allocate
Unexecuted instantiation: tile.c:MVM_gc_allocate
Unexecuted instantiation: linear_scan.c:MVM_gc_allocate
Unexecuted instantiation: interface.c:MVM_gc_allocate
Unexecuted instantiation: emit.c:MVM_gc_allocate
Unexecuted instantiation: arch.c:MVM_gc_allocate
Unexecuted instantiation: nfg.c:MVM_gc_allocate
Unexecuted instantiation: stats.c:MVM_gc_allocate
Unexecuted instantiation: plan.c:MVM_gc_allocate
Unexecuted instantiation: arg_guard.c:MVM_gc_allocate
Unexecuted instantiation: plugin.c:MVM_gc_allocate
Unexecuted instantiation: decode_stream.c:MVM_gc_allocate
Unexecuted instantiation: ascii.c:MVM_gc_allocate
Unexecuted instantiation: parse_num.c:MVM_gc_allocate
Unexecuted instantiation: utf8.c:MVM_gc_allocate
Unexecuted instantiation: utf8_c8.c:MVM_gc_allocate
Unexecuted instantiation: MVMContinuation.c:MVM_gc_allocate
Unexecuted instantiation: unicode.c:MVM_gc_allocate
Unexecuted instantiation: normalize.c:MVM_gc_allocate
Unexecuted instantiation: latin1.c:MVM_gc_allocate
Unexecuted instantiation: utf16.c:MVM_gc_allocate
Unexecuted instantiation: windows1252.c:MVM_gc_allocate
Unexecuted instantiation: shiftjis.c:MVM_gc_allocate
Unexecuted instantiation: shiftjis_codeindex.c:MVM_gc_allocate
Unexecuted instantiation: bigintops.c:MVM_gc_allocate
Unexecuted instantiation: roots.c:MVM_gc_allocate
Unexecuted instantiation: continuation.c:MVM_gc_allocate
Unexecuted instantiation: intcache.c:MVM_gc_allocate
Unexecuted instantiation: fixedsizealloc.c:MVM_gc_allocate
Unexecuted instantiation: regionalloc.c:MVM_gc_allocate
Unexecuted instantiation: debugserver.c:MVM_gc_allocate
Unexecuted instantiation: config.c:MVM_gc_allocate
Unexecuted instantiation: orchestrate.c:MVM_gc_allocate
allocation.c:MVM_gc_allocate
Line
Count
Source
15
36.8M
MVM_STATIC_INLINE void * MVM_gc_allocate(MVMThreadContext *tc, size_t size) {
16
36.8M
    return tc->allocate_in_gen2
17
4.22M
        ? MVM_gc_gen2_allocate_zeroed(tc->gen2, size)
18
32.6M
        : MVM_gc_allocate_nursery(tc, MVM_ALIGN_SIZE(size));
19
36.8M
}
Unexecuted instantiation: worklist.c:MVM_gc_allocate
Unexecuted instantiation: nativecall_dyncall.c:MVM_gc_allocate
Unexecuted instantiation: collect.c:MVM_gc_allocate
Unexecuted instantiation: gen2.c:MVM_gc_allocate
Unexecuted instantiation: wb.c:MVM_gc_allocate
Unexecuted instantiation: objectid.c:MVM_gc_allocate
Unexecuted instantiation: finalize.c:MVM_gc_allocate
Unexecuted instantiation: debug.c:MVM_gc_allocate
Unexecuted instantiation: io.c:MVM_gc_allocate
Unexecuted instantiation: eventloop.c:MVM_gc_allocate
Unexecuted instantiation: syncfile.c:MVM_gc_allocate
Unexecuted instantiation: bytecodedump.c:MVM_gc_allocate
Unexecuted instantiation: args.c:MVM_gc_allocate
Unexecuted instantiation: exceptions.c:MVM_gc_allocate
Unexecuted instantiation: interp.c:MVM_gc_allocate
Unexecuted instantiation: threadcontext.c:MVM_gc_allocate
Unexecuted instantiation: compunit.c:MVM_gc_allocate
Unexecuted instantiation: bytecode.c:MVM_gc_allocate
Unexecuted instantiation: frame.c:MVM_gc_allocate
Unexecuted instantiation: callstack.c:MVM_gc_allocate
Unexecuted instantiation: validation.c:MVM_gc_allocate
Unexecuted instantiation: syncsocket.c:MVM_gc_allocate
Unexecuted instantiation: threads.c:MVM_gc_allocate
Unexecuted instantiation: ops.c:MVM_gc_allocate
Unexecuted instantiation: hll.c:MVM_gc_allocate
Unexecuted instantiation: loadbytecode.c:MVM_gc_allocate
Unexecuted instantiation: num.c:MVM_gc_allocate
Unexecuted instantiation: coerce.c:MVM_gc_allocate
Unexecuted instantiation: dll.c:MVM_gc_allocate
Unexecuted instantiation: ext.c:MVM_gc_allocate
Unexecuted instantiation: nativecall.c:MVM_gc_allocate
Unexecuted instantiation: MVMThread.c:MVM_gc_allocate
Unexecuted instantiation: P6opaque.c:MVM_gc_allocate
Unexecuted instantiation: MVMCode.c:MVM_gc_allocate
Unexecuted instantiation: MVMOSHandle.c:MVM_gc_allocate
Unexecuted instantiation: MVMCompUnit.c:MVM_gc_allocate
Unexecuted instantiation: MVMStaticFrame.c:MVM_gc_allocate
Unexecuted instantiation: P6int.c:MVM_gc_allocate
Unexecuted instantiation: P6num.c:MVM_gc_allocate
Unexecuted instantiation: Uninstantiable.c:MVM_gc_allocate
Unexecuted instantiation: HashAttrStore.c:MVM_gc_allocate
Unexecuted instantiation: P6str.c:MVM_gc_allocate
Unexecuted instantiation: MVMIter.c:MVM_gc_allocate
Unexecuted instantiation: MVMContext.c:MVM_gc_allocate
Unexecuted instantiation: SCRef.c:MVM_gc_allocate
Unexecuted instantiation: MVMCallCapture.c:MVM_gc_allocate
Unexecuted instantiation: P6bigint.c:MVM_gc_allocate
Unexecuted instantiation: NFA.c:MVM_gc_allocate
Unexecuted instantiation: MVMException.c:MVM_gc_allocate
Unexecuted instantiation: MVMDLLSym.c:MVM_gc_allocate
Unexecuted instantiation: MVMMultiCache.c:MVM_gc_allocate
Unexecuted instantiation: reprconv.c:MVM_gc_allocate
Unexecuted instantiation: fileops.c:MVM_gc_allocate
Unexecuted instantiation: dirops.c:MVM_gc_allocate
Unexecuted instantiation: procops.c:MVM_gc_allocate
Unexecuted instantiation: timers.c:MVM_gc_allocate
Unexecuted instantiation: filewatchers.c:MVM_gc_allocate
Unexecuted instantiation: signals.c:MVM_gc_allocate
Unexecuted instantiation: asyncsocket.c:MVM_gc_allocate
Unexecuted instantiation: asyncsocketudp.c:MVM_gc_allocate
Unexecuted instantiation: reprs.c:MVM_gc_allocate
Unexecuted instantiation: callsite.c:MVM_gc_allocate
Unexecuted instantiation: containers.c:MVM_gc_allocate
Unexecuted instantiation: parametric.c:MVM_gc_allocate
Unexecuted instantiation: MVMString.c:MVM_gc_allocate
Unexecuted instantiation: VMArray.c:MVM_gc_allocate
Unexecuted instantiation: MVMHash.c:MVM_gc_allocate
Unexecuted instantiation: MVMCFunction.c:MVM_gc_allocate
Unexecuted instantiation: KnowHOWREPR.c:MVM_gc_allocate
Unexecuted instantiation: KnowHOWAttributeREPR.c:MVM_gc_allocate