]> sourceware.org Git - newlib-cygwin.git/commit
Cygwin: open_shared: try harder allocating a shared region
authorCorinna Vinschen <corinna@vinschen.de>
Tue, 17 Jan 2023 09:18:51 +0000 (10:18 +0100)
committerCorinna Vinschen <corinna@vinschen.de>
Tue, 17 Jan 2023 18:49:39 +0000 (19:49 +0100)
commitfb16f490bf6e56ace20a7d7ee29a8a46aef3adba
treeefdfa8caef3ad6785852549bdcd000bb689c397f
parent1e854c18e5b2261e159671f6c09de593f3618ca2
Cygwin: open_shared: try harder allocating a shared region

For fixed regions (cygwin/user/myself/shared console), try fixed
address first.  Fallback to non-fixed region.  Don't even try fixed
address if the Cygwin DLL gets dynamically loaded.

For non-fixed regions, try to allocate in a loop within the area
from SHARED_REGIONS_ADDRESS_LOW to SHARED_REGIONS_ADDRESS_HIGH.

Fixes: 60675f1a7eb2 ("Cygwin: decouple shared mem regions from Cygwin DLL")
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
winsup/cygwin/mm/shared.cc
winsup/cygwin/release/3.4.4
This page took 0.028382 seconds and 5 git commands to generate.