Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
gin: Fix failing DCHECK with memory dumps
Before this CL we invoked GetHeapStatistics() first and then got memory dump information for the individual spaces with GetHeapSpaceStatistics(). The DCHECK ensured that the total heap size was at least the sum of the individual spaces. However with concurrent allocation from background threads that DCHECK isn't guaranteed to hold anymore since there may be additional allocations between GetHeapStatistics() and one of the GetHeapSpaceStatistics(). We can fix the DCHECK by invoking GetHeapStatistics() after all GetHeapSpaceStatistics(). Bug: chromium:1301865 Change-Id: I4cc732f3ab840a22075468f0576f8591b1e4cbb2 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3854009 Reviewed-by: Michael Lippautz <mlippautz@chromium.org> Commit-Queue: Dominik Inführ <dinfuehr@chromium.org> Cr-Commit-Position: refs/heads/main@{#1038793}
- Loading branch information