Skip to content

Commit

Permalink
mark deallocation as the less likely path in release_object
Browse files Browse the repository at this point in the history
  • Loading branch information
devyn committed Aug 17, 2023
1 parent a71118f commit 856d8f2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions stage1/memory.s
Original file line number Diff line number Diff line change
Expand Up @@ -247,8 +247,7 @@ release_object:
lw t0, LISP_OBJECT_REFCOUNT(a0)
addi t0, t0, -1
sw t0, LISP_OBJECT_REFCOUNT(a0)
bgtz t0, 1f
j drop_object
blez t0, drop_object
1:
mv a0, zero
ret
Expand Down

0 comments on commit 856d8f2

Please sign in to comment.