Skip to content

Synchronize Mac init and JNI code.#1335

Open
prbprbprb wants to merge 3 commits into
google:masterfrom
prbprbprb:mac_stress
Open

Synchronize Mac init and JNI code.#1335
prbprbprb wants to merge 3 commits into
google:masterfrom
prbprbprb:mac_stress

Conversation

@prbprbprb

Copy link
Copy Markdown
Contributor

Macs are inherently not thread safe, but
before this change they can crash in native code
if used across multiple threads.

@miguelaranda0

Copy link
Copy Markdown
Collaborator

Formatting is still needed and windows fails

@prbprbprb

Copy link
Copy Markdown
Contributor Author

Yeah sorry, should have marked it as draft as this is not urgent

Macs are inherently *not* thread safe, but
before this change they can crash in native code
if used across multiple threads.
@prbprbprb

Copy link
Copy Markdown
Contributor Author

I think whatever CI failed has expired, I suspect it was a known flake as this passes locally for me on Windows.

Clang format should also pass now, so ready for review.

@juergw juergw self-requested a review June 30, 2026 07:09
@juergw

juergw commented Jun 30, 2026

Copy link
Copy Markdown
Collaborator

I've looked into this a bit, and I agree that this is a problem that we need to fix. I also tried to see if we could fix this is a different way, but I couldn't come up with a better solution. So I think we should merge this as it is.

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