Commit 6fb1e76d authored by jochen's avatar jochen Committed by Commit bot

Manage size of lists used in global handles

Make sure all lists are either regularly cleared or trimmed

R=hpayer@chromium.org
BUG=none
LOG=n

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

Cr-Commit-Position: refs/heads/master@{#28258}
parent 6d26ec0b
......@@ -786,6 +786,7 @@ void GlobalHandles::UpdateListOfNewSpaceNodes() {
}
}
new_space_nodes_.Rewind(last);
new_space_nodes_.Trim();
}
......@@ -811,6 +812,7 @@ int GlobalHandles::DispatchPendingPhantomCallbacks() {
// Fire second pass callback.
callback.Invoke(isolate());
}
pending_phantom_callbacks_.Clear();
return freed_nodes;
}
......
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