Closed
Bug 66159
Opened 25 years ago
Closed 17 years ago
comment out nsTraceRefcnt in optimized builds
Categories
(Core :: XPCOM, defect, P1)
Core
XPCOM
Tracking
()
RESOLVED
WONTFIX
Future
People
(Reporter: dbaron, Assigned: dbaron)
Details
(Whiteboard: [xptest])
Attachments
(4 files)
|
29.94 KB,
patch
|
Details | Diff | Splinter Review | |
|
70.60 KB,
patch
|
Details | Diff | Splinter Review | |
|
3.59 KB,
patch
|
Details | Diff | Splinter Review | |
|
69.68 KB,
patch
|
Details | Diff | Splinter Review |
As Brendan said in bug 61243, we should make class nsTraceRefcnt completely
#ifdef NS_BUILD_REFCNT_LOGGING (which is defined by default in debug builds
but not optimized builds). I propose also that we pull WalkTheStack out of
nsTraceRefcnt and make it it's own global function, depending on a different
#ifdef (since I don't think it's #ifdef-ed at all now, and there is at least
one other user). Perhaps it should be renamed to NS_WalkTheStack and within
|#if defined(DEBUG) || defined(NS_BUILD_REFCNT_LOGGING)|?
| Assignee | ||
Updated•25 years ago
|
Status: NEW → ASSIGNED
Priority: -- → P2
Target Milestone: --- → mozilla0.9
| Assignee | ||
Comment 2•25 years ago
|
||
Comment 3•25 years ago
|
||
Cool -- how do you want to land this?
Once it's in, I'll try to unify nsTraceMalloc's stack and symbol stuff with it.
/be
| Assignee | ||
Comment 4•25 years ago
|
||
| Assignee | ||
Comment 5•25 years ago
|
||
Comment 6•25 years ago
|
||
Looks ok. Why not make LoadLibrarySymbols and DemangleSymbol accessable from C,
too? (e.g., I wish that the Boehm GC would dump demangled symbols...)
r=waterson
| Assignee | ||
Comment 7•25 years ago
|
||
LoadLibrarySymbols is called from the function that loads the DLL, i.e., the
code in xcDll.cpp. DemangleSymbol might be nice from the boehm GC, except,
at least on Linux, it leaks, which leads to exponential growth of the leak
report if you do real-time symbol demangling. :-(
I thought about making them accessible from C, too, but I didn't see how they
would be useful (see above). Do you think I should anyway? (If so, can you
think of good names for them?)
| Assignee | ||
Comment 8•25 years ago
|
||
Is anybody interested in testing this on Windows/Mac? I'd normally be
comfortable landing something like this on a quiet Sunday morning, but I'm
not going to be able to find Mac help then... Or do you think it's safe
enough?
| Assignee | ||
Comment 9•25 years ago
|
||
Since I really need to get the stuff in bug 66159 tested on Windows and Mac,
moving this to mozilla 0.9.1
Target Milestone: mozilla0.9 → mozilla0.9.1
| Assignee | ||
Updated•25 years ago
|
Whiteboard: [xptest]
| Assignee | ||
Comment 10•25 years ago
|
||
Pushing out again. I'll try to land this early in 0.9.2. Really. (I should
have time this time around.)
Target Milestone: mozilla0.9.1 → mozilla0.9.2
| Assignee | ||
Updated•25 years ago
|
Target Milestone: mozilla0.9.2 → mozilla0.9.3
| Assignee | ||
Updated•25 years ago
|
Priority: P2 → P1
| Assignee | ||
Comment 11•25 years ago
|
||
| Assignee | ||
Updated•25 years ago
|
Target Milestone: mozilla0.9.3 → mozilla1.0
| Assignee | ||
Comment 12•25 years ago
|
||
What I discovered (a month or two ago) was wrong with this is that it didn't
account for the windows library loading functions properly. Probably more of
that would need to be in nsStackWalker, or something.
| Assignee | ||
Updated•24 years ago
|
Keywords: mozilla1.0
| Assignee | ||
Comment 13•24 years ago
|
||
This should probably be done before 1.0 for binary compatibility, but I'm not
going to be able to do it.
Target Milestone: mozilla1.0 → Future
Comment 14•24 years ago
|
||
I do not think that there is a problem with binary compatiblity if one builds
with optimized and does not set FORCE_BUILD_REFCNT_LOGGING. Is this a correct
observation?
| Assignee | ||
Comment 15•24 years ago
|
||
That's correct, but we might in the future want to be able to change the
signatures of methods in nsTraceRefcnt, and right now, we can't (for any clients
that link to xpcom -- although I really think they shouldn't be).
Comment 16•24 years ago
|
||
Sure we can change the symbol. I agree with you... clients that link against
symbols that are not frozen shouldn't.
Updated•20 years ago
|
QA Contact: kandrot → nobody
Updated•20 years ago
|
QA Contact: nobody → xpcom
Comment 17•17 years ago
|
||
we now provide these symbols in release builds as we should, I think (although the stacks are not always so useful)
Status: ASSIGNED → RESOLVED
Closed: 17 years ago
Resolution: --- → WONTFIX
You need to log in
before you can comment on or make changes to this bug.
Description
•