# Patch created by krokas
# Date: Thu Aug 31 04:10:15 MSD 2006
# Repository: pnet
# Comments:
# 
#### End of Preamble ####

#### Patch data follows ####
Index: engine/process.c
===================================================================
RCS file: /sources/dotgnu-pnet/./pnet/engine/process.c,v
retrieving revision 1.69
diff -c -r1.69 process.c
*** engine/process.c	22 Dec 2005 18:23:44 -0000	1.69
--- engine/process.c	31 Aug 2006 00:10:08 -0000
***************
*** 383,389 ****
  
  		ILThreadJoin(target, -1);
  	}
! 	
  	/* Unregister (and destroy) the current thread if it isn't needed
  	for finalization and if it belongs to this domain. */
  	if (!mainIsFinalizer 
--- 383,390 ----
  
  		ILThreadJoin(target, -1);
  	}
! 
! #ifndef IL_USE_JIT
  	/* Unregister (and destroy) the current thread if it isn't needed
  	for finalization and if it belongs to this domain. */
  	if (!mainIsFinalizer 
***************
*** 393,399 ****
  	{
  		ILThreadUnregisterForManagedExecution(ILThreadSelf());
  	}
! 
  	/* Invoke the finalizers -- hopefully finalizes all objects left in the
  	   process being destroyed.  Objects left lingering are orphans */
  	ILGCCollect();
--- 394,400 ----
  	{
  		ILThreadUnregisterForManagedExecution(ILThreadSelf());
  	}
! #endif
  	/* Invoke the finalizers -- hopefully finalizes all objects left in the
  	   process being destroyed.  Objects left lingering are orphans */
  	ILGCCollect();
#### End of Patch data ####
