Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Visiting a WeakBlock should report bytes visited, since we reported t…
…hem allocated. <https://webkit.org/b/153978> Reviewed by Darin Adler. When creating a WeakBlock, we tell Heap that we've allocated 1 KB (WeakBlock::blockSize) of memory. Consequently, when visiting a WeakBlock, we should also report 1 KB of memory visited. Otherwise Heap will think that those 1 KB already went away. This was causing us to underestimate heap size, which affects collection scheduling. * heap/SlotVisitor.h: (JSC::SlotVisitor::reportMemoryVisited): * heap/WeakBlock.cpp: (JSC::WeakBlock::visit): Canonical link: https://commits.webkit.org/172078@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@196251 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
Showing
with
21 additions
and 0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters