[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

[PATCH] [RUBY] GC fixes

From: Evan Phoenix <evan_at_fallingsnow.net>
Date: 2006-04-13 02:53:46 CEST

This patch fixes problems with the bindings when the garbage collector runs.
[[[

Track batons better so that they don't get lost when the garbage collector runs.

* subversion/bindings/swig/ruby/libsvn_swig_ruby/swigutil_rb.c
 (rb_pool_new) initialize the array to store batons that are in use.
 (svn_swig_rb_make_baton) save every baton created into the current pool so
       there is always at least one reference to it.
 (svn_swig_rb_from_baton) check that a baton is still valid before
trying to use it.

]]]

--
When I do good, I feel good;  when I do bad, I feel bad,
and that is my religion.
    -- Abraham Lincoln (1809 - 1865)


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Received on Thu Apr 13 02:54:21 2006

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.