Bug 252595 - [bmalloc] Use an autoreleasepool in gigacageEnabledForProcess() and shouldProcessUnconditionallyUseBmalloc()
Summary: [bmalloc] Use an autoreleasepool in gigacageEnabledForProcess() and shouldPro...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: David Kilzer (:ddkilzer)
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2023-02-20 12:05 PST by David Kilzer (:ddkilzer)
Modified: 2023-02-20 15:39 PST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.