3 ms·
...unless something else holds a pointer to the handle you're swapping with.
by dozzie 10y ago
...unless something else holds a pointer to the handle you're swapping with.
- blibble 10y agokernels don't tend to give userspace raw pointers into kernel memory
- staticassertion 10y agoThis is already a problem if you're removing an item, regardless of whether it's done with swap remove or not.
- toast0 10y agoFor the item you're removing, you are presumably removing it because all handles have been closed. But the item you're potentially swapping with may certainly have open handles.
- staticassertion 10y agoTrue.