All original content is created in Ukrainian. Not all content has been translated yet. Some posts may only be available in Ukrainian.Learn more

ZOMBIE in Ruby. What is it?

Post cover: ZOMBIE in Ruby. What is it?
This content has been automatically translated from Ukrainian.
Ruby is a programming language. Everything is clear here. In the code of this language, you may encounter the term - ZOMBIE. What does it mean in the context of Ruby code?
ZOMBIE is a term used in the context of memory management to describe an object that has already been marked for destruction, but its finalizer has not yet been executed. This means that the object is already "dead" (i.e., its memory can be freed), but it still has some "viability" since the finalizer may perform additional actions before the object is completely destroyed.
Finalizer is a special method in many programming languages that is automatically called before an object is destroyed by the garbage collector (Garbage Collector). The method is usually used to perform necessary cleanup operations, such as releasing resources that the object used during its lifetime.
So, a Zombie is an object that has been marked for destruction, but we are still waiting for the finalizer to clean up the memory before the object is finally destroyed.

This post doesn't have any additions from the author yet.

Apr 15, '24 17:50

What is entropy?

meme code
meme code@memecode
Apr 15, '24 18:11

What are HTTP Client Hints?

meme code
meme code@memecode
Apr 18, '24 05:27

We fix ActiveRecord::ProtectedEnvironmentError in the local environment.

meme code
meme code@memecode
Apr 18, '24 06:06

Analyzing the PG::ObjectInUse error (Ruby on Rails)

meme code
meme code@memecode
Apr 27, '24 09:29

What are CC and BCC in emails? What are they for and how to use them?

meme code
meme code@memecode
What is a prompt and prompt engineering?
May 3, '24 12:08

What is a prompt and prompt engineering?

meme code
meme code@memecode
May 3, '24 13:13

What is a Garbage Collector in Ruby? How does it work and what is GC needed for?

meme code
meme code@memecode
A bit about Ruby implementation types (CRuby (MRI), JRuby, Rubinius, TruffleRuby, mruby)
May 5, '24 12:36

A bit about Ruby implementation types (CRuby (MRI), JRuby, Rubinius, TruffleRuby, mruby)

meme code
meme code@memecode
May 7, '24 07:24

What is native machine code?

meme code
meme code@memecode
Enabling YJIT in Ruby 3.2.1 (Ruby on Rails)
May 8, '24 07:57

Enabling YJIT in Ruby 3.2.1 (Ruby on Rails)

meme code
meme code@memecode
May 9, '24 12:43

[Fix] Rails Admin - undefined local variable or method javascript_importmap_shim_nonce_configuration_tag

meme code
meme code@memecode
What is technical debt in IT projects?
May 13, '24 06:17

What is technical debt in IT projects?

meme code
meme code@memecode