Skip to content

Commit

Permalink
hack in a fix to getting the right lambda for the incremental deseria…
Browse files Browse the repository at this point in the history
…lizer

fix #18449
(the real, non-buggy fix is in #18413 for v0.6-dev master)
  • Loading branch information
vtjnash committed Sep 12, 2016
1 parent af5f388 commit 751490d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gf.c
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ JL_DLLEXPORT jl_lambda_info_t *jl_specializations_get_linfo(jl_method_t *m, jl_t
{
JL_LOCK(&m->writelock);
jl_typemap_entry_t *sf = jl_typemap_assoc_by_type(m->specializations, type, NULL, 1, /*subtype*/0, /*offs*/0);
if (sf && jl_is_lambda_info(sf->func.value) && ((jl_lambda_info_t*)sf->func.value)->code != jl_nothing) {
if (sf && jl_is_lambda_info(sf->func.value) && (!allow_exec || sf->func.linfo->code != jl_nothing)) {
JL_UNLOCK(&m->writelock);
return (jl_lambda_info_t*)sf->func.value;
}
Expand Down

0 comments on commit 751490d

Please sign in to comment.