[macruby-changes] [5111] MacRuby/trunk/parse.y
source_changes at macosforge.org
source_changes at macosforge.org
Mon Jan 3 20:08:36 PST 2011
Revision: 5111
http://trac.macosforge.org/projects/ruby/changeset/5111
Author: lsansonetti at apple.com
Date: 2011-01-03 20:08:31 -0800 (Mon, 03 Jan 2011)
Log Message:
-----------
fix a missing write barrier
Modified Paths:
--------------
MacRuby/trunk/parse.y
Modified: MacRuby/trunk/parse.y
===================================================================
--- MacRuby/trunk/parse.y 2011-01-04 03:22:09 UTC (rev 5110)
+++ MacRuby/trunk/parse.y 2011-01-04 04:08:31 UTC (rev 5111)
@@ -9916,7 +9916,12 @@
struct lex_get_str_context *ctx = (struct lex_get_str_context *)
xmalloc(sizeof(struct lex_get_str_context));
GC_WB(&ctx->str, src);
- ctx->chars = chars; // FIXME need write barrier?
+ if (need_free) {
+ GC_WB(&ctx->chars, chars);
+ }
+ else {
+ ctx->chars = chars;
+ }
ctx->chars_len = chars_len;
parser->parser_lex_gets = lex_get_str;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20110103/02caba1f/attachment-0001.html>
More information about the macruby-changes
mailing list