The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning. Learn more →
Top 12 malloc Open-Source Projects
-
hardened_malloc
Hardened allocator designed for modern systems. It has integration into Android's Bionic libc and can be used externally with musl and glibc as a dynamic library for use on other Linux-based platforms. It will gain more portability / integration over time.
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
-
Hoard
The Hoard Memory Allocator: A Fast, Scalable, and Memory-efficient Malloc for Linux, Windows, and Mac.
-
lwmem
Lightweight dynamic memory manager library for embedded systems with memory constraints. It implements malloc, calloc, realloc and free functions
-
o1heap
Constant-complexity deterministic memory allocator (heap) for hard real-time high-integrity embedded systems. There is very little activity because the project is finished and does not require further changes.
-
metamalloc
Single header template based general purpose memory allocation library for Linux & Windows. Repo also provides a live http memory profiler as a separate single-header with no dependencies
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
-
memorymanager
A simple, thread-safe memory manager for 64bit C++ applications and games. Focus is on preventing heap fragmentation in the absence of good virtual memory management, at the cost of wasting some memory. It works by globally overriding the new and delete operators.
-
Listlib
Listlib is a simple, unsafe, slow and easy to use library that implements a heap-allocated vector of any type
https://github.com/microsoft/snmalloc#snmalloc mentions two biggest motivations as:
> Allocations on one thread are freed by a different thread
I can imagine one use-case for this: a task that is scheduled from and executed by a work-stealing thread-pool can allocate memory in one thread but by design there's no guarantee that the memory will be necessarily freed from that exact thread. Would that be a good use-case for snmalloc?
> Deallocations occur in large batches
This sounds much like a bump allocator use-case but which can do this exact thing by calling a single munmap(addr, len) and unmap multiple allocations all at once.
Project mention: WhatsApp forces Pegasus spyware maker to share its secret code | news.ycombinator.com | 2024-03-02
Project mention: Metamalloc: Single-header template based general purpose memory allocator lib | news.ycombinator.com | 2024-01-16
Project mention: How to manage a buffer containing objects of varying size? For sparse chunk loading/unloading | /r/Cplusplus | 2023-06-16the only person to have suggested a solution linked me this: https://github.com/schulkinator/memorymanager
malloc related posts
- WhatsApp forces Pegasus spyware maker to share its secret code
- EncroChat
- Popular XMPP App "Conversations" Removed from PlayStore by Google
- LineageOS is currently installed on 1.5M Android devices
- Apple Announces Changes to iOS, Safari, and the App Store in the European Union
- Metamalloc: Single-header template based general purpose memory allocator lib
- No new iPhone? No secure iOS: Looking at an unfixed iOS vulnerability
-
A note from our sponsor - WorkOS
workos.com | 29 Apr 2024
Index
What are some of the best open-source malloc projects? This list will help you:
Project | Stars | |
---|---|---|
1 | snmalloc | 1,488 |
2 | hardened_malloc | 1,158 |
3 | Hoard | 1,058 |
4 | Heap-Layers | 369 |
5 | lwmem | 274 |
6 | o1heap | 215 |
7 | metamalloc | 100 |
8 | mm-go | 84 |
9 | memorymanager | 70 |
10 | go-interface-values | 60 |
11 | RTSHA | 9 |
12 | Listlib | 1 |
Sponsored