Skip to content

Commit 367a3ca

Browse files
committed
push into pinned_objects
1 parent 5180f3b commit 367a3ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ast.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -802,7 +802,7 @@ static value_t julia_to_scm_(jl_ast_context_t *ctx, jl_value_t *v, int check_val
802802
{
803803
// The following code will take internal pointers to v's fields. We need to make sure
804804
// that v will not be moved by GC.
805-
OBJ_PIN(v);
805+
arraylist_push(&ctx->pinned_objects, v);
806806
value_t retval;
807807
fl_context_t *fl_ctx = &ctx->fl;
808808
if (julia_to_scm_noalloc1(fl_ctx, v, &retval))

0 commit comments

Comments
 (0)