Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge r181060 - GC should compute stack bounds and dump registers at …
…the earliest opportunity. <https://webkit.org/b/142310> <rdar://problem/20045624> Reviewed by Geoffrey Garen. Make Heap::collect() a wrapper function around a collectImpl() where the work is actually done. The wrapper function that grabs a snapshot of the current stack boundaries and register values on entry, and sanitizes the stack on exit. This is a speculative fix for what appears to be overly conservative behavior in the garbage collector following r178364 which caused a measurable regression in memory usage on Membuster. The theory being that we were putting pointers to dead things on the stack before scanning it, and by doing that ended up marking things that we'd otherwise discover to be garbage. * heap/Heap.cpp: (JSC::Heap::markRoots): (JSC::Heap::gatherStackRoots): (JSC::Heap::collect): (JSC::Heap::collectImpl): * heap/Heap.h: * heap/MachineStackMarker.cpp: (JSC::MachineThreads::gatherFromCurrentThread): (JSC::MachineThreads::gatherConservativeRoots): * heap/MachineStackMarker.h:
- Loading branch information
1 parent
ee1127f
commit 40d76e9
Showing
5 changed files
with
56 additions
and
22 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
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