MCPcopy Create free account
hub / github.com/GaijinEntertainment/daScript / beforeGC

Method beforeGC

include/daScript/misc/memory_model.h:49–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47 if ( next ) next->reset();
48 }
49 void beforeGC() {
50 auto total_bytes = total / 32 * 4;
51 if ( total_bytes ) {
52 gc_bits = (uint32_t*) das_aligned_alloc16(total_bytes);
53 memset ( gc_bits, 0, total_bytes);
54 } else {
55 gc_bits = nullptr;
56 }
57 look = 0;
58 gc_allocated = 0;
59 if ( next ) next->beforeGC();
60 }
61 void afterGC() {
62 auto total_bytes = total / 32 * 4;
63 if ( total_bytes ) {

Callers 2

markMethod · 0.45
beforeGCMethod · 0.45

Calls 1

das_aligned_alloc16Function · 0.85

Tested by

no test coverage detected