[PATCH] ntdll: Don't enter uninterrupted section when get_cached_fd hits

Daniel Horn danielrh at dropbox.com
Sat Apr 5 17:25:04 CDT 2014


The call to server_enter_uninterrupted_section in server_get_unix_fd
was causing 2 million syscalls over the span of several seconds when
launching many popular application suites and it was causing
significant performance overhead.

Switching those two lines resolves the problem entirely because the
cache is sized such that it nearly never misses.

---
 dlls/ntdll/server.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Don-t-enter-uninterrupted-section-when-get_cached_fd.patch
Type: application/octet-stream
Size: 1666 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20140405/6f7da594/attachment.obj>


More information about the wine-patches mailing list