Bug 29150

Summary: [v8] create a real handler to JS objects when returning strings from StringImplCache
Product: WebKit Reporter: anton muhin <antonm>
Component: WebKit Misc.Assignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: ager, commit-queue, eric
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: PC   
OS: OS X 10.5   
Attachments:
Description Flags
First pass
abarth: review+, commit-queue: commit-queue-
Hopefully right paths none

anton muhin
Reported 2009-09-10 14:06:06 PDT
Currently, just a wrapper is created (v8::Local<v8::String>(pointer)) which won't save the object being handled if GC would happen (to be more precise, one mark flavours). Let's use a proper local handle instead.
Attachments
First pass (1.18 KB, patch)
2009-09-10 14:11 PDT, anton muhin
abarth: review+
commit-queue: commit-queue-
Hopefully right paths (1.19 KB, patch)
2009-09-11 05:52 PDT, anton muhin
no flags
anton muhin
Comment 1 2009-09-10 14:11:26 PDT
Created attachment 39376 [details] First pass
Adam Barth
Comment 2 2009-09-10 14:50:43 PDT
Comment on attachment 39376 [details] First pass I don't fully understand the V8 garbage collector, but this seems reasonable and I believe that you know what you're doing. :)
Adam Barth
Comment 3 2009-09-10 14:55:21 PDT
Comment on attachment 39376 [details] First pass I forgot that you aren't a committer yet.
WebKit Commit Bot
Comment 4 2009-09-10 15:49:20 PDT
Comment on attachment 39376 [details] First pass Rejecting patch 39376 from commit-queue. This patch will require manual commit. Patch https://bugs.webkit.org/attachment.cgi?id=39376 from bug 29150 failed to download and apply.
Eric Seidel (no email)
Comment 5 2009-09-10 16:13:17 PDT
Looks like somehow this patch is not from the root: can't find file to patch at input line 5 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |Index: bindings/v8/V8Binding.cpp |=================================================================== |--- bindings/v8/V8Binding.cpp (revision 48239) |+++ bindings/v8/V8Binding.cpp (working copy) -------------------------- No file to patch. Skipping patch. 1 out of 1 hunk ignored
Mads Ager
Comment 6 2009-09-10 23:24:48 PDT
Looks good to me as well. Good catch Anton.
anton muhin
Comment 7 2009-09-11 05:52:57 PDT
Created attachment 39425 [details] Hopefully right paths Same story as with inlining patch. Sorry all for inconvenience.
WebKit Commit Bot
Comment 8 2009-09-11 07:52:22 PDT
Comment on attachment 39425 [details] Hopefully right paths Rejecting patch 39425 from commit-queue. This patch will require manual commit. ['WebKitTools/Scripts/run-webkit-tests', '--no-launch-safari', '--quiet', '--exit-after-n-failures=1'] failed with exit code 1
anton muhin
Comment 9 2009-09-11 08:11:54 PDT
(In reply to comment #8) > (From update of attachment 39425 [details]) > Rejecting patch 39425 from commit-queue. > > This patch will require manual commit. ['WebKitTools/Scripts/run-webkit-tests', > '--no-launch-safari', '--quiet', '--exit-after-n-failures=1'] failed with exit > code 1 what should I do? svn update and merge? tia, anton.
Adam Barth
Comment 10 2009-09-11 08:28:37 PDT
Comment on attachment 39425 [details] Hopefully right paths This is likely a flaky test. Let's try again.
Eric Seidel (no email)
Comment 11 2009-09-11 09:21:08 PDT
Bitten by bug 28845. :( compositing/color-matching/image-color-matching.html -> timed out
WebKit Commit Bot
Comment 12 2009-09-11 09:47:14 PDT
Comment on attachment 39425 [details] Hopefully right paths Rejecting patch 39425 from commit-queue. This patch will require manual commit. ['WebKitTools/Scripts/run-webkit-tests', '--no-launch-safari', '--quiet', '--exit-after-n-failures=1'] failed with exit code 1
Eric Seidel (no email)
Comment 13 2009-09-11 10:01:36 PDT
Comment on attachment 39425 [details] Hopefully right paths Just your lucky day. :( Bug 28845 again! compositing/self-painting-layers.html -> crashed
WebKit Commit Bot
Comment 14 2009-09-11 10:20:48 PDT
Comment on attachment 39425 [details] Hopefully right paths Clearing flags on attachment: 39425 Committed r48305: <http://trac.webkit.org/changeset/48305>
WebKit Commit Bot
Comment 15 2009-09-11 10:21:01 PDT
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.