Skip to content

Commit

Permalink
undo san annotation removal
Browse files Browse the repository at this point in the history
  • Loading branch information
DmitriyMusatkin committed Oct 3, 2023
1 parent 94a8ffe commit 78d0b3c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion source/allocator_sba.c
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@ static void *s_sba_alloc(struct small_block_allocator *sba, size_t size) {
return aws_mem_acquire(sba->allocator, size);
}

static void s_sba_free(struct small_block_allocator *sba, void *addr) {
AWS_SUPPRESS_ASAN AWS_SUPPRESS_TSAN static void s_sba_free(struct small_block_allocator *sba, void *addr) {
if (!addr) {
return;
}
Expand Down
6 changes: 3 additions & 3 deletions tests/alloc_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ static int s_sba_threaded_allocs_and_frees(struct aws_allocator *allocator, void
}
AWS_TEST_CASE(sba_threaded_allocs_and_frees, s_sba_threaded_allocs_and_frees)

static void s_sba_threaded_realloc_worker(void *user_data) {
static void s_threaded_realloc_worker(void *user_data) {
struct allocator_thread_test_data *thread_data = user_data;
struct aws_allocator *test_allocator = thread_data->test_allocator;
void *alloc = NULL;
Expand Down Expand Up @@ -215,7 +215,7 @@ static int s_sba_threaded_reallocs(struct aws_allocator *allocator, void *ctx) {

struct aws_allocator *sba = aws_small_block_allocator_new(allocator, true);

s_thread_test(allocator, s_sba_threaded_realloc_worker, sba);
s_thread_test(allocator, s_threaded_realloc_worker, sba);

aws_small_block_allocator_destroy(sba);

Expand Down Expand Up @@ -331,7 +331,7 @@ static int s_default_threaded_reallocs(struct aws_allocator *allocator, void *ct
(void)ctx;
srand(15);

s_thread_test(allocator, s_sba_threaded_realloc_worker, allocator);
s_thread_test(allocator, s_threaded_realloc_worker, allocator);

return 0;
}
Expand Down

0 comments on commit 78d0b3c

Please sign in to comment.