Skip to content
This repository
Browse code

Fix bug in Pmc2c which always generate WriteBarrier even :manual_wb w…

…as specified.
  • Loading branch information...
commit d57ea9535f2a8a26f3f40daf9a8c3964dce73df5 1 parent bf13f88
Vasily Chekalkin authored January 31, 2012

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  lib/Parrot/Pmc2c/PMC.pm
2  lib/Parrot/Pmc2c/PMC.pm
@@ -745,7 +745,7 @@ sub post_method_gen {
745 745
                          split (/,/, $method->parameters);
746 746
         $body .= $method->full_method_name($self->name) . "_orig($parameters);\n";
747 747
 
748  
-        $body .= "PARROT_GC_WRITE_BARRIER(interp, _self);\n";
  748
+        $body .= "PARROT_GC_WRITE_BARRIER(interp, _self);\n" unless $self->vtable_method_has_manual_wb($method->name);
749 749
         $body .= "return result;" if $need_result;
750 750
 
751 751
         $method->body(Parrot::Pmc2c::Emitter->text($body) );

0 notes on commit d57ea95

Please sign in to comment.
Something went wrong with that request. Please try again.