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 tkelman committed Jun 6, 2015
1 parent 955d87e commit 50bea1d
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 50bea1d

Please sign in to comment.