https://github.com/ujjwal-kr/gc-experiment
Garbage collector, C++, 2 hours.
https://github.com/ujjwal-kr/gc-experiment
cpp garbage-collection
Last synced: about 2 months ago
JSON representation
Garbage collector, C++, 2 hours.
- Host: GitHub
- URL: https://github.com/ujjwal-kr/gc-experiment
- Owner: ujjwal-kr
- License: gpl-3.0
- Created: 2023-05-13T16:15:30.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2023-05-15T04:12:29.000Z (about 3 years ago)
- Last Synced: 2025-03-05T00:29:03.285Z (over 1 year ago)
- Topics: cpp, garbage-collection
- Language: C++
- Homepage:
- Size: 23.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# gc-experiment
Ok and?
https://www.cs.odu.edu/~zeil/cs330/f13/Public/garbageCollection/garbageCollection-htmlsu5.html
## This is not cool
Collecting garbage was never the point. The algorithm is pretty simple, it marks and sweeps the objects added after marking. The main aim is to know when to run the GC, what to mark, and how to allocate memory or free it. How to scan the stack to find pointers to the heap? How to effectively use the freed space in the next malloc? A lot of questions to be answered. I never read the glibc malloc or free implementation, and I am not gonna read it.