Skip to content

Commit

Permalink
Remove unused variable in mark-sweep GC
Browse files Browse the repository at this point in the history
  • Loading branch information
l4haie committed Oct 11, 2024
1 parent b25c481 commit 3e8f369
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/host/c/rvm.c
Original file line number Diff line number Diff line change
Expand Up @@ -176,8 +176,6 @@ rib *heap_start;
#ifdef MARK_SWEEP
#define heap_top (heap_bot + (SPACE_SZ))
#define _NULL ((obj)NULL)
obj *hp1;
obj *hp2;
#else
obj *alloc_limit;
#define heap_mid (heap_bot + (SPACE_SZ))
Expand Down Expand Up @@ -439,7 +437,6 @@ void mark(obj *o) { // Recursive version of marking phase
void gc() {
#ifdef DEBUG_GC
printf("\t--GC called\n");
int n = 0;
#endif
// Mark (only 3 possible roots)
mark(&stack);
Expand Down

0 comments on commit 3e8f369

Please sign in to comment.