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

Vitaly Buka via All-commits all-commits at lists.llvm.org
Sun Sep 6 00:22:43 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: b11db3606ca180521f8400aed730281108b350b4
      https://github.com/llvm/llvm-project/commit/b11db3606ca180521f8400aed730281108b350b4
  Author: Vitaly Buka <vitalybuka at google.com>
  Date:   2020-09-06 (Sun, 06 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