heap: Fix underflow of allocated bytes since last GC counter
The counter can (rightfully) underflow when an object is promptly freed directly after performing a GC. Also fixes an issue where the linear allocation area is accounted as allocated only when setting up the new area. This can yield in negative overall size if measured before that update happens. Bug: 948807 Change-Id: I288b607761d5017192ab9bd3c0fe6a13bef52884 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1631597 Commit-Queue: Michael Lippautz <mlippautz@chromium.org> Reviewed-by:Kentaro Hara <haraken@chromium.org> Cr-Commit-Position: refs/heads/master@{#663892}
Showing
Please register or sign in to comment