diff options
author | Aliaksey Kandratsenka <alkondratenko@gmail.com> | 2017-11-28 14:43:11 +0000 |
---|---|---|
committer | Aliaksey Kandratsenka <alkondratenko@gmail.com> | 2017-11-29 20:50:55 +0000 |
commit | a29a0cf348e131d5b8ec26c39dabeac89cf13fcd (patch) | |
tree | 59daad3c48120826fe8f07cbb7eee4c8a04f6ca6 | |
parent | e6cd69bdecde074c3c7a52ccb099eafcecf668dc (diff) | |
download | gperftools-a29a0cf348e131d5b8ec26c39dabeac89cf13fcd.tar.gz |
delete-trailing-whitespace on thread_cache.*
-rw-r--r-- | src/thread_cache.cc | 1 | ||||
-rw-r--r-- | src/thread_cache.h | 4 |
2 files changed, 2 insertions, 3 deletions
diff --git a/src/thread_cache.cc b/src/thread_cache.cc index 5fc8ca9..027c38a 100644 --- a/src/thread_cache.cc +++ b/src/thread_cache.cc @@ -521,4 +521,3 @@ void ThreadCache::set_overall_thread_cache_size(size_t new_size) { } } // namespace tcmalloc - diff --git a/src/thread_cache.h b/src/thread_cache.h index 443fd95..d90b552 100644 --- a/src/thread_cache.h +++ b/src/thread_cache.h @@ -384,7 +384,7 @@ inline ATTRIBUTE_ALWAYS_INLINE void* ThreadCache::Allocate(size_t size, uint32 c inline ATTRIBUTE_ALWAYS_INLINE void ThreadCache::Deallocate(void* ptr, uint32 cl) { ASSERT(list_[cl].max_length() > 0); FreeList* list = &list_[cl]; - + // This catches back-to-back frees of allocs in the same size // class. A more comprehensive (and expensive) test would be to walk // the entire freelist. But this might be enough to find some bugs. @@ -396,7 +396,7 @@ inline ATTRIBUTE_ALWAYS_INLINE void ThreadCache::Deallocate(void* ptr, uint32 cl ListTooLong(list, cl); return; } - + size_ += list->object_size(); if (PREDICT_FALSE(size_ > max_size_)){ Scavenge(); |