Skip to content

humanoid readable

Computer Programming for Humanoids

  • Home
  • About
  • My Projects

Tag: Garbage Collection

WeakAssQueue

LIFO queue that will drop old elements when needed.

The Idea

Have a Last-In-First-Out queue (implements java.util.Queue<E>) that will release old elements so that garbage collection (GC) can remove them. Like a cache that is a stack.

Continue reading “WeakAssQueue”
Author ClaudePosted on 2019-10-092020-09-21Categories My Projects, ProgrammingTags cache, data structure, Garbage Collection, lifo, queueLeave a comment on WeakAssQueue

How to replace Object.finalize()

There are many articles and blog posts about this topic but rarely are they complete. I’ll cover finalizers, Finalizer Guardian idiom, Dispose Pattern, PhantomReference and Cleanable.

Continue reading “How to replace Object.finalize()”
Author ClaudePosted on 2014-07-302021-11-17Categories Java, My Projects, ProgrammingTags cleanup, Dispose Pattern, Finalizer, Finalizer Guardian idiom, Garbage Collection3 Comments on How to replace Object.finalize()

Quick Search

Categories

  • About
  • Java
  • Java Interview Questions
  • Java Misnomers
  • Misconceptions
  • My Projects
  • Programming

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org
  • Home
  • About
  • My Projects
humanoid readable Proudly powered by WordPress