Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(408)

Unified Diff: src/heap/spaces.cc

Issue 960493003: Remove JITCodeEvent::CODE_REMOVED (Closed) Base URL: https://chromium.googlesource.com/v8/v8@master
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/heap/mark-compact.cc ('k') | src/log.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/heap/spaces.cc
diff --git a/src/heap/spaces.cc b/src/heap/spaces.cc
index 30ae2b44f0a811d652d58ee93154903ba493b553..32b9e6a02fe672eafaa3f72cd5d3d086f774e9ab 100644
--- a/src/heap/spaces.cc
+++ b/src/heap/spaces.cc
@@ -2991,9 +2991,7 @@ void LargeObjectSpace::FreeUnmarkedObjects() {
previous->set_next_page(current);
}
- // Free the chunk.
- heap()->mark_compact_collector()->ReportDeleteIfNeeded(object,
- heap()->isolate());
+ // Account for the freed bytes.
size_ -= static_cast<int>(page->size());
objects_size_ -= object->Size();
page_count_--;
@@ -3009,6 +3007,7 @@ void LargeObjectSpace::FreeUnmarkedObjects() {
static_cast<uint32_t>(key));
}
+ // Free the chunk.
if (is_pointer_object) {
heap()->QueueMemoryChunkForFree(page);
} else {
« no previous file with comments | « src/heap/mark-compact.cc ('k') | src/log.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698