Skip to content
RootSproutPublic

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

11 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

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

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages