This is an archive of the discontinued LLVM Phabricator instance.

tsan: reset destination range in Java heap move
ClosedPublic

Authored by dvyukov on Sep 21 2021, 12:15 PM.

Details

Summary

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.

Diff Detail

Event Timeline

dvyukov requested review of this revision.Sep 21 2021, 12:15 PM
dvyukov created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptSep 21 2021, 12:15 PM
Herald added a subscriber: Restricted Project. · View Herald Transcript
vitalybuka accepted this revision.Sep 21 2021, 1:04 PM
vitalybuka added inline comments.
compiler-rt/lib/tsan/rtl/tsan_interface_java.cpp
136

internal_memset?

This revision is now accepted and ready to land.Sep 21 2021, 1:04 PM
dvyukov marked an inline comment as done.Sep 21 2021, 10:22 PM
This revision was landed with ongoing or failed builds.Sep 21 2021, 10:23 PM
This revision was automatically updated to reflect the committed changes.