pub unsafe extern "C" fn logos_rt_list_own(
frame: *mut i64,
handle_slot: i64,
vec_slot: i64,
ptr_slot: i64,
len_slot: i64,
)Expand description
Copy-on-write: give the list in frame[handle_slot] its own registry-owned buffer — a copy of the
shared one — and re-plant the register’s handle and pin triple on it. The native twin of the VM’s
first write to a shared list; the original (a parameter’s, or a caller’s through a passthrough) is
untouched from here on.
§Safety
frame[handle_slot] must be a live *mut Vec<i64>.