Skip to content

queue: Move allocation out of mutex#44

Merged
avdgrinten merged 2 commits into
managarm:masterfrom
avdgrinten:allocate-outside-locks
May 14, 2026
Merged

queue: Move allocation out of mutex#44
avdgrinten merged 2 commits into
managarm:masterfrom
avdgrinten:allocate-outside-locks

Conversation

@avdgrinten

Copy link
Copy Markdown
Member

We will forbid allocations inside spinlocks in the future in Managarm, so this PR moves the allocation in async::queue out of the mutex (which is a spinlock in Thor).

@Qwinci Qwinci left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM apart from possibly a single minor style thing

Comment thread include/async/queue.hpp Outdated
@avdgrinten avdgrinten force-pushed the allocate-outside-locks branch from 5b557c0 to 53c28de Compare May 14, 2026 13:43
@avdgrinten avdgrinten merged commit 8b55d10 into managarm:master May 14, 2026
1 of 2 checks passed
@avdgrinten avdgrinten deleted the allocate-outside-locks branch May 14, 2026 13:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants