[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Dotgnu-pnet-commits] CVS: pnet/support hb_gc.c,1.17,1.18
From: |
Thong Nguyen <address@hidden> |
Subject: |
[Dotgnu-pnet-commits] CVS: pnet/support hb_gc.c,1.17,1.18 |
Date: |
Sun, 06 Jul 2003 01:29:16 -0400 |
Update of /cvsroot/dotgnu-pnet/pnet/support
In directory subversions:/tmp/cvs-serv30474
Modified Files:
hb_gc.c
Log Message:
Added more traces statements to the GC.
Index: hb_gc.c
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnet/support/hb_gc.c,v
retrieving revision 1.17
retrieving revision 1.18
diff -C2 -r1.17 -r1.18
*** hb_gc.c 6 Jul 2003 00:41:16 -0000 1.17
--- hb_gc.c 6 Jul 2003 05:29:14 -0000 1.18
***************
*** 190,196 ****
--- 190,200 ----
g_Deinit = 1;
+ GC_TRACE("ILGCDeinit: Performing final GC [thread:%d]\n",
(int)ILThreadSelf());
+
/* Do a final GC */
ILGCCollect();
+ GC_TRACE("ILGCDeinit: Peforming last finalizer run [thread:%d]\n",
(int)ILThreadSelf());
+
/* Wait up to 10 seconds for the finalizers to run */
PrivateGCNotifyFinalize(10000);
***************
*** 199,208 ****
if (g_FinalizerThread)
{
/* Unregister and destroy the finalizer thread if it's
responding */
if (ILThreadJoin(g_FinalizerThread, 1000))
{
ILThreadUnregisterForManagedExecution(g_FinalizerThread);
ILThreadDestroy(g_FinalizerThread);
! }
}
--- 203,220 ----
if (g_FinalizerThread)
{
+ GC_TRACE("ILGCDeinit: Waiting for finalizer thread to end
[thread:%d]\n", (int)ILThreadSelf());
+
/* Unregister and destroy the finalizer thread if it's
responding */
if (ILThreadJoin(g_FinalizerThread, 1000))
{
+ GC_TRACE("ILGCDeinit: Finalizer thread finished
[thread:%d]\n", (int)ILThreadSelf());
+
ILThreadUnregisterForManagedExecution(g_FinalizerThread);
ILThreadDestroy(g_FinalizerThread);
! }
! else
! {
! GC_TRACE("ILGCDeinit: Finalizer thread not responding
[thread:%d]\n", (int)ILThreadSelf());
! }
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Dotgnu-pnet-commits] CVS: pnet/support hb_gc.c,1.17,1.18,
Thong Nguyen <address@hidden> <=