CVS: winex/scheduler process.c,1.55,1.56

[email protected]
Newsgroups gmane.comp.emulators.winex.cvs
Message-ID <[email protected]>
Subject: winex/scheduler process.c,1.55,1.56Update of /var/lib/cvsd/cvsroot/winex/scheduler
In directory agravaine:/tmp/cvs-serv6780/scheduler

Modified Files:
	process.c 
Log Message:
- add a new memory allocator based on ptmalloc3 and make it the default (at least for now for testing)
- to disable, add "NewAllocator"="N" to the [Wine] section of your config file


Index: process.c
===================================================================
RCS file: /var/lib/cvsd/cvsroot/winex/scheduler/process.c,v
retrieving revision 1.55
retrieving revision 1.56
diff -u -d -r1.55 -r1.56
--- process.c	30 Mar 2007 15:48:33 -0000	1.55
+++ process.c	30 Mar 2007 18:58:41 -0000	1.56
@@ -151,6 +151,7 @@
 extern void LOADER_Init(void);
 extern void PROCESS_Init(void);
 extern void INIT_CritSects(void);
+extern void HEAP_Init (BOOL);
 
 #ifdef USE_PTHREADS
 #define CHECK_ERR( op ) do { int err = (op); if( err ) { fprintf( stderr, "\"" # op "\" failed at %s:%d with %s\n",  __FILE__, __LINE__, strerror( err ) ); goto pthread_error; } } while(0)
@@ -277,6 +278,7 @@
     int create_flags = 0;
     int unique_msg_id;
     pid_t wineserver_pid;
+    int use_new_allocator = 0;
 #ifdef __APPLE__
     char PortName[BOOTSTRAP_MAX_NAME_LEN];
     mach_port_t ServerPort;
@@ -332,6 +334,7 @@
             current_startupinfo.hStdError   = reply->hstderr;
             wineserver_pid                  = reply->wineserver_pid;
             unique_msg_id                   = reply->unique_msg_id;
+            use_new_allocator               = reply->use_new_allocator;
         }
     }
     SERVER_END_REQ;
@@ -368,6 +371,7 @@
 #endif
 
     /* Create the process heap */
+    HEAP_Init (use_new_allocator);
     current_process.heap = HeapCreate( HEAP_GROWABLE, 0, 0 );
 
     if (create_flags == 0 &&
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.