RESOLVED FIXED 22394
Be more eager in destroying script decoded data
https://bugs.webkit.org/show_bug.cgi?id=22394
Summary Be more eager in destroying script decoded data
Sam Weinig
Reported 2008-11-20 21:41:23 PST
We should be more eager about destroying it as re-creating it is cheap.
Attachments
patch (20.79 KB, patch)
2008-11-20 21:43 PST, Sam Weinig
no flags
Patch 2 - CachedScriptSourceProvider (13.95 KB, patch)
2008-11-20 23:48 PST, Sam Weinig
no flags
Patch 3 - Destroy decoded data on allClientsRemoved (1.58 KB, patch)
2008-11-21 11:40 PST, Sam Weinig
no flags
patch 4 - Destroy decoded data on a zero-delay timer (2.25 KB, patch)
2008-11-21 14:43 PST, Sam Weinig
sam: review+
Sam Weinig
Comment 1 2008-11-20 21:43:09 PST
Geoffrey Garen
Comment 2 2008-11-20 21:46:34 PST
Comment on attachment 25337 [details] patch r=me
Sam Weinig
Comment 3 2008-11-20 21:51:41 PST
Comment on attachment 25337 [details] patch First patch landed in r38654.
Sam Weinig
Comment 4 2008-11-20 23:48:18 PST
Created attachment 25341 [details] Patch 2 - CachedScriptSourceProvider
Geoffrey Garen
Comment 5 2008-11-21 10:20:05 PST
Comment on attachment 25341 [details] Patch 2 - CachedScriptSourceProvider > + return JSC::SourceCode(CachedScriptSourceProvider::create(cachedScript), 1); No need for the "1" here -- it's automatic. Isn't there some .bkl action that needs fixing up, too? r=me
Sam Weinig
Comment 6 2008-11-21 10:45:03 PST
Comment on attachment 25341 [details] Patch 2 - CachedScriptSourceProvider Second patch landed in r38664.
Sam Weinig
Comment 7 2008-11-21 11:40:49 PST
Created attachment 25359 [details] Patch 3 - Destroy decoded data on allClientsRemoved
Sam Weinig
Comment 8 2008-11-21 13:40:57 PST
Comment on attachment 25359 [details] Patch 3 - Destroy decoded data on allClientsRemoved Third patch landed in r38676.
Sam Weinig
Comment 9 2008-11-21 14:43:29 PST
Created attachment 25363 [details] patch 4 - Destroy decoded data on a zero-delay timer This approach adds a zero-delay timer after decoding script data to destroy it. This should handle all cases of avoiding re-decoding data shortly after initial re-decode.
Sam Weinig
Comment 10 2008-11-21 14:45:26 PST
Comment on attachment 25363 [details] patch 4 - Destroy decoded data on a zero-delay timer r=geoff garen
Sam Weinig
Comment 11 2008-11-21 15:16:37 PST
Sam Weinig
Comment 12 2008-11-21 15:18:20 PST
Last patch landed in r38679.
Note You need to log in before you can comment on or make changes to this bug.