optimisation for isAlive()
[ghc-hetmet.git] / rts / sm / GCAux.c
index 0fb61f1..df47e18 100644 (file)
@@ -41,7 +41,6 @@ isAlive(StgClosure *p)
     q = UNTAG_CLOSURE(p);
 
     ASSERT(LOOKS_LIKE_CLOSURE_PTR(q));
-    info = get_itbl(q);
 
     // ignore static closures 
     //
@@ -71,6 +70,7 @@ isAlive(StgClosure *p)
        return p;
     }
 
+    info = get_itbl(q);
     switch (info->type) {
 
     case IND: