Bug 1196430 follow-up: Hide the usage of gCodeAddressService behind #ifdef MOZ_STACKWALKING

This is needed to fix the build bustage on B2G Desktop Windows.
Landed on a CLOSED TREE
This commit is contained in:
Ehsan Akhgari 2015-09-11 00:06:40 -04:00
parent c504a1ac28
commit 97be810099

View File

@ -480,6 +480,7 @@ DumpSerialNumbers(PLHashEntry* aHashEntry, int aIndex, void* aClosure)
NS_INT32_TO_PTR(aHashEntry->key),
record->refCount);
#endif
#ifdef MOZ_STACKWALKING
if (!record->allocationStack.empty()) {
static const size_t bufLen = 1024;
char buf[bufLen];
@ -492,6 +493,7 @@ DumpSerialNumbers(PLHashEntry* aHashEntry, int aIndex, void* aClosure)
fprintf(outputFile, "%s\n", buf);
}
}
#endif
return HT_ENUMERATE_NEXT;
}