gecko/memory/replace/dmd
Jed Davis 23abd8d5fb Bug 1102388 - Fix DMD static constructor ordering dependency. r=mccr8
Sometimes, at least on Linux, DMDFuncs::sSingleton's static initializer
(in libxul) was being called before sDMDBridge's (in libdmd).
Thus sDMDBridge wasn't constructed yet in the path where its
address is taken, passed down through {replace_,}get_bridge to
ReplaceMallocBridge::Get, and its mVersion field is read.

This patch uses dynamic allocation, following what's done for other
globals in the same situation in this file.

Also, naming convention fix: leading "s" is for C++ class statics;
C-style static globals should be "g".
2015-04-20 23:05:00 +02:00
..
test Bug 958147 - Choose one of run-if or skip-if and get rid of the other.r=jmaher, mwargers 2015-03-03 08:46:37 -05:00
DMD.cpp Bug 1102388 - Fix DMD static constructor ordering dependency. r=mccr8 2015-04-20 23:05:00 +02:00
DMD.h Bug 1121830 - DMD: add "num" property to blocks in the output. r=mccr8. 2015-01-15 20:38:38 -08:00
dmd.py Bug 1121830 - DMD: add "num" property to blocks in the output. r=mccr8. 2015-01-15 20:38:38 -08:00
moz.build Bug 1122337 - Mark DMD directories as FAIL_ON_WARNINGS. r=glandium. 2015-01-15 21:17:18 -08:00
README

This is DMD.  See https://wiki.mozilla.org/Performance/MemShrink/DMD for
details on how to use it.