Commit 2bd5405d authored by hpayer@chromium.org's avatar hpayer@chromium.org

Free slots buffer entries when tearing down the heap.

BUG=
R=mstarzinger@chromium.org

Review URL: https://codereview.chromium.org/21216003

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@15973 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 662958c5
......@@ -6945,6 +6945,8 @@ void Heap::TearDown() {
external_string_table_.TearDown();
mark_compact_collector()->TearDown();
new_space_.TearDown();
if (old_pointer_space_ != NULL) {
......
......@@ -337,6 +337,11 @@ static void VerifyNativeContextSeparation(Heap* heap) {
#endif
void MarkCompactCollector::TearDown() {
AbortCompaction();
}
void MarkCompactCollector::AddEvacuationCandidate(Page* p) {
p->MarkEvacuationCandidate();
evacuation_candidates_.Add(p);
......
......@@ -571,6 +571,8 @@ class MarkCompactCollector {
static void Initialize();
void TearDown();
void CollectEvacuationCandidates(PagedSpace* space);
void AddEvacuationCandidate(Page* p);
......
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