1
0
Fork 0
mirror of https://github.com/rubyjs/therubyracer synced 2023-03-27 23:21:42 -04:00
Commit graph

6 commits

Author SHA1 Message Date
Charles Lowell
8ec7ba11e7 only use 'ref' gem for MRI 2012-08-11 14:22:22 -05:00
Charles Lowell
1a93c34b07 remove WeakRef from the equation
It turns out that the Ruby stdlib WeakRef class is
completely broken. 

http://bugs.ruby-lang.org/issues/4168

While it is fixed in trunk, it is not useable, so
as a temporary measure, use the `ref` gem as a 
dependency. It appears to be both faster and more
correct.
2012-06-20 04:35:40 -05:00
Charles Lowell
87efe139e9 avoid potential race condition.
in between the weakref_alive? check and the actual
dereference via `__getobj__` the weak reference
could have been collected. It's better to just go
ahead and do the deref. If it throws an error,
then we know it didn't work.
2012-06-19 08:33:48 -05:00
Charles Lowell
f65e3261a5 extract proc conversion into generic 'code' conversion 2012-06-16 04:56:49 -05:00
Charles Lowell
476367a133 use weakcell to manage template reference. 2012-06-12 03:51:07 -05:00
Charles Lowell
683e525902 embed objects, call their methods. 2012-06-11 07:14:00 -05:00