Skip to content

Commit

Permalink
fixup! Fix analyzegc
Browse files Browse the repository at this point in the history
  • Loading branch information
staticfloat committed Oct 15, 2020
1 parent f5552f0 commit ec8e99f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/dump.c
Original file line number Diff line number Diff line change
Expand Up @@ -1127,6 +1127,7 @@ static int64_t write_dependency_list(ios_t *s, jl_array_t **udepsp, jl_array_t *
// Calculate Preferences hash for current package.
jl_value_t *prefs_hash = NULL;
jl_value_t *prefs_list = NULL;
JL_GC_PUSH1(&prefs_list);
if (jl_base_module) {
// Toplevel module is the module we're currently compiling, use it to get our preferences hash
jl_value_t * toplevel = (jl_value_t*)jl_get_global(jl_base_module, jl_symbol("__toplevel__"));
Expand All @@ -1141,6 +1142,7 @@ static int64_t write_dependency_list(ios_t *s, jl_array_t **udepsp, jl_array_t *
// call get_compiletime_prefs(__toplevel__)
jl_value_t *args[3] = {get_compiletime_prefs_func, (jl_value_t*)toplevel, NULL};
prefs_list = (jl_value_t*)jl_apply(args, 2);
JL_GC_PUSH(

// Call get_preferences_hash(__toplevel__, prefs_list)
args[0] = prefs_hash_func;
Expand Down Expand Up @@ -1172,6 +1174,7 @@ static int64_t write_dependency_list(ios_t *s, jl_array_t **udepsp, jl_array_t *
write_int32(s, 0);
write_uint64(s, 0);
}
JL_GC_POP(); // for prefs_list

// write a dummy file position to indicate the beginning of the source-text
pos = ios_pos(s);
Expand Down

0 comments on commit ec8e99f

Please sign in to comment.