Some code clean and make the cache adapt version compile
[IRC.git] / Robust / src / Runtime / bamboo / multicoregcmark.c
index 419eb0ec70c92ac56f117573af1a4dae171681a0..95596dcaa83253177160050ecb74267159291881 100644 (file)
@@ -106,9 +106,9 @@ INLINE void markgarbagelist(struct garbagelist * listptr) {
 
 // enqueue root objs
 INLINE void tomark(struct garbagelist * stackptr) {
-  BAMBOO_ASSERT(MARKPHASE == gcphase);
+  BAMBOO_ASSERT(MARKPHASE == gc_status_info.gcphase);
 
-  gcbusystatus = true;
+  gc_status_info.gcbusystatus = true;
   gcnumlobjs = 0;
 
   // enqueue current stack
@@ -260,11 +260,11 @@ INLINE void mark(bool isfirst, struct garbagelist * stackptr) {
   unsigned int isize = 0;
   bool sendStall = false;
   // mark phase
-  while(MARKPHASE == gcphase) {
+  while(MARKPHASE == gc_status_info.gcphase) {
     int counter = 0;
     while(gc_moreItems2()) {
       sendStall = false;
-      gcbusystatus = true;
+      gc_status_info.gcbusystatus = true;
       unsigned int ptr = gc_dequeue2();
 
       unsigned int size = 0;
@@ -293,7 +293,7 @@ INLINE void mark(bool isfirst, struct garbagelist * stackptr) {
       // scan the pointers in object
       scanPtrsInObj(ptr, type);      
     }   
-    gcbusystatus = false;
+    gc_status_info.gcbusystatus = false;
     // send mark finish msg to core coordinator
     if(STARTUPCORE == BAMBOO_NUM_OF_CORE) {
       int entry_index = waitconfirm ? (gcnumsrobjs_index==0) : gcnumsrobjs_index;