File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -405,16 +405,6 @@ void gc_info(gc_info_t *info) {
405405 GC_EXIT ();
406406}
407407
408- void gc_mark_block (void * ptr ) {
409- if (VERIFY_PTR (ptr )) {
410- size_t _block = BLOCK_FROM_PTR (ptr );
411- if (ATB_GET_KIND (_block ) == AT_HEAD ) {
412- /* an unmarked head, mark it, and push it on gc stack */
413- ATB_HEAD_TO_MARK (_block );
414- }
415- }
416- }
417-
418408void * gc_alloc (size_t n_bytes , bool has_finaliser ) {
419409 size_t n_blocks = ((n_bytes + BYTES_PER_BLOCK - 1 ) & (~(BYTES_PER_BLOCK - 1 ))) / BYTES_PER_BLOCK ;
420410 DEBUG_printf ("gc_alloc(" UINT_FMT " bytes -> " UINT_FMT " blocks)\n" , n_bytes , n_blocks );
Original file line number Diff line number Diff line change @@ -45,9 +45,6 @@ void gc_collect_start(void);
4545void gc_collect_root (void * * ptrs , size_t len );
4646void gc_collect_end (void );
4747
48- // During a collect, use this to mark blocks used in C but allocated using gc_alloc.
49- void gc_mark_block (void * ptr );
50-
5148void * gc_alloc (size_t n_bytes , bool has_finaliser );
5249void gc_free (void * ptr ); // does not call finaliser
5350size_t gc_nbytes (const void * ptr );
You can’t perform that action at this time.
0 commit comments