RESOLVED FIXED 195305
[bmalloc] Bmalloc DebugHeap should have dump and scavenge features
https://bugs.webkit.org/show_bug.cgi?id=195305
Summary [bmalloc] Bmalloc DebugHeap should have dump and scavenge features
Yusuke Suzuki
Reported 2019-03-04 19:40:55 PST
[bmalloc] Bmalloc DebugHeap should have dump and scavenge features
Attachments
Patch (2.84 KB, patch)
2019-03-04 19:43 PST, Yusuke Suzuki
no flags
Patch (2.96 KB, patch)
2019-03-04 19:45 PST, Yusuke Suzuki
saam: review+
ews-watchlist: commit-queue-
Archive of layout-test-results from ews126 for ios-simulator-wk2 (3.54 MB, application/zip)
2019-03-04 22:35 PST, EWS Watchlist
no flags
Yusuke Suzuki
Comment 1 2019-03-04 19:43:37 PST
Yusuke Suzuki
Comment 2 2019-03-04 19:45:56 PST
Yusuke Suzuki
Comment 3 2019-03-04 20:26:40 PST
Comment on attachment 363586 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=363586&action=review > Source/bmalloc/ChangeLog:9 > + We also add DebugHeap::dump feature which dumps system malloc data in the WebKit Malloc zone. This indirectly means that Mini mode VM + System Malloc does actually shrinking if shrinkFootprintWhenIdle is called. I would like to see this impact on the tests calling shrinkFootprintWhenIdle.
EWS Watchlist
Comment 4 2019-03-04 22:35:24 PST
Comment on attachment 363586 [details] Patch Attachment 363586 [details] did not pass ios-sim-ews (ios-simulator-wk2): Output: https://webkit-queues.webkit.org/results/11372478 New failing tests: fast/events/beforeunload-alert-user-interaction2.html fast/scrolling/ios/hit-testing-iframe-002.html fast/scrolling/ios/mixing-user-and-programmatic-scroll-006.html fast/events/click-handler-on-body-simple.html
EWS Watchlist
Comment 5 2019-03-04 22:35:26 PST
Created attachment 363603 [details] Archive of layout-test-results from ews126 for ios-simulator-wk2 The attached test failures were seen while running run-webkit-tests on the ios-sim-ews. Bot: ews126 Port: ios-simulator-wk2 Platform: Mac OS X 10.13.6
Saam Barati
Comment 6 2019-03-05 10:58:15 PST
Comment on attachment 363586 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=363586&action=review > Source/bmalloc/bmalloc/DebugHeap.cpp:79 > + // Currently, |goal| does not affect on the result of malloc_zone_pressure_relief if we only scavenge one zone. I don't follow what you mean by "result" here.
Yusuke Suzuki
Comment 7 2019-03-05 11:19:35 PST
Comment on attachment 363586 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=363586&action=review >> Source/bmalloc/bmalloc/DebugHeap.cpp:79 >> + // Currently, |goal| does not affect on the result of malloc_zone_pressure_relief if we only scavenge one zone. > > I don't follow what you mean by "result" here. The resulted effect by malloc_zone_pressure_relief. As long as it is not nano-malloc, the logic does not change with this |goal| value now. (https://opensource.apple.com/source/libmalloc/libmalloc-166.220.1/src/magazine_malloc.c.auto.html's szone_pressure_relief). I'll rephrase this part.
Yusuke Suzuki
Comment 8 2019-03-05 13:49:50 PST
Radar WebKit Bug Importer
Comment 9 2019-03-05 13:50:30 PST
Note You need to log in before you can comment on or make changes to this bug.