mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 11:25:00 +00:00
Bug 924608 - Fix a compiler warning in memorymetrics; r=njn
This commit is contained in:
parent
2612cf4654
commit
cec4468cbd
@ -61,12 +61,12 @@ struct InefficientNonFlatteningStringHashPolicy
|
||||
#define ZERO_SIZE(gc, mSize) mSize(0),
|
||||
#define COPY_OTHER_SIZE(gc, mSize) mSize(other.mSize),
|
||||
#define ADD_OTHER_SIZE(gc, mSize) mSize += other.mSize;
|
||||
#define ADD_SIZE_TO_N_IF_LIVE_GC_THING(gc, mSize) n += (gc == js::IsLiveGCThing) ? mSize : 0;
|
||||
#define ADD_SIZE_TO_N_IF_LIVE_GC_THING(gc, mSize) n += (gc) ? mSize : 0;
|
||||
|
||||
// Used to annotate which size_t fields measure live GC things and which don't.
|
||||
enum {
|
||||
IsLiveGCThing,
|
||||
NotLiveGCThing
|
||||
NotLiveGCThing = false,
|
||||
IsLiveGCThing = true
|
||||
};
|
||||
|
||||
struct ZoneStatsPod
|
||||
|
Loading…
Reference in New Issue
Block a user