Closed
Bug 645423
Opened 14 years ago
Closed 14 years ago
nsPresArena.cpp fails to build with -DDEBUG_TRACEMALLOC_PRESARENA. (ARENA_POISON undefined)
Categories
(Core :: Layout, defect)
Core
Layout
Tracking
()
RESOLVED
FIXED
mozilla5
People
(Reporter: MatsPalmgren_bugz, Assigned: MatsPalmgren_bugz)
References
Details
(Keywords: regression)
Attachments
(2 files, 1 obsolete file)
2.04 KB,
patch
|
dbaron
:
review+
|
Details | Diff | Splinter Review |
1.24 KB,
patch
|
Details | Diff | Splinter Review |
layout/base/nsPresArena.cpp: In static member function 'static PRUword nsPresArena::GetPoisonValue()':
layout/base/nsPresArena.cpp:471: error: 'ARENA_POISON' was not declared in this scope
make[2]: *** [nsPresArena.o] Error 1
Assignee | ||
Comment 1•14 years ago
|
||
Move the setup of the poison value outside the
#ifndef DEBUG_TRACEMALLOC_PRESARENA
so it's always available.
Call the one-time init function also when DEBUG_TRACEMALLOC_PRESARENA
is defined.
This fixes the compilation error.
Attachment #522165 -
Flags: review?(dbaron)
Comment on attachment 522165 [details] [diff] [review]
Always init poison value
r=dbaron. Thanks for fixing this.
Attachment #522165 -
Flags: review?(dbaron) → review+
Assignee | ||
Comment 3•14 years ago
|
||
Also, wouldn't it be better to leave 'mValueOffsets' uninitialized
in a --enable-valgrind build and let valgrind catch any memory errors?
Attachment #522167 -
Flags: review?(dbaron)
Comment on attachment 522167 [details] [diff] [review]
Don't poison nsRuleData in --enable-valgrind build
r=dbaron, except I think it's simpler to skip the .h change and just have an #ifndef MOZ_VALGRIND block inside the destructor just like the one in the constructor. No point worrying about inlining in DEBUG builds, and it makes the code easier to understand.
Attachment #522167 -
Flags: review?(dbaron) → review+
Assignee | ||
Comment 5•14 years ago
|
||
Ok, updated as suggested.
Assignee | ||
Comment 6•14 years ago
|
||
Fixed in Cedar:
http://hg.mozilla.org/projects/cedar/rev/7e0d493e7b10
http://hg.mozilla.org/projects/cedar/rev/81d1df28a908
Whiteboard: fixed-in-cedar
Comment 7•14 years ago
|
||
http://hg.mozilla.org/mozilla-central/rev/7e0d493e7b10
http://hg.mozilla.org/mozilla-central/rev/81d1df28a908
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Updated•14 years ago
|
Target Milestone: --- → mozilla2.2
Updated•14 years ago
|
Whiteboard: fixed-in-cedar
You need to log in
before you can comment on or make changes to this bug.
Description
•