[all-commits] [llvm/llvm-project] 1a0121: [libc] Start slab search at number of allocated bits

Joseph Huber via All-commits all-commits at lists.llvm.org
Wed Jul 30 14:06:18 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 1a0121cbedc6bad7cf07cc9234fc8368db0dfbe3
      https://github.com/llvm/llvm-project/commit/1a0121cbedc6bad7cf07cc9234fc8368db0dfbe3
  Author: Joseph Huber <huberjn at outlook.com>
  Date:   2025-07-30 (Wed, 30 Jul 2025)

  Changed paths:
    M libc/src/__support/GPU/allocator.cpp

  Log Message:
  -----------
  [libc] Start slab search at number of allocated bits

Summary:
This patch changes the slab search to start at the number of allocated
bits. Previously we would randomly search, but this gives very good
performance when doing nothing but allocating, which is a common
configuration. This will degrade performance when mixing malloc and free
close to eachother as this is more likely to fail when the counter
starts decreasing.



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