Skip to content

Commit

Permalink
Fix bug in Pmc2c which always generate WriteBarrier even :manual_wb w…
Browse files Browse the repository at this point in the history
…as specified.
  • Loading branch information
bacek committed Jan 31, 2012
1 parent bf13f88 commit d57ea95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Parrot/Pmc2c/PMC.pm
Expand Up @@ -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) );
Expand Down

0 comments on commit d57ea95

Please sign in to comment.