Changeset 6943a987 for src/examples/gc_no_raii/src/internal/collector.c
- Timestamp:
- Aug 29, 2016, 10:33:05 AM (9 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, ctor, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, stuck-waitfor-destruct, with_gc
- Children:
- 5e644d3e
- Parents:
- 79841be (diff), 413ad05 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)links above to see all the changes relative to each parent. - File:
-
- 1 edited
-
src/examples/gc_no_raii/src/internal/collector.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/examples/gc_no_raii/src/internal/collector.c
r79841be r6943a987 8 8 } 9 9 #endif 10 11 #include <fstream> 10 12 11 13 #include "state.h" … … 36 38 void* gc_allocate(size_t target_size) 37 39 { 40 sout | "Allocating " | target_size | " bytes" | endl; 41 38 42 size_t size = gc_compute_size(target_size + sizeof(gc_object_header)); 43 44 sout | "Object header size: " | sizeof(gc_object_header) | " bytes" | endl; 45 sout | "Actual allocation size: " | size | " bytes" | endl; 39 46 40 47 check(size < POOL_SIZE_BYTES);
Note:
See TracChangeset
for help on using the changeset viewer.