[all-commits] [llvm/llvm-project] 587199: address CR: simplify and comment the bin computati...

Schrodinger ZHU Yifan via All-commits all-commits at lists.llvm.org
Mon Aug 3 13:42:52 PDT 2026


  Branch: refs/heads/users/schrodingerzhu/libc-use-tlsf-freestore
  Home:   https://github.com/llvm/llvm-project
  Commit: 58719932bd123e6319feaaf49f36f36a8f6008fd
      https://github.com/llvm/llvm-project/commit/58719932bd123e6319feaaf49f36f36a8f6008fd
  Author: Yifan Zhu <yfzhu at google.com>
  Date:   2026-08-03 (Mon, 03 Aug 2026)

  Changed paths:
    M libc/src/__support/freestore.h

  Log Message:
  -----------
  address CR: simplify and comment the bin computation logic

TAG=agy
CONV=e64ff65b-c845-4136-9173-da6f615197ee


  Commit: 70ec06b64a0a738eb7d5759628ca63611e4cb709
      https://github.com/llvm/llvm-project/commit/70ec06b64a0a738eb7d5759628ca63611e4cb709
  Author: Yifan Zhu <yfzhu at google.com>
  Date:   2026-08-03 (Mon, 03 Aug 2026)

  Changed paths:
    M libc/src/__support/freestore.h
    M libc/test/src/__support/freestore_test.cpp

  Log Message:
  -----------
  [libc] clean up UBs by using explicit storage

TAG=agy
CONV=e64ff65b-c845-4136-9173-da6f615197ee


  Commit: 34242a243e748c2d5631818c96b1eb352c5d8de2
      https://github.com/llvm/llvm-project/commit/34242a243e748c2d5631818c96b1eb352c5d8de2
  Author: Yifan Zhu <yfzhu at google.com>
  Date:   2026-08-03 (Mon, 03 Aug 2026)

  Changed paths:
    M libc/src/__support/freestore.h

  Log Message:
  -----------
  address CR


  Commit: 34553ae4893e908c99912e258a6a06ae95b1dbbc
      https://github.com/llvm/llvm-project/commit/34553ae4893e908c99912e258a6a06ae95b1dbbc
  Author: Yifan Zhu <yfzhu at google.com>
  Date:   2026-08-03 (Mon, 03 Aug 2026)

  Changed paths:
    M libc/src/__support/CMakeLists.txt
    M libc/src/__support/freestore.h
    A libc/src/__support/tlsf_table.h
    M libc/test/src/__support/CMakeLists.txt
    M libc/test/src/__support/freestore_test.cpp
    A libc/test/src/__support/tlsf_table_test.cpp

  Log Message:
  -----------
  [libc] separate out TLSFTable to its own header and add unit tests

Address code review comments:
- Extract TLSFTable abstraction into tlsf_table.h to encapsulate occupancy bitmaps and bin sizing formulas without changing core allocator algorithm logic or O(1) fast paths.
- Add exhaustive unit tests in tlsf_table_test.cpp.
- Remove redundant {} default member initializers from structured list classes.
- Format heap-related files with clang-format.

TAG=agy
CONV=e64ff65b-c845-4136-9173-da6f615197ee


Compare: https://github.com/llvm/llvm-project/compare/e1871dcedc18...34553ae4893e

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