Skip to content

Commit

Permalink
Fix possible access to fromspace in MVM_hll_set_config
Browse files Browse the repository at this point in the history
MVM_intcache_for may allocate, so better do it while config_hash is still
MVMROOTed.
  • Loading branch information
niner committed Apr 24, 2020
1 parent 62dc6c7 commit a39b63c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/hll.c
Expand Up @@ -152,9 +152,9 @@ MVMObject * MVM_hll_set_config(MVMThreadContext *tc, MVMString *name, MVMObject
check_config_key_reftype(tc, config_hash, "str_multidim_ref", str_multidim_ref,
config, MVM_STORAGE_SPEC_BP_STR, MVM_NATIVEREF_MULTIDIM);
set_max_inline_size(tc, config_hash, config);
});

MVM_intcache_for(tc, config->int_box_type);
MVM_intcache_for(tc, config->int_box_type);
});

return config_hash;
}
Expand Down

0 comments on commit a39b63c

Please sign in to comment.