Skip to content
Browse files

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

…as specified.
  • Loading branch information...
1 parent bf13f88 commit d57ea9535f2a8a26f3f40daf9a8c3964dce73df5 @bacek bacek committed Jan 31, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/Parrot/Pmc2c/PMC.pm
View
2 lib/Parrot/Pmc2c/PMC.pm
@@ -745,7 +745,7 @@ sub post_method_gen {
split (/,/, $method->parameters);
$body .= $method->full_method_name($self->name) . "_orig($parameters);\n";
- $body .= "PARROT_GC_WRITE_BARRIER(interp, _self);\n";
+ $body .= "PARROT_GC_WRITE_BARRIER(interp, _self);\n" unless $self->vtable_method_has_manual_wb($method->name);
$body .= "return result;" if $need_result;
$method->body(Parrot::Pmc2c::Emitter->text($body) );

0 comments on commit d57ea95

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