# Need tester: Toggle references

**URL:** <https://www.ruby-forum.com/t/need-tester-toggle-references/203707>\
**Category:** Ruby-Gnome 2\
**Created:** [February 25, 2011, 1:48pm UTC](https://www.ruby-forum.com/t/need-tester-toggle-references/203707 "2011-02-25T13:48:38Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![dubstep](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/cdc98d/32.png) [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Post date:** [February 25, 2011, 1:48pm UTC](https://www.ruby-forum.com/t/need-tester-toggle-references/203707/1 "2011-02-25T13:48:38Z")

</div>

Hi,

I want to import those patches but they will be tested  
before importing because they changes core mechanism:

[#3012947] Toggle references  
[Ruby-GNOME 2 / Bugs / #144 Toggle references](https://sourceforge.net/tracker/?func=detail&aid=3012947&group_id=53614&atid=470969)

> Here are two patches to use toggle references to manage  
> gobjects instead of trying to walk the hierarchy of  
> containers to discover them all. I think this could be  
> more efficient and robust and it makes it easier to  
> implement wrappers for new toolkits. This is similar to  
> how gjs works as far as I can tell.

Could someone try the patches with your applications and/or  
sample programs in Ruby-GNOME2. We need to confirm that  
those patches don’t crash your applications and leak memory.  
(We also need to confirm efficiency?)

## Thanks,

kou

---

<div class="post-metadata">

**Author:** ![Kouhei\_S](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/f4b2a3/32.png) [@Kouhei\_S](https://www.ruby-forum.com/u/Kouhei_S)\
**Post date:** [February 26, 2011, 5:35am UTC](https://www.ruby-forum.com/t/need-tester-toggle-references/203707/2 "2011-02-26T05:35:49Z")

</div>

2011/2/25 Kouhei S. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid):

> > more efficient and robust and it makes it easier to  
> > Thanks,  
> > ruby-gnome2-devel-en mailing list  
> > removed\_email\_address@domain.invalid  
> > [ruby-gnome2-devel-en List Signup and Options](https://lists.sourceforge.net/lists/listinfo/ruby-gnome2-devel-en)

Hi.  
Patches cannot be applyed as they are since a lot of paths were  
modified.  
It seems that glib2/ext/glib2/rbgobj\_object.c was also modified since  
I have some warning :  
patching file glib2/ext/glib2/rbgobj\_object.c  
Hunk #1 succeeded at 23 with fuzz 1.  
Hunk #2 succeeded at 38 (offset -1 lines).  
Hunk #3 succeeded at 110 (offset -5 lines).  
Hunk #4 succeeded at 197 with fuzz 2 (offset -11 lines).  
Hunk #5 succeeded at 803 (offset -36 lines).

…

Neverless I try the patched files. It seems to works but I just run a  
application and quits.

–  
Vincent C.

---

<div class="post-metadata">

**Author:** ![Kouhei\_S](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/f4b2a3/32.png) [@Kouhei\_S](https://www.ruby-forum.com/u/Kouhei_S)\
**Post date:** [March 3, 2011, 1:48pm UTC](https://www.ruby-forum.com/t/need-tester-toggle-references/203707/3 "2011-03-03T13:48:42Z")

</div>

Hi,

In [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
“Re: [ruby-gnome2-devel-en] Need tester: Toggle references” on Sat, 26  
Feb 2011 05:35:15 +0100,  
Vincent C. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> > > how gjs works as far as I can tell.  
> > > I have some warning :  
> > > application and quits.  
> > > Thanks for trying it.  
> > > The patch is related to GC. So we need to test it with  
> > > application that runs many GC…

## Thanks,

kou

---

<div class="post-metadata">

**Author:** ![Kouhei\_S](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/f4b2a3/32.png) [@Kouhei\_S](https://www.ruby-forum.com/u/Kouhei_S)\
**Post date:** [March 3, 2011, 5:39pm UTC](https://www.ruby-forum.com/t/need-tester-toggle-references/203707/4 "2011-03-03T17:39:40Z")

</div>

2011/3/3 Kouhei S. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid):

> > >

[https://sourceforge.net/tracker/?func=detail&aid=3012947&group\_id=53614&atid=470969](https://sourceforge.net/tracker/?func=detail&aid=3012947&group_id=53614&atid=470969)

> > > those patches don’t crash your applications and leak memory.  
> > > Hunk #4 succeeded at 197 with fuzz 2 (offset -11 lines).

With my applications GC is unlikely to be called on Gtk objects…

It would be easier to find testers if the patch could be apply more  
easily. Can Neil R. submit a new version of this patch ?

> insights. [Best Open Source Mac Front-Ends 2023](http://p.sf.net/sfu/splunk-dev2dev)
> 
> * * *
> 
> ruby-gnome2-devel-en mailing list  
> removed\_email\_address@domain.invalid  
> [ruby-gnome2-devel-en List Signup and Options](https://lists.sourceforge.net/lists/listinfo/ruby-gnome2-devel-en)

–  
Vincent C.
