@@ -22,7 +22,7 @@ JL_DLLEXPORT jl_taggedvalue_t *jl_gc_find_taggedvalue_pool(char *p, size_t *osiz
22
22
// Not in the pool
23
23
if (!r )
24
24
return NULL ;
25
- char * page_begin = GC_PAGE_DATA (p ) + GC_PAGE_OFFSET ;
25
+ char * page_begin = gc_page_data (p ) + GC_PAGE_OFFSET ;
26
26
// In the page header
27
27
if (p < page_begin )
28
28
return NULL ;
@@ -38,7 +38,7 @@ JL_DLLEXPORT jl_taggedvalue_t *jl_gc_find_taggedvalue_pool(char *p, size_t *osiz
38
38
return NULL ;
39
39
char * tag = (char * )p - ofs % osize ;
40
40
// Points to an "object" that gets into the next page
41
- if (tag + osize > GC_PAGE_DATA (p ) + GC_PAGE_SZ )
41
+ if (tag + osize > gc_page_data (p ) + GC_PAGE_SZ )
42
42
return NULL ;
43
43
if (osize_p )
44
44
* osize_p = osize ;
@@ -138,7 +138,7 @@ static void clear_mark(int bits)
138
138
}
139
139
bigval_t * v ;
140
140
FOR_EACH_HEAP () {
141
- v = big_objects ;
141
+ v = current_heap -> big_objects ;
142
142
while (v != NULL ) {
143
143
void * gcv = & v -> header ;
144
144
if (!verifying ) arraylist_push (& bits_save [gc_bits (gcv )], gcv );
@@ -166,7 +166,7 @@ static void clear_mark(int bits)
166
166
jl_gc_pagemeta_t * pg = page_metadata (region -> pages [pg_i * 32 + j ].data + GC_PAGE_OFFSET );
167
167
pool_t * pool ;
168
168
FOR_HEAP (pg -> thread_n )
169
- pool = & pools [pg -> pool_n ];
169
+ pool = & current_heap -> norm_pools [pg -> pool_n ];
170
170
pv = (gcval_t * )(pg -> data + GC_PAGE_OFFSET );
171
171
char * lim = (char * )pv + GC_PAGE_SZ - GC_PAGE_OFFSET - pool -> osize ;
172
172
while ((char * )pv <= lim ) {
@@ -379,7 +379,7 @@ void gc_debug_print_status(void)
379
379
uint64_t other_count = jl_gc_debug_env .other .num ;
380
380
jl_safe_printf ("Allocations: %" PRIu64 " "
381
381
"(Pool: %" PRIu64 "; Other: %" PRIu64 "); GC: %d\n" ,
382
- pool_count + other_count , pool_count , other_count , n_pause );
382
+ pool_count + other_count , pool_count , other_count , gc_num . pause );
383
383
}
384
384
385
385
void gc_debug_critical_error (void )
@@ -415,7 +415,7 @@ static void gc_scrub_range(char *stack_lo, char *stack_hi)
415
415
pg -> allocd = 1 ;
416
416
pg -> gc_bits = 0x3 ;
417
417
// Find the age bit
418
- char * page_begin = GC_PAGE_DATA (tag ) + GC_PAGE_OFFSET ;
418
+ char * page_begin = gc_page_data (tag ) + GC_PAGE_OFFSET ;
419
419
int obj_id = (((char * )tag ) - page_begin ) / osize ;
420
420
uint8_t * ages = pg -> ages + obj_id / 8 ;
421
421
// Force this to be a young object to save some memory
@@ -450,7 +450,7 @@ void gc_debug_print_status(void)
450
450
uint64_t big_count = gc_num .bigalloc ;
451
451
jl_safe_printf ("Allocations: %" PRIu64 " "
452
452
"(Pool: %" PRIu64 "; Big: %" PRIu64 "); GC: %d\n" ,
453
- pool_count + big_count , pool_count , big_count , n_pause );
453
+ pool_count + big_count , pool_count , big_count , gc_num . pause );
454
454
}
455
455
456
456
void gc_debug_critical_error (void )
0 commit comments