Commit 9b06d03f authored by simonmar@microsoft.com's avatar simonmar@microsoft.com
Browse files

EVACUATED: target is definitely HEAP_ALLOCED(), no need to check

parent 0488ced8
......@@ -482,7 +482,7 @@ loop:
StgClosure *e = ((StgEvacuated*)q)->evacuee;
*p = e;
if (stp < gct->evac_step) { // optimisation
if (HEAP_ALLOCED(e) && Bdescr((P_)e)->step < gct->evac_step) {
if (Bdescr((P_)e)->step < gct->evac_step) {
gct->failed_to_evac = rtsTrue;
TICK_GC_FAILED_PROMOTION();
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment