Skip to content

Commit

Permalink
Dumb!
Browse files Browse the repository at this point in the history
  • Loading branch information
kondziu committed Mar 27, 2020
1 parent c393fbd commit 486f196
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ufos/src/mappedMemory/userfaultCore.c
Original file line number Diff line number Diff line change
Expand Up @@ -348,8 +348,9 @@ static int freeUfo(ufInstance* i, ufAsyncMsg* msg){
void mark (size_t index, oroboros_item_t *item, void *data) {
if (item->owner_id == ufo->id) {
//item->garbage_collected = true;
item->size = 0;

i->usedMemory -= item->size;
item->size = 0;

assert(check_totals(i));
// We don't actually reclaim here, because it's done for the whole object.
Expand Down

0 comments on commit 486f196

Please sign in to comment.