Index: src/liveedit.cc |
diff --git a/src/liveedit.cc b/src/liveedit.cc |
index d99c4a07ed31fd0bbed7db9e15682385cef2af6a..80e18bbbff9a9274e04f6fdd628aa671d414516b 100644 |
--- a/src/liveedit.cc |
+++ b/src/liveedit.cc |
@@ -968,14 +968,6 @@ class ReplacingVisitor : public ObjectVisitor { |
static void ReplaceCodeObject(Code* original, Code* substitution) { |
ASSERT(!HEAP->InNewSpace(substitution)); |
- // Perform a full GC in order to ensure that we are not in the middle of an |
- // incremental marking phase when we are replacing the code object. |
- // Since we are not in an incremental marking phase we can write pointers |
- // to code objects (that are never in new space) without worrying about |
- // write barriers. |
- HEAP->CollectAllGarbage(Heap::kMakeHeapIterableMask, |
- "liveedit.cc ReplaceCodeObject"); |
- |
AssertNoAllocation no_allocations_please; |
ReplacingVisitor visitor(original, substitution); |