Fix compacting GC on 64-bit machines
authorSimon Marlow <marlowsd@gmail.com>
Wed, 20 Aug 2008 12:54:46 +0000 (12:54 +0000)
committerSimon Marlow <marlowsd@gmail.com>
Wed, 20 Aug 2008 12:54:46 +0000 (12:54 +0000)
Some old experimental change leaked in with the parallel GC patches,
it seems

rts/sm/Scav.c

index ab55e8a..b8fb54b 100644 (file)
@@ -745,7 +745,7 @@ linear_scan:
        info = get_itbl((StgClosure *)p);
        
        q = p;
-        switch (((volatile StgWord *)info)[1] & 0xffff) {
+        switch (info->type) {
            
         case MVAR_CLEAN:
         case MVAR_DIRTY: