Skip to content

Commit

Permalink
Merge pull request ocaml#12994 from tmcgilchrist/remove_drop_continua…
Browse files Browse the repository at this point in the history
…tion

Remove un-used and unsafe caml_drop_continuation
  • Loading branch information
gasche authored Feb 28, 2024
2 parents 33502d6 + f55c821 commit db150fc
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 7 deletions.
3 changes: 3 additions & 0 deletions Changes
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,9 @@ _______________
(Chris Casinghino and Florian Angeletti, review by Florian Angeletti and
Richard Eisenberg)

- #12994: Remove un-used and unsafe caml_drop_continuation
(Tim McGilchrist, reviewed by Gabriel Scherer and Miod Vallat)

OCaml 5.2.0
------------

Expand Down
Binary file modified boot/ocamlc
Binary file not shown.
Binary file modified boot/ocamllex
Binary file not shown.
7 changes: 0 additions & 7 deletions runtime/fiber.c
Original file line number Diff line number Diff line change
Expand Up @@ -659,13 +659,6 @@ void caml_continuation_replace(value cont, struct stack_info* stk)
(void)b; /* squash unused warning */
}

CAMLprim value caml_drop_continuation (value cont)
{
struct stack_info* stk = Ptr_val(caml_continuation_use(cont));
caml_free_stack(stk);
return Val_unit;
}

static const value * _Atomic caml_unhandled_effect_exn = NULL;
static const value * _Atomic caml_continuation_already_resumed_exn = NULL;

Expand Down

0 comments on commit db150fc

Please sign in to comment.