Skip to content

Implementing Your Own Garbage Collector in Java: Memory Allocation, Reference Tracking, and GC Algorithms

Article DiscussionsSudoSecurity · · 1 min read

Created
30 Apr 2023
Last reply
over 3 years ago
Replies
0
Views
0
Reactions
0

Discussion of the blog article Implementing Your Own Garbage Collector in Java: Memory Allocation, Reference Tracking, and GC Algorithms.

This guide walks through designing a fixed-size memory pool, implementing reference counting with cycle detection, coding Mark & Sweep, Mark & Compact, and Copying GC algorithms, and wiring root object identification and sweeping into a working CustomGarbageCollector class.

Read the full article →

Discussion thread — share findings, corrections and follow-ups below.

0 replies

    Post a comment

    Join the discussion to share your thoughts.

    Sign in