CapPtr: shift free lists to Alloc bounds

This is incomplete, yet still more reflective of what's going on: we take the
exported pointers back from userspace and thread them directly into the free
lists.

So: move capptr_to_user_address_control to list construction time rather than
list consumption time.
This commit is contained in:
Nathaniel Wesley Filardo
2021-09-21 19:17:51 +01:00
committed by Nathaniel Wesley Filardo
parent 55cd5e87c0
commit 7e53a2e82a
7 changed files with 99 additions and 91 deletions

View File

@@ -249,8 +249,8 @@ namespace snmalloc
/**
* Decode next. While traversing a queue, BView and BQueue here will often
* be equal (i.e., CBAllocExportWild) rather than dichotomous. However,
* we do occasionally decode an actual head pointer, so be polymorphic here.
* be equal (i.e., AllocUserWild) rather than dichotomous. However, we do
* occasionally decode an actual head pointer, so be polymorphic here.
*
* TODO: We'd like, in some sense, to more tightly couple or integrate this
* into to the domestication process. We could introduce an additional