Add option to disable BackupRefPtr in renderers
Currently, we can't use BackupRefPtr in renderers anyway due to severe performance regressions. Therefore, add an option to disable the allocator support for the per-allocation reference count slot and save memory. In order to do so, as soon as we can detect whether the current process is a renderer, create a new partition with the desired set of flags and replace the "temporary" one in the allocator shim. Previously made allocations will keep using the old partition. Bug: 1073933 Change-Id: Icb0d9359953c3b9b0cdc0c4ced113b4eca7a5c83 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2449981Reviewed-by:Benoit L <lizeb@chromium.org> Reviewed-by:
Ken Rockot <rockot@google.com> Reviewed-by:
Bartek Nowierski <bartekn@chromium.org> Reviewed-by:
Kentaro Hara <haraken@chromium.org> Commit-Queue: Sergei Glazunov <glazunov@google.com> Cr-Commit-Position: refs/heads/master@{#842138}
Showing
Please register or sign in to comment