Patch for Wine-20021219 heap allocation on Solaris 8 x86

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Currently wine exits after complaining about an invalid heap during
startup on Solaris 8 x86.  What happens is mmap is returning an address
above 0xc0000000 which HEAP_InitSubHeap passes to NtAllocateVirtualMemory
who rejects it.  Perhaps someone familar with the code can suggest
a better solution or explain why the ADDRESS_SPACE_LIMIT check is there.

ChangeLog:

Fri Dec 27 16:27:25 EST 2002  John Wehle  (john@feith.com)

	* ntdll/virtual.c (ADDRESS_SPACE_LIMIT): Define as
	zero on Solaris x86.

Enjoy!

-- John Wehle
------------------8<------------------------8<------------------------
--- dlls/ntdll/virtual.c.ORIGINAL	Wed Nov 20 22:45:03 2002
+++ dlls/ntdll/virtual.c	Fri Dec 27 16:15:46 2002
@@ -100,7 +100,11 @@
 # define page_mask  0xfff
 # define page_shift 12
 # define page_size  0x1000
-# define ADDRESS_SPACE_LIMIT  ((void *)0xc0000000)  /* top of the user address space */
+# ifdef __sun
+#  define ADDRESS_SPACE_LIMIT  0   /* no limit needed on solaris */
+# else
+#  define ADDRESS_SPACE_LIMIT  ((void *)0xc0000000)  /* top of the user address space */
+# endif
 #else
 static UINT page_shift;
 static UINT page_mask;
-------------------------------------------------------------------------
|   Feith Systems  |   Voice: 1-215-646-8000  |  Email: john@feith.com  |
|    John Wehle    |     Fax: 1-215-540-5495  |                         |
-------------------------------------------------------------------------



[Index of Archives]     [Gimp for Windows]     [Red Hat]     [Samba]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux