Skip to content

RootSprout/heaps

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

malloc and tcache Demo

This is a simple C program to demonstrate dynamic memory allocation and tcache behavior in glibc.

Features

  • Allocates and frees memory using malloc and free.
  • Shows how freed chunks are reused by tcache for faster allocation.
  • Demonstrates multiple allocations and reuses of memory blocks of different sizes.

How to Run

gcc -g heap.c -o h
./h

gdb ./h
break main
run
heap arenas
heap chunks
heap bins

References

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages