Skip to content

Commit c98486e

Browse files
committed
Use short reference for monitors of dead processes
1 parent d992def commit c98486e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/libAtomVM/nifs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4456,7 +4456,7 @@ static term nif_erlang_monitor(Context *ctx, int argc, term argv[])
44564456
RAISE_ERROR(OUT_OF_MEMORY_ATOM);
44574457
}
44584458
uint64_t ref_ticks = globalcontext_get_ref_ticks(ctx->global);
4459-
term ref = term_make_process_reference(ctx->process_id, ref_ticks, &ctx->heap);
4459+
term ref = term_from_ref_ticks(ref_ticks, &ctx->heap);
44604460
term down_message_tuple = term_alloc_tuple(5, &ctx->heap);
44614461
term_put_tuple_element(down_message_tuple, 0, DOWN_ATOM);
44624462
term_put_tuple_element(down_message_tuple, 1, ref);

0 commit comments

Comments
 (0)