-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Suraj N. Kurapati wrote:
> I applied this same technique to the previous example code (with
> Ruby interpreter inside a pthread. As expected, the cross-thread
> violation did not occur:

Unfortunately, this approach doesn't work for a larger program where
the Ruby thread creates so many Ruby objects that the garbage
collector is invoked---at which point the cross-thread violation occurs.

> 1. Is the Ruby "environment" running inside ruby_run_handshake()
> different from the Ruby "environment" running inside main()?

- From what I have observed, no.

> 3. If we create some Ruby arrays inside main(), will they be garbage
> collected by the Ruby "environment" inside the pthread? vice versa?

- From what I have observed, yes.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)

iD8DBQFEQxXTmV9O7RYnKMcRAjkmAKCLF5QU5Cr8z1cu/+YQxaeaThNDMwCeL/kq
BKkngBWON0GNzRYv19s3twY=
=DCO+
-----END PGP SIGNATURE-----