diff options
| author | Tobin Ehlis <tobine@google.com> | 2016-09-22 10:52:00 -0600 |
|---|---|---|
| committer | Tobin Ehlis <tobine@google.com> | 2016-09-22 17:12:57 -0600 |
| commit | 50088a306f7947836b3558ea53dc132f6bd773b6 (patch) | |
| tree | f8a28ae06170d39e83f8f6548aac64f66139a147 /include | |
| parent | 66a56c33008dee5b39d5eb5a45349f8fee7a74e9 (diff) | |
| download | usermoji-50088a306f7947836b3558ea53dc132f6bd773b6.tar.xz | |
layers: Distinguish never-bound from un-bound memory cases
Fixes #964
Added special MEMORY_UNBOUND handle (0xF..FE) that indicates that memory
bound to an object has been freed. When attempting to bind memory or
checking for bound memory, distinguish the never-bound case from the
memory un-bound case.
For sparse binding case allow for memory to be re-bound.
Update tests to account for new error messages.
There's a sliver of exposure here if an actual memory handle is MEMORY_UNBOUND.
We could remove that exposure by never having unique_objects return MEMORY_UNBOUND
as a handle. I believe the exposure is small enough that we don't need to do that,
but am open to other opinions.
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions
