10 #include "gc_backptr.h"
17 static char *staticroot = 0;
19 extern struct treenode * libsrl_mktree(int i);
20 extern void * libsrl_init(void);
23 struct treenode * mktree(int i) {
24 struct treenode * r = GC_MALLOC(sizeof(struct treenode));
26 if (1 == i) r = GC_MALLOC_ATOMIC(sizeof(struct treenode));
36 staticroot = GC_MALLOC(sizeof(struct treenode));*/
37 staticroot = libsrl_init();
38 memset(staticroot, 0x42, sizeof(struct treenode));
40 for (i = 0; i < 10; ++i) {
41 root[i] = libsrl_mktree(12);
44 for (i = 0; i < (int)sizeof(struct treenode); ++i) {
45 if (staticroot[i] != 0x42)
48 for (i = 0; i < 10; ++i) {
49 root[i] = libsrl_mktree(12);
52 for (i = 0; i < (int)sizeof(struct treenode); ++i) {
53 if (staticroot[i] != 0x42)