From: mquinson Date: Thu, 4 Mar 2010 14:56:05 +0000 (+0000) Subject: Do not share the same argument container for every processes X-Git-Tag: SVN~547 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/3a9b798b57c4829af0d66681aa7ca29e401aa9f8?hp=c76bb7ae607ab6035990371a23c9e2091d2d3161 Do not share the same argument container for every processes git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@7192 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- diff --git a/src/bindings/ruby/rb_application_handler.c b/src/bindings/ruby/rb_application_handler.c index 66d46d90bf..02802e1034 100644 --- a/src/bindings/ruby/rb_application_handler.c +++ b/src/bindings/ruby/rb_application_handler.c @@ -85,17 +85,11 @@ static void rb_process_create_with_args(VALUE fct_name,VALUE arguments,VALUE pro void rb_application_handler_on_start_document(void) { - args = rb_ary_new(); // Max lenght = 16 ?! - prop = rb_ary_new(); } void rb_application_handler_on_end_document(void) { - // FIXME: probably leaking - //application_handler_class = Qnil; - args = Qnil; - prop = Qnil; - function_name = Qnil; - host_name = Qnil; + + //application_handler_class = Qnil; FIXME: probably leaking } @@ -103,7 +97,10 @@ void rb_application_handler_on_begin_process(void) { host_name = rb_str_new2(A_surfxml_process_host); function_name = rb_str_new2(A_surfxml_process_function); - + + args = rb_ary_new(); // Max lenght = 16 ?! + prop = rb_ary_new(); + } void rb_application_handler_on_process_arg(void) { @@ -113,7 +110,6 @@ void rb_application_handler_on_process_arg(void) { } void rb_application_handler_on_property(void) { - // FIXME: properties are never added to the ruby process VALUE id = rb_str_new2(A_surfxml_prop_id); VALUE val = rb_str_new2(A_surfxml_prop_value); int i_id = NUM2INT (id);