Closed
Bug 1149739
Opened 10 years ago
Closed 10 years ago
Censor |performance| object in JS_MORE_DETERMINISTIC builds
Categories
(Core :: JavaScript Engine, defect)
Core
JavaScript Engine
Tracking
()
RESOLVED
FIXED
mozilla40
| Tracking | Status | |
|---|---|---|
| firefox40 | --- | fixed |
People
(Reporter: jruderman, Assigned: sfink)
References
Details
(Keywords: testcase)
Attachments
(1 file)
|
3.14 KB,
patch
|
terrence
:
review+
|
Details | Diff | Splinter Review |
|performance.mozMemory| was added to the js shell in bug 1125412. Gary noticed that it trips up differential testing, when the fuzzer generates code like:
> print(JSON.stringify(this))
{ ... "mozMemory": { ... "gcBytes": 237568 ... } ... }
Where would be the best place to hide this information in JS_MORE_DETERMINISTIC builds? I'm thinking either:
A) Where the performance object is created
https://hg.mozilla.org/mozilla-central/file/18a8ea7c2c62/js/src/shell/js.cpp#l5650
B) Where the mozMemory object is populated
https://hg.mozilla.org/mozilla-central/file/18a8ea7c2c62/js/src/jsgc.cpp#l7245
Comment 1•10 years ago
|
||
Steve worked on bug 1125412, adding needinfo? from him.
Flags: needinfo?(sphink)
| Assignee | ||
Comment 2•10 years ago
|
||
Yep, this was totally me. I'm not sure what the right place to cut this is, but I don't suppose it really matters. I was worried that making the JS::NewMemoryInfoObject call fail might mess up initialization without further fixes, and returning an empty object is a little odd because in my code, I feature-test the existence of performance.mozMemory. How about this?
Attachment #8587617 -
Flags: review?(terrence)
| Assignee | ||
Updated•10 years ago
|
Assignee: nobody → sphink
Status: NEW → ASSIGNED
Comment 3•10 years ago
|
||
Comment on attachment 8587617 [details] [diff] [review]
Nerf performance.mozMemory ifdef JS_MORE_DETERMINISTIC
Review of attachment 8587617 [details] [diff] [review]:
-----------------------------------------------------------------
wfm
Attachment #8587617 -
Flags: review?(terrence) → review+
| Assignee | ||
Comment 4•10 years ago
|
||
Flags: needinfo?(sphink)
Comment 5•10 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla40
| Assignee | ||
Comment 6•10 years ago
|
||
Comment 7•10 years ago
|
||
You need to log in
before you can comment on or make changes to this bug.
Description
•