[all-commits] [llvm/llvm-project] 8b8be6: [Asan] Cleanup atomic usage in allocator

Vitaly Buka via All-commits all-commits at lists.llvm.org
Thu Sep 3 14:22:43 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 8b8be6f38ab568d40869205389a002f32f6558a2
      https://github.com/llvm/llvm-project/commit/8b8be6f38ab568d40869205389a002f32f6558a2
  Author: Vitaly Buka <vitalybuka at google.com>
  Date:   2020-09-03 (Thu, 03 Sep 2020)

  Changed paths:
    M compiler-rt/lib/asan/asan_allocator.cpp

  Log Message:
  -----------
  [Asan] Cleanup atomic usage in allocator

There are no know bugs related to this, still it may fix some latent ones.
Main concerns with preexisting code:
1. Inconsistent atomic/non-atomic access to the same field.
2. Assumption that bitfield chunk_state is always the first byte without
    even taking into account endianness.

Reviewed By: morehouse

Differential Revision: https://reviews.llvm.org/D86917




More information about the All-commits mailing list