Bug 555690 ThreadData::StartTracking should use #else. r=cjones

This commit is contained in:
timeless@mozdev.org 2010-07-13 11:56:47 -07:00
parent 985124d905
commit b2a92b4b2f

View File

@ -312,8 +312,7 @@ void ThreadData::RunOnAllThreads(void (*function)()) {
bool ThreadData::StartTracking(bool status) { bool ThreadData::StartTracking(bool status) {
#ifndef TRACK_ALL_TASK_OBJECTS #ifndef TRACK_ALL_TASK_OBJECTS
return false; // Not compiled in. return false; // Not compiled in.
#endif #else
if (!status) { if (!status) {
AutoLock lock(list_lock_); AutoLock lock(list_lock_);
DCHECK(status_ == ACTIVE || status_ == SHUTDOWN); DCHECK(status_ == ACTIVE || status_ == SHUTDOWN);
@ -325,6 +324,7 @@ bool ThreadData::StartTracking(bool status) {
CHECK(tls_index_.Initialize(NULL)); CHECK(tls_index_.Initialize(NULL));
status_ = ACTIVE; status_ = ACTIVE;
return true; return true;
#endif
} }
// static // static