mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-04-30 03:40:34 +02:00
Fix race in large object space when counting live object pages
Embarrassing!
This commit is contained in:
parent
ed5db9bc36
commit
3db1e48ea6
1 changed files with 1 additions and 1 deletions
|
@ -212,7 +212,7 @@ large_object_space_mark(struct large_object_space *space, struct gc_ref ref) {
|
|||
memory_order_acquire));
|
||||
|
||||
size_t pages = node->key.size >> space->page_size_log2;
|
||||
space->live_pages_at_last_collection += pages;
|
||||
atomic_fetch_add(&space->live_pages_at_last_collection, pages);
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue