[all-commits] [llvm/llvm-project] 2e838b: [libc] Fix aligned_alloc used in hermetic tests. (...

Alexey Samsonov via All-commits all-commits at lists.llvm.org
Thu Jul 30 10:30:00 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2e838bf84da94760fa49e132108e954a62815573
      https://github.com/llvm/llvm-project/commit/2e838bf84da94760fa49e132108e954a62815573
  Author: Alexey Samsonov <vonosmas at gmail.com>
  Date:   2026-07-30 (Thu, 30 Jul 2026)

  Changed paths:
    M libc/test/UnitTest/HermeticTestUtils.cpp

  Log Message:
  -----------
  [libc] Fix aligned_alloc used in hermetic tests. (#213041)

Use the provided alignment for the pointer to the returned
memory chunk instead of the size.

This fixes occasional segfaults in `hsearch` tests after
ce62aab97e58c52e6bb0972c49d6fd1aaa6a08a0, since
hash-table bitmask implementation uses SSE2 intrinsics with 16-byte
alignment.



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