Closed
Bug 671035
Opened 14 years ago
Closed 14 years ago
Remove windows.h from JS headers, added in bug 588537
Categories
(Core :: JavaScript Engine, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: sfink, Assigned: sfink)
References
Details
(Whiteboard: [inbound])
Attachments
(1 file)
27.95 KB,
patch
|
dmandelin
:
review+
|
Details | Diff | Splinter Review |
In bug 588537, I added an #include of "jswin.h", which includes <windows.h>, to jsprobes.h. Brendan mentioned to me that that's not such a great idea, which I agree with. I have a simple followup fix that I'm still trying to get to compile.
Assignee | ||
Comment 1•14 years ago
|
||
This patch removes all ETW code from the jsprobes.h header and moves it into jsprobes.cpp. This removes windows.h pollution in JS header files, and the loss of inlining is unlikely to matter given ETW's overhead. (As in, it's already doing non-inlined function calls.)
As part of this, I added 3 new probe types, still lacking dtrace etc implementations: runtime create/destroy and final shutdown.
This also fixes a build failure I was getting with the bug 588537 patches, which mysteriously did not seem to affect my try pushes for some reason. The fix is to make only jsprobes.obj depend on the generated ETWProvider.h instead of all object files. (Without this patch, many of those files really did depend on it, but the rule was wrong so it also added in some *.cc files.)
Attachment #545839 -
Flags: review?(gal)
Assignee | ||
Comment 2•14 years ago
|
||
Comment on attachment 545839 [details] [diff] [review]
Move ETW implementations into jsprobes.cpp, eliminate windows.h include from header
I should stop dumping all probe-related reviews on gal.
Attachment #545839 -
Flags: review?(gal) → review?(dmandelin)
Updated•14 years ago
|
Attachment #545839 -
Flags: review?(dmandelin) → review+
Assignee | ||
Comment 3•14 years ago
|
||
Whiteboard: [inbound]
Comment 4•14 years ago
|
||
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•