Consider whether "with" is still needed in test_bug732665.xhtml
Categories
(Core :: XPConnect, task, P3)
Tracking
()
Tracking | Status | |
---|---|---|
firefox107 | --- | fixed |
People
(Reporter: mccr8, Assigned: kmag)
Details
Attachments
(1 file)
test_bug732665.xhtml (and the shell version in test_bug732665_meta.js) probe the stack depth, and use a with
to "keep things predictable -- stay in the interpreter". kmag suggests that maybe this isn't really needed. For what it is worth, I removed it from the mochitest locally and it still passes with --verify
.
Assignee | ||
Comment 1•2 years ago
|
||
It shouldn't actually keep us out of Baseline anymore, and eval
should be
enough to prevent any heavy optimization.
I tried replacing the eval()
with Cu.exportFunction
to create native stack
frames in a definitely-not-JITtable way, but the frames were too small, and
the stub JS function calls started failing with stack overflow errors at the
same time as the "heavy" native calls.
That also happened to uncover a fairly obvious bug in the existing test, in
that we can't actually report a failed assertion when we're out of stack
space, and just wind up throwing another stack overflow or allocation error
instead.
Updated•2 years ago
|
Comment 3•2 years ago
|
||
bugherder |
Description
•