]> 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 17:41:10 +0000 (18:41 +0100)
commitdc0fe7742b8c35543200391e07eeb386b5d75b0c
tree5820dfd8b731ae33fedae15b85b0d40d9b30d95a
parent50cbbb1c0e7263d370a526fec0e905e3392bb9ba
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.029534 seconds and 5 git commands to generate.