You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, this project looks exciting. I'm a long-time therubyracer user and I use it for long-running contexts. Memory management is an open issue with trr, see issue.
So I'd like to know, is there any reason to believe that mini_racer might do better than trr at conserving memory?
Activity
SamSaffron commentedon May 19, 2016
Yes mini_racer is designed to hold almost no refs between VMs. The only refs allowed are an array of procs it is allowed to call.
By avoiding transparently holding references and weak refs to objects between VMS (everything is moved by copy) risk of memory issues goes way down.
koops commentedon May 19, 2016
Thanks, that's good news. One other, related thing: do you plan on supposing dispose on a context?
SamSaffron commentedon May 19, 2016
Yes going to add a mechanism to run a context in a block and dispose of all
v8 resources once block is over "burning" the context,
Also maybe simply add a reset method to clear
On Friday, 20 May 2016, koops notifications@github.com wrote:
Merge pull request rubyjs#5 from sqreen/alpine
Fix shutdown crashes, make cleanup threads detached
Fix a use-after-free and a shutdown crash (#162)
FEATURE: warn more loudly about forked environments