Changeset 5b7a60c8 for src/examples/gc_no_raii/test
- Timestamp:
- Aug 18, 2016, 5:00:32 PM (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, memory, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, stuck-waitfor-destruct, with_gc
- Children:
- 12756de
- Parents:
- 99cad3aa (diff), 7ecbb7e (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/test/gctest.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/examples/gc_no_raii/test/gctest.c
r99cad3aa r5b7a60c8 2 2 3 3 #include "gc.h" 4 #include "internal/collector.h" 4 5 5 6 #warning default test … … 8 9 sout | "Bonjour au monde!\n"; 9 10 10 for(int i = 0; i < 1000000; i++) { 11 gcpointer(int) anInt; 12 gcmalloc(&anInt); 11 gcpointer(int) theInt; 12 gcmalloc(&theInt); 13 14 for(int i = 0; i < 10; i++) { 15 int a; 16 { 17 gcpointer(int) anInt; 18 gcmalloc(&anInt); 19 } 20 int p; 13 21 } 22 23 gc_collect(gc_get_state()); 24 gc_conditional_collect(); 14 25 }
Note:
See TracChangeset
for help on using the changeset viewer.