Skip to content

Commit

Permalink
kernel: ensure our Julia types always have a super type
Browse files Browse the repository at this point in the history
  • Loading branch information
fingolfin committed Feb 7, 2020
1 parent a66ec38 commit 9466a69
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/julia_gc.c
Original file line number Diff line number Diff line change
Expand Up @@ -776,7 +776,7 @@ void InitBags(UInt initial_size, Bag * stack_bottom, UInt stack_align)
}
}
else {
gapobj_type = 0;
gapobj_type = jl_any_type;
}

JuliaTLS = jl_get_ptls_states();
Expand All @@ -793,10 +793,10 @@ void InitBags(UInt initial_size, Bag * stack_bottom, UInt stack_align)
(jl_value_t *)Module);
datatype_mptr = jl_new_foreign_type(
jl_symbol("MPtr"), Module, gapobj_type, MPtrMarkFunc, NULL, 1, 0);
datatype_bag = jl_new_foreign_type(jl_symbol("Bag"), Module, 0,
datatype_bag = jl_new_foreign_type(jl_symbol("Bag"), Module, jl_any_type,
BagMarkFunc, JFinalizer, 1, 0);
datatype_largebag =
jl_new_foreign_type(jl_symbol("LargeBag"), Module, 0,
jl_new_foreign_type(jl_symbol("LargeBag"), Module, jl_any_type,
BagMarkFunc, JFinalizer, 1, 1);

// export datatypes to Julia level
Expand Down

0 comments on commit 9466a69

Please sign in to comment.