[all-commits] [llvm/llvm-project] db2f87: tsan: reset destination range in Java heap move

Dmitry Vyukov via All-commits all-commits at lists.llvm.org
Tue Sep 21 22:23:40 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: db2f870fe3dcecc43c874ef571757d5aeac0569c
      https://github.com/llvm/llvm-project/commit/db2f870fe3dcecc43c874ef571757d5aeac0569c
  Author: Dmitry Vyukov <dvyukov at google.com>
  Date:   2021-09-22 (Wed, 22 Sep 2021)

  Changed paths:
    M compiler-rt/lib/tsan/rtl/tsan_interface_java.cpp
    M compiler-rt/test/tsan/java_move_overlap_race.cpp
    M compiler-rt/test/tsan/java_race_move.cpp

  Log Message:
  -----------
  tsan: reset destination range in Java heap move

Switch Java heap move to the new scheme required for the new tsan runtime.
Instead of copying the shadow we reset the destination range.
The new v3 trace contains addresses of accesses, so we cannot simply copy the shadow.
This can lead to false negatives, but cannot lead to false positives.

Depends on D110159.

Reviewed By: vitalybuka

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




More information about the All-commits mailing list