Skip to content

Fixed memory leak of Ruby arena objects.#8461

Merged
haberman merged 1 commit intoprotocolbuffers:3.15.xfrom
haberman:ruby-arena-memory-leak
Apr 7, 2021
Merged

Fixed memory leak of Ruby arena objects.#8461
haberman merged 1 commit intoprotocolbuffers:3.15.xfrom
haberman:ruby-arena-memory-leak

Conversation

@haberman
Copy link
Copy Markdown
Member

@haberman haberman commented Apr 7, 2021

In our Arena_free() function, we were freeing the memory from the
upb arena but we were failing to free the memory for the
Ruby arena object. This was causing every Ruby arena object
to leak: even though the objects were getting GC'd, the
underlying memory was not getting released.

Fixes: #8455 #8421

In our free() method, we were freeing the memory from the
upb arena but we were failing to free the memory for the
Ruby arena object. This was causing every Ruby arena object
to leak: even though the objects were getting GC'd, the
underlying memory was not getting released.
@haberman haberman requested a review from acozzette April 7, 2021 17:34
@haberman haberman changed the base branch from master to 3.15.x April 7, 2021 17:34
@google-cla google-cla Bot added the cla: yes label Apr 7, 2021
@google-cla google-cla Bot added the cla: yes label Apr 7, 2021
Copy link
Copy Markdown

@Visva92 Visva92 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Memory Leak in ruby gem version 3.15.3 and above (including the latest 3.15.7)

4 participants