Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1632)

Issue 6478053: Fixes to tsan allocator64 (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 8 months ago by dvyukov
Modified:
11 years, 7 months ago
Reviewers:
kcc1
CC:
llvm-commits_cs.uiuc.edu
Base URL:
https://llvm.org/svn/llvm-project/compiler-rt/trunk/lib/
Visibility:
Public.

Description

Deallocate: drain blocks to central cache if cached too much. Allocate: batch allocate fixed amount of blocks.

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+45 lines, -10 lines) Patch
M sanitizer_common/sanitizer_allocator64.h View 6 chunks +42 lines, -5 lines 1 comment Download
M sanitizer_common/tests/sanitizer_allocator64_test.cc View 1 chunk +3 lines, -5 lines 1 comment Download

Messages

Total messages: 4
dvyukov
Please review.
11 years, 8 months ago (2012-08-23 16:17:05 UTC) #1
dvyukov
On 2012/08/23 16:17:05, dvyukov wrote: > Please review. Number of cached blocks may be not ...
11 years, 8 months ago (2012-08-23 16:19:52 UTC) #2
kcc1
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: ...
11 years, 8 months ago (2012-08-24 08:17:44 UTC) #3
dvyukov
11 years, 8 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/>
>
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b