Hello,I've been taking a poke at ext/json for the last few days attempting to get JSON support working again. I've got it compiling but have run into an issue with memory management and the garbage collector that I've been unable to get past.
I've attached my current diff of changes to get JSON working. With this diff applied requiring json will crash with:
unknown: [BUG] destination 0x100feb300 isn't in the auto zoneI've tracked it down to ext/json/lib/json/common.rb line 59 (at least, it never gets past that line that I've seen)
self.state = generator::StateCommenting out this line gets further (require works and I can turn {"a" => 1} into JSON. Missing module_function causes JSON.parse to fail).
My test file is: puts "Requiring" require 'json' puts "Required" require 'pp' puts "to_json" a = {"a" => 1}.to_json puts "parse" pp JSON.parse(a) puts "done" Thoughts? Thanks, dan
json.diff
Description: Binary data
_______________________________________________ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel