Skip to content

Improve locking for properties.#378

Merged
davidchisnall merged 1 commit intomasterfrom
improve-locks
Apr 17, 2026
Merged

Improve locking for properties.#378
davidchisnall merged 1 commit intomasterfrom
improve-locks

Conversation

@davidchisnall
Copy link
Copy Markdown
Member

This fixes the issue where two addresses that hash to the same address could deadlock and also fixes a performance issue due to using spinlocks with no OS-mediated sleep.

@davidchisnall davidchisnall force-pushed the improve-locks branch 4 times, most recently from b563dbb to f8b54d9 Compare April 17, 2026 09:29
This fixes the issue where two addresses that hash to the same address
could deadlock and also fixes a performance issue due to using spinlocks
with no OS-mediated sleep.

Initially this makes the spinlocks.h consumers compile as C++ so that
they can use C++ abstractions over futexes and similar.  A lot of this
code called calloc, so now has some nicer C++ wrappers for that.

This also includes some fixes to work around older C++ standard
libraries.

Also includes some small tweaks to Cirrus, though Cirrus is going away
soon so we'll need an alternative for FreeBSD CI.
@davidchisnall davidchisnall merged commit 59f69a6 into master Apr 17, 2026
94 checks passed
@davidchisnall davidchisnall deleted the improve-locks branch April 17, 2026 09:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant