Skip to content

Commit 65b1312

Browse files
committed
Adding pin in jl_string_to_genericmemory
1 parent 4da969a commit 65b1312

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/genericmemory.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ JL_DLLEXPORT jl_genericmemory_t *jl_string_to_genericmemory(jl_value_t *str)
115115
m->ptr = jl_string_data(str);
116116
jl_genericmemory_data_owner_field(m) = str;
117117
OBJ_PIN(str);
118+
OBJ_PIN(m); // FIXME: without this pin, make test-Tar fail with stress copying
118119
return m;
119120
}
120121

0 commit comments

Comments
 (0)