wingo pushed a commit to branch wip-whippet
in repository guile.

commit 70498714845727487eaba6b28a92b4d97e4f780c
Author: Andy Wingo <wi...@igalia.com>
AuthorDate: Thu Jan 23 17:22:29 2025 +0100

    lospace: Fix bug when splitting freelist entries
---
 src/large-object-space.h | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/large-object-space.h b/src/large-object-space.h
index 43f2936eb..38b7e51a4 100644
--- a/src/large-object-space.h
+++ b/src/large-object-space.h
@@ -429,6 +429,9 @@ large_object_space_alloc(struct large_object_space *space, 
size_t npages) {
         struct large_object_node *tail_node =
           large_object_tree_insert(&space->object_tree, tail, tail_value);
         pthread_mutex_unlock(&space->object_tree_lock);
+        uintptr_t tail_node_bits = (uintptr_t)tail_node;
+        address_map_add(&space->object_map, tail_node->key.addr,
+                        tail_node_bits);
         large_object_space_add_to_freelist(space, tail_node);
       }
 

Reply via email to