Alexandre Julliard : libwine: Reserve some low memory space even without a preloader.
Module: wine Branch: master Commit: 1aa749d9e7ee54f221373ccb2b47bcb31ef6533f URL: http://source.winehq.org/git/wine.git/?a=commit;h=1aa749d9e7ee54f221373ccb2b... Author: Alexandre Julliard <julliard(a)winehq.org> Date: Tue Oct 27 19:06:48 2009 +0100 libwine: Reserve some low memory space even without a preloader. --- libs/wine/mmap.c | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/libs/wine/mmap.c b/libs/wine/mmap.c index fc5b1d9..b400189 100644 --- a/libs/wine/mmap.c +++ b/libs/wine/mmap.c @@ -350,6 +350,12 @@ void mmap_init(void) reserve_malloc_space( 8 * 1024 * 1024 ); + if (!list_head( &reserved_areas )) + { + /* if we don't have a preloader, try to reserve some space below 2Gb */ + reserve_area( (void *)0x00110000, (void *)0x40000000 ); + } + /* check for a reserved area starting at the user space limit */ /* to avoid wasting time trying to allocate it again */ LIST_FOR_EACH( ptr, &reserved_areas )
participants (1)
-
Alexandre Julliard