On 2012/08/23 16:17:05, dvyukov wrote: > Please review. Number of cached blocks may be not ...
12 years, 5 months ago
(2012-08-23 16:19:52 UTC)
#2
On 2012/08/23 16:17:05, dvyukov wrote:
> Please review.
Number of cached blocks may be not optimal, as well as list traversal under a
mutex, but let's start from something simple.
LGTM++ My fault that I left the FIXME unfixed. http://codereview.appspot.com/6478053/diff/1/sanitizer_common/sanitizer_allocator64.h File sanitizer_common/sanitizer_allocator64.h (right): http://codereview.appspot.com/6478053/diff/1/sanitizer_common/sanitizer_allocator64.h#newcode151 sanitizer_common/sanitizer_allocator64.h:151: ...
12 years, 5 months ago
(2012-08-24 08:17:44 UTC)
#3
On Fri, Aug 24, 2012 at 12:17 PM, <kcc@google.com> wrote: > LGTM++ > My fault ...
12 years, 5 months ago
(2012-08-24 15:54:26 UTC)
#4
On Fri, Aug 24, 2012 at 12:17 PM, <kcc@google.com> wrote:
> LGTM++
> My fault that I left the FIXME unfixed.
>
>
> http://codereview.appspot.com/**6478053/diff/1/sanitizer_**
>
common/sanitizer_allocator64.h<http://codereview.appspot.com/6478053/diff/1/sanitizer_common/sanitizer_allocator64.h>
> File sanitizer_common/sanitizer_**allocator64.h (right):
>
> http://codereview.appspot.com/**6478053/diff/1/sanitizer_**
>
common/sanitizer_allocator64.**h#newcode151<http://codereview.appspot.com/6478053/diff/1/sanitizer_common/sanitizer_allocator64.h#newcode151>
> sanitizer_common/sanitizer_**allocator64.h:151: for (uptr i = 0; i < count
> && !region->free_list.empty(); i++) {
> region->free list has a size, so you don't need to empty() on every
> iteration.
> Also, if region->free_list has less than count chunks we want to
> preserve the old behavior.
> This can be done in a separate CL if you wish
>
Done in r162561.
>
> http://codereview.appspot.com/**6478053/diff/1/sanitizer_**
>
common/tests/sanitizer_**allocator64_test.cc<http://codereview.appspot.com/6478053/diff/1/sanitizer_common/tests/sanitizer_allocator64_test.cc>
> File sanitizer_common/tests/**sanitizer_allocator64_test.cc (right):
>
> http://codereview.appspot.com/**6478053/diff/1/sanitizer_**
>
common/tests/sanitizer_**allocator64_test.cc#newcode31<http://codereview.appspot.com/6478053/diff/1/sanitizer_common/tests/sanitizer_allocator64_test.cc#newcode31>
> sanitizer_common/tests/**sanitizer_allocator64_test.cc:**31:
> SCMap::MaxCached(i));
> please don't remove the old debug code, just append the new one.
>
>
http://codereview.appspot.com/**6478053/<http://codereview.appspot.com/6478053/>
>
Issue 6478053: Fixes to tsan allocator64
(Closed)
Created 12 years, 5 months ago by dvyukov
Modified 12 years, 5 months ago
Reviewers: kcc1
Base URL: https://llvm.org/svn/llvm-project/compiler-rt/trunk/lib/
Comments: 2