[all-commits] [llvm/llvm-project] 956bab: [TSan] Add 2 test cases related to incomplete shad...

Kunqiu Chen via All-commits all-commits at lists.llvm.org
Wed Jun 25 00:23:16 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 956bab0381e90accdfd767aabe44b0c25055c87d
      https://github.com/llvm/llvm-project/commit/956bab0381e90accdfd767aabe44b0c25055c87d
  Author: Kunqiu Chen <camsyn at foxmail.com>
  Date:   2025-06-25 (Wed, 25 Jun 2025)

  Changed paths:
    A compiler-rt/test/tsan/java_heap_init2.cpp
    A compiler-rt/test/tsan/munmap_clear_shadow.c

  Log Message:
  -----------
  [TSan] Add 2 test cases related to incomplete shadow cleanup in unmap (#145472)

Once part of PR #144648, follow the reviewer's advice and split into
this separate PR.

`unmap` works at page granularity, but supports an arbitrary non-zero
size as an argument, which results in possible shadow undercleaning in
the existing TSan implementation when `size % kShadowCell != 0`.

This change introduces two test cases to verify the shadow cleaning
effect in `unmap`.

- java_heap_init2.cpp: Imitating java_heap_init cpp, verify the
incomplete cleaning of meta
- munmap_clear_shadow.c: verify the incomplete cleaning of shadow



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list