[webkit-changes] [WebKit/WebKit] 80ea8d: [bmalloc] Use an autoreleasepool in gigacageEnable...
EWS
noreply at github.com
Mon Feb 20 15:39:13 PST 2023
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 80ea8d22d12403cd536dafa256f4d32c0a23e313
https://github.com/WebKit/WebKit/commit/80ea8d22d12403cd536dafa256f4d32c0a23e313
Author: David Kilzer <ddkilzer at apple.com>
Date: 2023-02-20 (Mon, 20 Feb 2023)
Changed paths:
M Source/bmalloc/bmalloc/ProcessCheck.mm
Log Message:
-----------
[bmalloc] Use an autoreleasepool in gigacageEnabledForProcess() and shouldProcessUnconditionallyUseBmalloc()
https://bugs.webkit.org/show_bug.cgi?id=252595
<rdar://105690164>
Reviewed by Yusuke Suzuki.
Add @autoreleasepool { } blocks to capture autoreleased objects
and clear them before the method returns. This prevents them
from sitting in the main thread's autoreleasePool until it is
drained.
* Source/bmalloc/bmalloc/ProcessCheck.mm:
(bmalloc::gigacageEnabledForProcess):
(bmalloc::shouldProcessUnconditionallyUseBmalloc):
Canonical link: https://commits.webkit.org/260573@main
More information about the webkit-changes
mailing list