News for hackers. Stuff that matters.
Re:Implementing Your Own Garbage Collector in Java by xxs on Thursday May 02, 2024 @01:08AM (#40232889)
One note - if you ever have to write middle ware (or a garbage collector), avoid any code calling custom implementations like hashCode/equals. A variant of Collections.newSetFromMap(IdentityHashMap...) should replaces all Sets in the example. That doesn't address any concurrency issues, of course.

There are no comments on this comment yet.