Closed Bug 951400 Opened 11 years ago Closed 11 years ago

IonMonkey: IONFLAGS=logs completely broken

Categories

(Core :: JavaScript Engine, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla29

People

(Reporter: sstangl, Assigned: h4writer)

Details

(Whiteboard: [qa-])

Attachments

(2 files)

It looks like recent threading changes to Ion compilation broke debugging output. The following command in a debug build trips an assertion in JSFunction::hasScript() via MConstant::printOpcode(): (run.js is part of Octane) > IONFLAGS=logs ~/dev/mozilla-inbound/js/src/dbg64/js --ion-parallel-compile=off run.js > Assertion failure: js::CurrentThreadCanReadCompilationData(), at /home/sstangl/dev/mozilla-inbound/js/src/jsfun.h:144
Comment on attachment 8349038 [details] [diff] [review] Permit reading compilation data when parallel compilation is disabled Review of attachment 8349038 [details] [diff] [review]: ----------------------------------------------------------------- Even when running on the main thread, we want Ion compilation to be able to trigger these assertions if operations are performed that would not be threadsafe if compilation was running off thread. This improves coverage of the thread safety assertions even in non-threadsafe builds etc. It would be better if the logging functions that accessed this stuff had an AutoLockForCompilation wrapped around it. Putting it at the way top of the logging callbacks would probably be the easiest way to do this.
Attachment #8349038 - Flags: review?(bhackett1024)
Attached patch My ideaSplinter Review
I only found this bug when I was going to create my own bug report. I had already a patch. I added it here. It is different than Sean his approach and I think also has the niceties of still allowing the asserts (Whenever IONFLAGS=logs is not enabled). And that way we don't need to add the AutoLock everywhere... I find it cleaner. But feel free to throw away. On the other hand if you think this is also good, you may review it also. (Patch is finished)
Attachment #8355566 - Flags: feedback?(bhackett1024)
Attachment #8355566 - Flags: feedback?(bhackett1024) → review+
Assignee: nobody → hv1989
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla29
Whiteboard: [qa-]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: