4 ms·
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
by anta40 2y ago
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.
- xxs 2y agoIt 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.