Skip to content

Commit

Permalink
Remove misleading comment
Browse files Browse the repository at this point in the history
`caml_allc_custom_mem` cannot trigger finalization any longer.
  • Loading branch information
xavierleroy committed Jan 21, 2021
1 parent 9391cf4 commit 20e597d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion runtime/io.c
Original file line number Diff line number Diff line change
Expand Up @@ -505,7 +505,7 @@ static struct custom_operations channel_operations = {
CAMLexport value caml_alloc_channel(struct channel *chan)
{
value res;
chan->refcount++; /* prevent finalization during next alloc */
chan->refcount++;
res = caml_alloc_custom_mem(&channel_operations, sizeof(struct channel *),
sizeof(struct channel));
Channel(res) = chan;
Expand Down

0 comments on commit 20e597d

Please sign in to comment.