WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
72089
JSString forgets to clear m_fibers when resolving ropes
https://bugs.webkit.org/show_bug.cgi?id=72089
Summary
JSString forgets to clear m_fibers when resolving ropes
Filip Pizlo
Reported
2011-11-10 21:50:59 PST
This can cause some pathological memory usage. Patch on the way.
Attachments
the patch
(1.45 KB, patch)
2011-11-10 21:52 PST
,
Filip Pizlo
ggaren
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Filip Pizlo
Comment 1
2011-11-10 21:52:07 PST
Created
attachment 114626
[details]
the patch
WebKit Review Bot
Comment 2
2011-11-10 22:01:41 PST
Attachment 114626
[details]
did not pass style-queue: Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Source/JavaScriptCore/ChangeLog', u'Source..." exit_code: 1 Source/JavaScriptCore/ChangeLog:1: ChangeLog entry has no bug number [changelog/bugnumber] [5] Total errors found: 1 in 2 files If any of these errors are false positives, please file a bug against check-webkit-style.
Geoffrey Garen
Comment 3
2011-11-10 22:07:00 PST
Might be good to merge your new comment with the comment above, which (now) incorrectly ASSERTs that using a Vector is OK because the string will mark its fibers -- really, using a Vector is only OK because GC just won't happen. r=me
Geoffrey Garen
Comment 4
2011-11-10 22:08:03 PST
Comment on
attachment 114626
[details]
the patch View in context:
https://bugs.webkit.org/attachment.cgi?id=114626&action=review
> Source/JavaScriptCore/runtime/JSString.cpp:109 > + // Clearing here works only because there are no GC points in this method.
Might be good to merge this with the comment above, which ASSERTs that using a Vector is OK -- really, using a Vector is only OK because GC just won't happen.
Filip Pizlo
Comment 5
2011-11-10 22:11:06 PST
(In reply to
comment #4
)
> (From update of
attachment 114626
[details]
) > View in context:
https://bugs.webkit.org/attachment.cgi?id=114626&action=review
> > > Source/JavaScriptCore/runtime/JSString.cpp:109 > > + // Clearing here works only because there are no GC points in this method. > > Might be good to merge this with the comment above, which ASSERTs that using a Vector is OK -- really, using a Vector is only OK because GC just won't happen.
Oh, heh, didn't even notice that comment. I've gone for two comments, one to say that it's OK to put them into the Vector (because there are no GC points) and another to say that it's OK to clear m_fibers (because there are no GC points). Figure that minimizes the chances of someone getting the wrong ideas.
Filip Pizlo
Comment 6
2011-11-10 22:40:15 PST
Landed in
http://trac.webkit.org/changeset/99927
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