Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit b90f1a2

Browse files
committedSep 12, 2016
hack in a fix to getting the right lambda for the incremental deserializer
fix #18449 (the real, non-buggy fix is in #18413 for v0.6-dev master)
1 parent 9c76c3e commit b90f1a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/gf.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ JL_DLLEXPORT jl_lambda_info_t *jl_specializations_get_linfo(jl_method_t *m, jl_t
122122
{
123123
JL_LOCK(&m->writelock);
124124
jl_typemap_entry_t *sf = jl_typemap_assoc_by_type(m->specializations, type, NULL, 1, /*subtype*/0, /*offs*/0);
125-
if (sf && jl_is_lambda_info(sf->func.value) && ((jl_lambda_info_t*)sf->func.value)->code != jl_nothing) {
125+
if (sf && jl_is_lambda_info(sf->func.value) && (!allow_exec || sf->func.linfo->code != jl_nothing)) {
126126
JL_UNLOCK(&m->writelock);
127127
return (jl_lambda_info_t*)sf->func.value;
128128
}

0 commit comments

Comments
 (0)
Please sign in to comment.