Skip to content

Add a GuardedPageAllocator test for mlock()-ed allocations. - #1051

Merged
copybara-service[bot] merged 1 commit into
masterfrom
test_985309380
Sep 21, 2026
Merged

copybara-service[bot] merged 1 commit into
masterfrom
test_985309380

Conversation

@copybara-service

Copy link
Copy Markdown

Add a GuardedPageAllocator test for mlock()-ed allocations.

Applications may lock memory that the allocator has already handed out, either
by calling mlock() on a returned pointer or via mlockall(MCL_CURRENT). Locking
constrains what the kernel permits on the VMA, so quarantine a locked page and
then reallocate every slot to confirm the remainder of the pool stays usable.

Applications may lock memory that the allocator has already handed out, either
by calling mlock() on a returned pointer or via mlockall(MCL_CURRENT).  Locking
constrains what the kernel permits on the VMA, so quarantine a locked page and
then reallocate every slot to confirm the remainder of the pool stays usable.

PiperOrigin-RevId: 985384881
@copybara-service
copybara-service Bot merged commit d32b4fa into master Sep 21, 2026
2 checks passed
@copybara-service
copybara-service Bot deleted the test_985309380 branch September 21, 2026 18:02
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.

1 participant