[all-commits] [llvm/llvm-project] 3c2107: [NFC][libc][malloc] Refactor Block (#100445)
Daniel Thornburgh via All-commits
all-commits at lists.llvm.org
Thu Jul 25 11:24:01 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 3c210740649a538d2fc2432395f2ef41c56dc8b6
https://github.com/llvm/llvm-project/commit/3c210740649a538d2fc2432395f2ef41c56dc8b6
Author: Daniel Thornburgh <dthorn at google.com>
Date: 2024-07-25 (Thu, 25 Jul 2024)
Changed paths:
M libc/src/__support/block.h
M libc/src/__support/freelist_heap.h
M libc/test/src/__support/block_test.cpp
Log Message:
-----------
[NFC][libc][malloc] Refactor Block (#100445)
This decreases the surface area of the block implementation in
preparation for deeper changes to its implementation.
See #98096
- Remove dead member functions.
- Remove last() check from next(), as described in its comment.
- Rework object lifetimes such that only block headers are actually
considered live. This simplifies their implementation.
- The allocated storage becomes live at the outer call to malloc-family
functions via a special case in the C++ standard.
- Add asserts for flag properties required by the implementation.
- Remove static from member functions that don't invalidate the block.
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