heap: Don't mutate NodeData during Trace
TraceAfterDispatch of NodeRareData was node_lists_ in case it was empty. This optimization could cause null dereferences when using the return value of EnsureNodeLists(). Drive-by: MainThreadGCForbiddenScope is no longer needed once Trace doesn't modify node_lists_ so removing that as well. Bug: 1055194 Change-Id: I49e2419ac3aff3ff3e13042220a31fade9f4f06a Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2078433 Commit-Queue: Michael Lippautz <mlippautz@chromium.org> Reviewed-by:Kent Tamura <tkent@chromium.org> Reviewed-by:
Kentaro Hara <haraken@chromium.org> Reviewed-by:
Anton Bikineev <bikineev@chromium.org> Reviewed-by:
Michael Lippautz <mlippautz@chromium.org> Cr-Commit-Position: refs/heads/master@{#745403}
Showing
Please register or sign in to comment