The Artima Developer Community
Sponsored Link

Ruby Buzz Forum
Big JRuby Memleak Fixed

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Obie Fernandez

Posts: 608
Nickname: obie
Registered: Aug, 2005

Obie Fernandez is a Technologist for ThoughtWorks
Big JRuby Memleak Fixed Posted: Apr 11, 2007 10:59 PM
Reply to this message Reply

This post originated from an RSS feed registered with Ruby Buzz by Obie Fernandez.
Original Post: Big JRuby Memleak Fixed
Feed Title: Obie On Rails (Has It Been 9 Years Already?)
Feed URL: http://jroller.com/obie/feed/entries/rss
Feed Description: Obie Fernandez talks about life as a technologist, mostly as ramblings about software development and consulting. Nowadays it's pretty much all about Ruby and Ruby on Rails.
Latest Ruby Buzz Posts
Latest Ruby Buzz Posts by Obie Fernandez
Latest Posts From Obie On Rails (Has It Been 9 Years Already?)

Advertisement

If you're interested in the progress of JRuby, go check out this message from Charles about a big memory-leak fixed yesterday.

...the big problem. Since there's only a single DynamicScope stack, all DynamicScope instances created (even the scopes created for a new method call in a new frame) always held a reference to a previous DynamicScope. In the case of a method call's top-level scope, it referenced the *previous frame's* DynamicScope. This caused any closures created in that method's lifespan to hold references to *every single scope in the call stack up to that point*. Ouchie. Couple that with stuffing those Proc instances into ObjectSpace for finalization, and you've got a mega leak...essentially leaking every reference in every frame leading up to that Proc.

So, what happens once all these big problems get ironed out? Damn...

Read: Big JRuby Memleak Fixed

Topic: Sort your files the easy way - with Ruby! Previous Topic   Next Topic Topic: Embracing Failure, part 1

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use