File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1448,7 +1448,7 @@ HL_API void hl_gc_dump_memory( const char *filename ) {
1448
1448
typedef struct {
1449
1449
hl_type * t ;
1450
1450
int count ;
1451
- int page_kind ;
1451
+ int page_kinds ;
1452
1452
varray * arr ;
1453
1453
int index ;
1454
1454
} gc_live_obj ;
@@ -1466,7 +1466,7 @@ static void gc_count_live_block( void *block, int size ) {
1466
1466
}
1467
1467
1468
1468
static void gc_count_live_page ( gc_pheader * p , int private_data ) {
1469
- if ( (1 << p -> page_kind ) & live_obj .page_kind )
1469
+ if ( (1 << p -> page_kind ) & live_obj .page_kinds )
1470
1470
gc_iter_live_blocks (p , gc_count_live_block );
1471
1471
}
1472
1472
@@ -1478,9 +1478,9 @@ static int hl_gc_get_live_objects( hl_type *t, varray *arr ) {
1478
1478
1479
1479
live_obj .t = t ;
1480
1480
live_obj .count = 0 ;
1481
- live_obj .page_kind = (1 << MEM_KIND_DYNAMIC ) + (1 << MEM_KIND_NOPTR );
1481
+ live_obj .page_kinds = (1 << MEM_KIND_DYNAMIC ) + (1 << MEM_KIND_NOPTR );
1482
1482
if (t -> kind == HOBJ ) {
1483
- live_obj .page_kind = hl_get_obj_rt (t )-> hasPtr ? 1 << MEM_KIND_DYNAMIC : 1 << MEM_KIND_NOPTR ;
1483
+ live_obj .page_kinds = hl_get_obj_rt (t )-> hasPtr ? 1 << MEM_KIND_DYNAMIC : 1 << MEM_KIND_NOPTR ;
1484
1484
}
1485
1485
live_obj .arr = arr ;
1486
1486
live_obj .index = 0 ;
You can’t perform that action at this time.
0 commit comments