WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
158157
regExpProtoFuncSplitFast should OOM before it swaps
https://bugs.webkit.org/show_bug.cgi?id=158157
Summary
regExpProtoFuncSplitFast should OOM before it swaps
Filip Pizlo
Reported
2016-05-27 10:29:44 PDT
Patch forthcoming.
Attachments
stuff
(13.61 KB, patch)
2016-05-27 10:30 PDT
,
Filip Pizlo
no flags
Details
Formatted Diff
Diff
the patch
(18.19 KB, patch)
2016-05-27 12:13 PDT
,
Filip Pizlo
mark.lam
: review+
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Filip Pizlo
Comment 1
2016-05-27 10:30:17 PDT
Created
attachment 279970
[details]
stuff I haven't tried compiling it yet.
Filip Pizlo
Comment 2
2016-05-27 12:13:48 PDT
Created
attachment 279980
[details]
the patch
Mark Lam
Comment 3
2016-05-27 13:29:46 PDT
Comment on
attachment 279980
[details]
the patch View in context:
https://bugs.webkit.org/attachment.cgi?id=279980&action=review
r=me
> Source/JavaScriptCore/ChangeLog:15 > + This is an enormous speed-up on some jsfunfuzz tests: they got from running for a long
/got/go/.
> Source/JavaScriptCore/runtime/RegExpPrototype.cpp:599 > + unsigned maxSizeForDirectPath = 100000;
Maybe make this a common constant at the top of this file since it appears to be used for more than 1 function?
> Source/JavaScriptCore/runtime/RegExpPrototype.cpp:671 > +
Please remove blank space.
Filip Pizlo
Comment 4
2016-05-27 13:36:49 PDT
(In reply to
comment #3
)
> Comment on
attachment 279980
[details]
> the patch > > View in context: >
https://bugs.webkit.org/attachment.cgi?id=279980&action=review
> > r=me > > > Source/JavaScriptCore/ChangeLog:15 > > + This is an enormous speed-up on some jsfunfuzz tests: they got from running for a long > > /got/go/.
OK!
> > > Source/JavaScriptCore/runtime/RegExpPrototype.cpp:599 > > + unsigned maxSizeForDirectPath = 100000; > > Maybe make this a common constant at the top of this file since it appears > to be used for more than 1 function?
It appears only once in this file! It also appears in RegExpObject.h. I figure that having two copies of the constant is slightly less evil than the alternatives that I can think of: - Introduce a new header for the constant. - Introduce the constant into some random header.
> > > Source/JavaScriptCore/runtime/RegExpPrototype.cpp:671 > > + > > Please remove blank space.
OK!
Filip Pizlo
Comment 5
2016-05-27 17:10:00 PDT
Landed in
http://trac.webkit.org/changeset/201467
Filip Pizlo
Comment 6
2016-05-27 17:10:16 PDT
Committed.
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