Closed
Bug 523497
Opened 15 years ago
Closed 14 years ago
TM: Cut off traces with too many merges
Categories
(Core :: JavaScript Engine, defect)
Tracking
()
RESOLVED
WONTFIX
People
(Reporter: dvander, Unassigned)
References
Details
Attachments
(1 file, 2 obsolete files)
6.86 KB,
patch
|
Details | Diff | Splinter Review |
Since bug 516264 is unresolved, we need a way to stop explody traces from getting out of control. This currently happens in 3d-cube when we trace Loop() using recursion (tail calls, see bug 445363 comment #59). To get an idea of what heuristics we should try, I got some statistics on TraceRecorder::cfgMerges per compile() call. Each line is the script+line where the trace ends, and the interval is the min and max value for cfgMerges. Before tail calls: --------------------- 3d-cube.js:232 [46, 46] 3d-raytrace.js:295 [1, 11] date-format-xparb.js:413 [0, 7] 3d-raytrace.js:191 [2, 5] 3d-raytrace.js:252 [3, 3] access-fannkuch.js:17 [1, 3] 3d-raytrace.js:247 [2, 3] string-base64.js:92 [1, 3] crypto-sha1.js:61 [1, 2] 3d-raytrace.js:225 [1, 2] After tail calls: --------------------- 3d-cube.js:232 [19, 46] 3d-raytrace.js:295 [1, 11] date-format-xparb.js:413 [0, 7] 3d-raytrace.js:191 [2, 5] 3d-raytrace.js:252 [3, 3] access-fannkuch.js:17 [1, 3] 3d-raytrace.js:247 [2, 3] string-base64.js:92 [1, 3] crypto-sha1.js:61 [1, 2] 3d-raytrace.js:225 [1, 2]
Reporter | ||
Comment 1•15 years ago
|
||
SunSpider results for capping cfgMerges.length() to 20: http://pastebin.mozilla.org/677828
Reporter | ||
Comment 2•15 years ago
|
||
http://pastebin.mozilla.org/677830 with tail calls
Comment 3•15 years ago
|
||
Comment 4•15 years ago
|
||
sayrer, can you please post your bugzilla password in this bug for future reference so david can post in your name without having to wait for you to come to MV and not log yourself out? ;)
Comment 5•15 years ago
|
||
(In reply to comment #3) > Created an attachment (id=407440) [details] > patch nice patch, sayrer
Reporter | ||
Updated•15 years ago
|
Attachment #407440 -
Flags: review?(gal)
Reporter | ||
Comment 6•15 years ago
|
||
Comment on attachment 407440 [details] [diff] [review] patch This didn't seem to have adverse effects on MozillaTry.
Updated•15 years ago
|
Attachment #407440 -
Flags: review?(gal) → review+
Comment 7•14 years ago
|
||
Cachegrind gives these instruction counts: 3d-cube: total 125,130,318 116,534,135 1.074x better on-trace 25,345,708 25,145,417 1.008x better Nothing else changed much. SS timings indicate a 9% (~3.5ms) speedup for 3d-cube, again with nothing else changed. V8 changes all appear to be within noise.
Comment 8•14 years ago
|
||
Attachment #407440 -
Attachment is obsolete: true
Comment 9•14 years ago
|
||
I just measured SS again with TM+JM. This patch has zero effect. The only one it was helping before was 3d-cube, and that was due to tracing of recursion, something which no longer happens.
Attachment #443295 -
Attachment is obsolete: true
Comment 10•14 years ago
|
||
So is this to be marked RESOLVED INVALID?
Updated•14 years ago
|
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → WONTFIX
You need to log in
before you can comment on or make changes to this bug.
Description
•