News for hackers. Stuff that matters.
Re:Implementing Your Own Garbage Collector in Java by anta40 on Thursday May 02, 2024 @03:23AM (#40233583)
I guess this is a sort of gentle introduction to "how GC works" for Java devs. For more realistic usage, perhaps poking the Boehm-Demers-Weiser or the likes is better, unless you want to hack the JVM code, because the GC API isn't exposed to developers.
Re:Implementing Your Own Garbage Collector in Java by xxs on Thursday May 02, 2024 @03:34AM (#40233651)
It lacks any concurrency handling, even though there is a section about it. The attempt to use some, e.g. RefCountedObject, performs a proper transgression - 'data' field being non-volatile and modified within a synchronized block but read outside.