Closed
Bug 539621
Opened 14 years ago
Closed 14 years ago
nanojit: flush LogControl output on every line
Categories
(Core Graveyard :: Nanojit, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: n.nethercote, Assigned: n.nethercote)
Details
(Whiteboard: fixed-in-nanojit, fixed-in-tracemonkey)
Attachments
(1 file)
571 bytes,
patch
|
edwsmith
:
review+
|
Details | Diff | Splinter Review |
Sometimes I make a change to Nanojit which causes it to generates code that crashes. When this happens I like to look at the generated code (TMFLAGS=assembly on TraceMonkey) and compare it with the generated code from a non-crashing version. However, because LogControl prints to stdout, the output is buffered, and so when piping the output to a file sometimes part of the output is cut off because the crash occurred while the I/O buffer was partially full. This makes it harder to diagnose the bug. This patch flushes the I/O buffer after every line, thus avoiding this problem.
Attachment #421574 -
Flags: review?(edwsmith)
Updated•14 years ago
|
Attachment #421574 -
Flags: review?(edwsmith) → review+
Assignee | ||
Comment 1•14 years ago
|
||
http://hg.mozilla.org/projects/nanojit-central/rev/e75430160542
Whiteboard: fixed-in-nanojit
Assignee | ||
Comment 2•14 years ago
|
||
http://hg.mozilla.org/tracemonkey/rev/4f859b40dc36
Whiteboard: fixed-in-nanojit → fixed-in-nanojit, fixed-in-tracemonkey
Comment 3•14 years ago
|
||
http://hg.mozilla.org/mozilla-central/rev/4f859b40dc36
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Updated•10 years ago
|
Product: Core → Core Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•