WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
153847
ArrayPrototype should have a destroy function
https://bugs.webkit.org/show_bug.cgi?id=153847
Summary
ArrayPrototype should have a destroy function
Keith Miller
Reported
2016-02-03 17:08:11 PST
ArrayPrototype should have a destroy function
Attachments
Patch
(2.24 KB, patch)
2016-02-03 17:11 PST
,
Keith Miller
no flags
Details
Formatted Diff
Diff
Patch
(8.62 KB, patch)
2016-02-04 14:30 PST
,
Keith Miller
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Keith Miller
Comment 1
2016-02-03 17:11:10 PST
Created
attachment 270612
[details]
Patch
Andreas Kling
Comment 2
2016-02-03 17:24:23 PST
Comment on
attachment 270612
[details]
Patch destroy() will not be called unless you also add static const bool needsDestruction = true; to ArrayPrototype. (This will cause it to get allocated in a MarkedBlock that runs destructors.)
Keith Miller
Comment 3
2016-02-04 14:29:11 PST
rdar://problem/24494029
Keith Miller
Comment 4
2016-02-04 14:30:39 PST
Created
attachment 270697
[details]
Patch
Saam Barati
Comment 5
2016-02-04 14:33:32 PST
Comment on
attachment 270697
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=270697&action=review
> Source/JavaScriptCore/jsc.cpp:2092 > + vm->heap.collectAllGarbage();
why not tear down the VM here?
Keith Miller
Comment 6
2016-02-04 14:44:27 PST
Per an offline conversation with Filip, users don't usually do it and a we want jsc.cpp to act in a way that models how people the framework. I wouldn't be opposed to adding another option doing so in a different patch, however.
Filip Pizlo
Comment 7
2016-02-04 16:02:46 PST
Comment on
attachment 270697
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=270697&action=review
>> Source/JavaScriptCore/jsc.cpp:2092 >> + vm->heap.collectAllGarbage(); > > why not tear down the VM here?
VM tear-down would test other things that maybe we don't want to test with gcAtEnd.
WebKit Commit Bot
Comment 8
2016-02-04 16:36:26 PST
Comment on
attachment 270697
[details]
Patch Clearing flags on attachment: 270697 Committed
r196155
: <
http://trac.webkit.org/changeset/196155
>
WebKit Commit Bot
Comment 9
2016-02-04 16:36:29 PST
All reviewed patches have been landed. Closing bug.
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