• Rémi Bernon's avatar
    ntdll: Stop locking heap to access block-local data. · efc6a8f4
    Rémi Bernon authored
    This moves unsafe_block_from_ptr calls outside of the heap lock.
    
    We assume here that concurrent call to another heap function on a block
    being freed is undefined, and it should then be safe to do so:
    
    * The block type or base offset never change after a block has been
      allocated and until it is freed.
    
    * Block flags such as BLOCK_FLAG_LARGE, or BLOCK_FLAG_USER_INFO also
      never change after a block has been allocated.
    
    * Other block flags are only read and modified inside the heap lock.
    efc6a8f4
Name
Last commit
Last update
dlls Loading commit data...
documentation Loading commit data...
fonts Loading commit data...
include Loading commit data...
libs Loading commit data...
loader Loading commit data...
nls Loading commit data...
po Loading commit data...
programs Loading commit data...
server Loading commit data...
tools Loading commit data...
.editorconfig Loading commit data...
.gitlab-ci.yml Loading commit data...
.mailmap Loading commit data...
ANNOUNCE Loading commit data...
AUTHORS Loading commit data...
COPYING.LIB Loading commit data...
LICENSE Loading commit data...
LICENSE.OLD Loading commit data...
MAINTAINERS Loading commit data...
README Loading commit data...
VERSION Loading commit data...
aclocal.m4 Loading commit data...
configure Loading commit data...
configure.ac Loading commit data...