Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix mutex change of ownership (OpenBSD) #264

Closed
wants to merge 5 commits into from

Conversation

xguerin
Copy link
Contributor

@xguerin xguerin commented Oct 21, 2020

OpenBSD is pretty strict about change of ownership for mutexes (abort()). This PR addresses that issue by moving mutex locking to their logically owning threads.

@xguerin xguerin force-pushed the feature/openbsd-mutex-fix branch from bc8615c to 6b64236 Compare October 21, 2020 14:17
@xguerin
Copy link
Contributor Author

xguerin commented Oct 21, 2020

AFAICT the cause of the failure on Mac is not related to the patch.

@xguerin xguerin force-pushed the feature/openbsd-mutex-fix branch 2 times, most recently from 055ba81 to e4639ab Compare October 21, 2020 15:53
@xguerin xguerin force-pushed the feature/openbsd-mutex-fix branch from e4639ab to a430d82 Compare October 22, 2020 14:37
rgrinberg and others added 3 commits October 23, 2020 15:02
Signed-off-by: Rudi Grinberg <[email protected]>
Signed-off-by: Sora Morimoto <[email protected]>
Signed-off-by: Rudi Grinberg <[email protected]>
@rgrinberg
Copy link
Member

Thanks. A reference about mutexes on openbsd would be handy :) I'll take your word for it though

@rgrinberg rgrinberg closed this Oct 23, 2020
rgrinberg added a commit to rgrinberg/opam-repository that referenced this pull request Nov 16, 2020
CHANGES:

## Features

- Add keyword completion

- Add go to declaration functionality to jump to a value's specification in a
  .mli file (ocaml/ocaml-lsp#294)

## Fixes

- ocaml/ocaml-lsp#245: correctly use mutexes on OpenBSD (ocaml/ocaml-lsp#264)

- ocaml/ocaml-lsp#268: Do not use vendored libraries when building the lsp package (ocaml/ocaml-lsp#260)

- ocaml/ocaml-lsp#271: Clear diagnostics when files are closed

- Disable non-prefix completion. There's no reliably way to trigger it and it
  can be slow.
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.

3 participants