Bug 252595

Summary: [bmalloc] Use an autoreleasepool in gigacageEnabledForProcess() and shouldProcessUnconditionallyUseBmalloc()
Product: WebKit Reporter: David Kilzer (:ddkilzer) <ddkilzer>
Component: JavaScriptCoreAssignee: David Kilzer (:ddkilzer) <ddkilzer>
Status: RESOLVED FIXED    
Severity: Normal CC: webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=221107

Description David Kilzer (:ddkilzer) 2023-02-20 12:05:34 PST
Use an autoreleasepool in bmalloc::gigacageEnabledForProcess() and bmalloc::shouldProcessUnconditionallyUseBmalloc().

NSBundle methods are known to create autoreleased objects within Foundation.framework, so clean them up before the function returns.

Found while investigating:  Bug 221107: JavaScriptCore should build with ARC enabled
Comment 1 Radar WebKit Bug Importer 2023-02-20 12:06:57 PST
<rdar://problem/105690164>
Comment 2 David Kilzer (:ddkilzer) 2023-02-20 12:10:50 PST
Pull request: https://github.com/WebKit/WebKit/pull/10378
Comment 3 EWS 2023-02-20 15:39:06 PST
Committed 260573@main (80ea8d22d124): <https://commits.webkit.org/260573@main>

Reviewed commits have been landed. Closing PR #10378 and removing active labels.