WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
195782
Remove retain cycle from JSScript and also don't keep the cache file descriptor open so many JSScripts can be cached in a loop
https://bugs.webkit.org/show_bug.cgi?id=195782
Summary
Remove retain cycle from JSScript and also don't keep the cache file descript...
Saam Barati
Reported
2019-03-14 16:59:43 PDT
This will address feedback of folks trying to use this API.
Attachments
patch
(15.75 KB, patch)
2019-03-14 17:22 PDT
,
Saam Barati
msaboff
: review+
Details
Formatted Diff
Diff
patch for landing
(15.74 KB, patch)
2019-03-14 18:04 PDT
,
Saam Barati
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Saam Barati
Comment 1
2019-03-14 17:00:14 PDT
<
rdar://problem/48880625
>
Saam Barati
Comment 2
2019-03-14 17:22:39 PDT
Created
attachment 364726
[details]
patch
EWS Watchlist
Comment 3
2019-03-14 17:24:02 PDT
Attachment 364726
[details]
did not pass style-queue: ERROR: Source/JavaScriptCore/API/tests/testapi.mm:2205: One line control clauses should not use braces. [whitespace/braces] [4] ERROR: Source/JavaScriptCore/API/tests/testapi.mm:2237: One line control clauses should not use braces. [whitespace/braces] [4] Total errors found: 2 in 6 files If any of these errors are false positives, please file a bug against check-webkit-style.
Michael Saboff
Comment 4
2019-03-14 17:45:54 PDT
Comment on
attachment 364726
[details]
patch View in context:
https://bugs.webkit.org/attachment.cgi?id=364726&action=review
r=me
> Source/JavaScriptCore/API/JSScript.mm:290 > + error = "No cache was path provided during construction of this JSScript."_s;
I know you didn't change this error message, but shouldn't it read "No cache *path was* provided during construction of this JSScript."?
Saam Barati
Comment 5
2019-03-14 17:51:39 PDT
Comment on
attachment 364726
[details]
patch View in context:
https://bugs.webkit.org/attachment.cgi?id=364726&action=review
>> Source/JavaScriptCore/API/JSScript.mm:290 >> + error = "No cache was path provided during construction of this JSScript."_s; > > I know you didn't change this error message, but shouldn't it read "No cache *path was* provided during construction of this JSScript."?
Yeah will fix.
Saam Barati
Comment 6
2019-03-14 18:04:08 PDT
Created
attachment 364743
[details]
patch for landing
Saam Barati
Comment 7
2019-03-14 18:12:03 PDT
landed in:
https://trac.webkit.org/changeset/242980/webkit
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug