diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2023-01-18 21:59:48 +0300 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2023-01-18 22:17:23 +0300 |
commit | 0aa1c038196d04d0dfc8dc0f0f30e247e0c1e1e3 (patch) | |
tree | 4a9198cb8315c13c31017b38840d837b279f3643 /winsup/cygwin/local_includes/fhandler.h | |
parent | cbc513cf3d32b59aa63bfdd08ae4f121309b78be (diff) |
Cygwin: open_shared: always bump next_address
The new loop in open_shared has a subtil performance problem.
Next_address is bumped only if mapping at this address
failed. Every subsequent call to open_shared has a high probability
having to call MapViewOfFileEx twice, because next_address is still
set to the address of the last successful mapping.
Avoid this by bumping next_address every time.
While at it, fix a comment.
Conflict: Missing backport of 31302b267b86 ("Cygwin: drop fixed addresses for standard shared regions")
Fixes: dc0fe7742b8c ("Cygwin: open_shared: try harder allocating a shared region")
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
Diffstat (limited to 'winsup/cygwin/local_includes/fhandler.h')
0 files changed, 0 insertions, 0 deletions