Skip to content

Improve potentially used backtraces and discard unused backtraces - #7056

Draft
kit-ty-kate wants to merge 1 commit into
ocaml:masterfrom
kit-ty-kate:clean-backtraces
Draft

Improve potentially used backtraces and discard unused backtraces#7056
kit-ty-kate wants to merge 1 commit into
ocaml:masterfrom
kit-ty-kate:clean-backtraces

Conversation

@kit-ty-kate

Copy link
Copy Markdown
Member

Minor cleanup inspired by ocaml/ocaml#6728

This only do two things:

  • use Stdlib.raise_notrace where the exception isn't used as an exception but as a control flow utility (the backtrace is never used)
  • use OpamStd.Exn.finalise/Printexc.raise_with_backtrace where re-raises are done

@kit-ty-kate kit-ty-kate added this to the 2.7.0~alpha1 milestone Jul 27, 2026
@gasche

gasche commented Jul 28, 2026

Copy link
Copy Markdown
Member

Nice!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants