GC stats incorrect when walking thread stack

Frank Mehnert Frank.Mehnert at mchp.siemens.de
Mon Mar 24 09:47:30 PST 1997


Hi Kaffe Hackers,

in file kaffe/kaffevm/thread.c function walkThread(gcInfo *base)
there is a little bug: Because the stack of a thread is not allocated
by gc_malloc we must adjust gcStats by hand (because scanConservative
does it also):

*** thread.c    Mon Mar 24 18:46:25 1997
--- ../../../kaffe-0.8.3.ORIG/kaffe/kaffevm/thread.c
Fri Mar 21 15:15:55 1997
***************
*** 1049,1055 ****
          /* Since this thread my be extended by another class, walk any
           * remaining data.
           */
-         gcStats.markedmem -= (base->size - sizeof(thread));
          scanConservative(tid+1, base->size - sizeof(thread));
  
          if (tid->PrivateInfo != 0) {
--- 1049,1054 ----


Frank Mehnert
email: Frank.Mehnert at mchp.siemens.de




More information about the kaffe mailing list