Closed
Bug 994163
Opened 12 years ago
Closed 12 years ago
TraceLogger doesn't compile with --disable-threadsafe
Categories
(Core :: JavaScript Engine, defect)
Core
JavaScript Engine
Tracking
()
RESOLVED
FIXED
mozilla31
People
(Reporter: bbouvier, Assigned: h4writer)
References
Details
Attachments
(1 file)
|
8.63 KB,
patch
|
bbouvier
:
review+
|
Details | Diff | Splinter Review |
Not sure whether we want --enable-threadsafe to be a dependency of --enable-trace-logger or not, but there is clearly something we need to do here.
| Assignee | ||
Comment 1•12 years ago
|
||
Correct. Tracelogger should be able to work with --disable-threadsafe
Assignee: nobody → hv1989
Attachment #8404509 -
Flags: review?(benj)
| Reporter | ||
Comment 2•12 years ago
|
||
Comment on attachment 8404509 [details] [diff] [review]
tracelogging-fix-threadsafe
Review of attachment 8404509 [details] [diff] [review]:
-----------------------------------------------------------------
Nice, thanks!
::: js/src/vm/TraceLogging.cpp
@@ +797,5 @@
> return mainThread->traceLogger;
> }
>
> TraceLogger *
> +js::TraceLoggerForThread()
The name is not really clear anymore, now that there's no argument anymore. How about renaming it TraceLoggerForCurrentThread() or something better you'd have in mind?
::: js/src/vm/TraceLogging.h
@@ +389,5 @@
> typedef HashMap<PRThread *,
> TraceLogger *,
> PointerHasher<PRThread *, 3>,
> SystemAllocPolicy> ThreadLoggerHashMap;
> +#endif
Could you suffix these #endif with // JS_THREADSAFE, so that we don't get confused with which ifdef we're closing?
@@ +400,2 @@
> ThreadLoggerHashMap threadLoggers;
> +#endif
ditto
@@ +418,2 @@
> TraceLogger *forThread(PRThread *thread);
> +#endif
ditto
Attachment #8404509 -
Flags: review?(benj) → review+
| Assignee | ||
Comment 3•12 years ago
|
||
Comment 5•12 years ago
|
||
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla31
You need to log in
before you can comment on or make changes to this bug.
Description
•