Small style changes.
Just small style changes and we can accept this PR
This commit is contained in:
parent
f3a9fa6a62
commit
c38f4b9f2c
|
@ -584,17 +584,11 @@ class ThreadLocalRegistryImpl {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Return a newly constructed ThreadIdToThreadLocals that's intentionally never deleted
|
|
||||||
static ThreadIdToThreadLocals* NewThreadIdToThreadLocals() {
|
|
||||||
// Use RAII to flag that following mem alloc is never deallocated.
|
|
||||||
MemoryIsNotDeallocated memory_is_not_deallocated;
|
|
||||||
return new ThreadIdToThreadLocals;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Returns map of thread local instances.
|
// Returns map of thread local instances.
|
||||||
static ThreadIdToThreadLocals* GetThreadLocalsMapLocked() {
|
static ThreadIdToThreadLocals* GetThreadLocalsMapLocked() {
|
||||||
mutex_.AssertHeld();
|
mutex_.AssertHeld();
|
||||||
static ThreadIdToThreadLocals* map = NewThreadIdToThreadLocals();
|
MemoryIsNotDeallocated memory_is_not_deallocated;
|
||||||
|
static ThreadIdToThreadLocals* map = new ThreadIdToThreadLocals();
|
||||||
return map;
|
return map;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user