Skip to content

Commit

Permalink
Missing gc root
Browse files Browse the repository at this point in the history
in interpreted global var assignment. Fix JuliaLang#11313.
  • Loading branch information
carnaval authored and mbauman committed Jun 5, 2015
1 parent baf79fa commit c445fba
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/interpreter.c
Original file line number Diff line number Diff line change
Expand Up @@ -233,8 +233,10 @@ static jl_value_t *eval(jl_value_t *e, jl_value_t **locals, size_t nl, size_t ng
return rhs;
}
}
JL_GC_PUSH1(&rhs);
jl_binding_t *b = jl_get_binding_wr(jl_current_module, (jl_sym_t*)sym);
jl_checked_assignment(b, rhs);
JL_GC_POP();
return rhs;
}
else if (ex->head == new_sym) {
Expand Down

0 comments on commit c445fba

Please sign in to comment.