[macruby-changes] [2956] MacRuby/trunk/include/ruby/ruby.h
source_changes at macosforge.org
source_changes at macosforge.org
Wed Nov 4 12:27:42 PST 2009
Revision: 2956
http://trac.macosforge.org/projects/ruby/changeset/2956
Author: lsansonetti at apple.com
Date: 2009-11-04 12:27:40 -0800 (Wed, 04 Nov 2009)
Log Message:
-----------
revert the GC_WB change
Modified Paths:
--------------
MacRuby/trunk/include/ruby/ruby.h
Modified: MacRuby/trunk/include/ruby/ruby.h
===================================================================
--- MacRuby/trunk/include/ruby/ruby.h 2009-11-04 19:58:58 UTC (rev 2955)
+++ MacRuby/trunk/include/ruby/ruby.h 2009-11-04 20:27:40 UTC (rev 2956)
@@ -1419,15 +1419,13 @@
#define GC_WB(dst, newval) \
do { \
void *nv = (void *)newval; \
- if (*(void **)dst != nv) { \
- if (!SPECIAL_CONST_P(nv)) { \
- if (!auto_zone_set_write_barrier(__auto_zone, \
- (const void *)dst, (const void *)nv)) { \
- rb_bug("destination %p isn't in the auto zone", dst); \
- } \
+ if (!SPECIAL_CONST_P(nv)) { \
+ if (!auto_zone_set_write_barrier(__auto_zone, \
+ (const void *)dst, (const void *)nv)) { \
+ rb_bug("destination %p isn't in the auto zone", dst); \
} \
- *(void **)dst = nv; \
} \
+ *(void **)dst = nv; \
} \
while (0)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20091104/bce9fffd/attachment.html>
More information about the macruby-changes
mailing list