Index: src/deoptimizer.cc |
diff --git a/src/deoptimizer.cc b/src/deoptimizer.cc |
index 0e6bb835e19141e3f46f185aa3cfd91afb995eef..525cbf28c7b39cd4228aaf5ff9160db23e34469a 100644 |
--- a/src/deoptimizer.cc |
+++ b/src/deoptimizer.cc |
@@ -414,9 +414,10 @@ void Deoptimizer::DeoptimizeMarkedCodeForContext(Context* context) { |
PatchCodeForDeoptimization(isolate, codes[i]); |
// We might be in the middle of incremental marking with compaction. |
- // Tell collector to treat this code object in a special way and |
- // ignore all slots that might have been recorded on it. |
- isolate->heap()->mark_compact_collector()->InvalidateCode(codes[i]); |
+ // Ignore all slots that might have been recorded on the deoptimized code |
+ // object. |
+ Code* code = codes[i]; |
+ code->GetHeap()->mark_compact_collector()->RemoveObjectSlots(code); |
Michael Starzinger
2015/06/30 08:54:19
nit: Is there a particular reason we cannot use is
Hannes Payer (out of office)
2015/06/30 09:02:10
Done.
|
} |
} |