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}
This commit is contained in:
parent
6d26ec0b4c
commit
6fb1e76d6f
@ -786,6 +786,7 @@ void GlobalHandles::UpdateListOfNewSpaceNodes() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
new_space_nodes_.Rewind(last);
|
new_space_nodes_.Rewind(last);
|
||||||
|
new_space_nodes_.Trim();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -811,6 +812,7 @@ int GlobalHandles::DispatchPendingPhantomCallbacks() {
|
|||||||
// Fire second pass callback.
|
// Fire second pass callback.
|
||||||
callback.Invoke(isolate());
|
callback.Invoke(isolate());
|
||||||
}
|
}
|
||||||
|
pending_phantom_callbacks_.Clear();
|
||||||
return freed_nodes;
|
return freed_nodes;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user