diff options
author | 2016-01-26 15:51:07 +0000 | |
---|---|---|
committer | 2016-01-26 15:51:07 +0000 | |
commit | b09cdadec4ad9571f5550058cec9587ad1c761f3 (patch) | |
tree | 23cddffb784616412ea5ca5813e0c08852a5b06f /lib/libc/stdlib/malloc.c | |
parent | Don't crash dumping malloc stats if malloc_init hasn't been called, noted by (diff) | |
download | wireguard-openbsd-b09cdadec4ad9571f5550058cec9587ad1c761f3.tar.xz wireguard-openbsd-b09cdadec4ad9571f5550058cec9587ad1c761f3.zip |
No need to take a grant table entry mutex in xen_grant_table_{enter,remove}
Grant table API is constructed in a way that once allocated grant table
entries are marked as used and cannot be given away again to some other
user. At the same time xen_grant_table_enter and _remove do not operate
on the same grant reference at the same time, so there's no need for a
lock here. Guard flag operations with memory fences to ensure correct
store/load order. This provides some decent performance improvement as
well.
Diffstat (limited to 'lib/libc/stdlib/malloc.c')
0 files changed, 0 insertions, 0 deletions