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

Automatic Thread Detachment for Windows #562

Merged
merged 6 commits into from
Mar 15, 2022

Conversation

masterav10
Copy link
Contributor

New Default Behavior: vm->DetachCurrentThread() is called automatically when an attached native thread is terminated. Previously, a new thread was attached and detached per method call, creating memory pressure and increasing debugging complexity.

New behavior attaches the thread once, and relies on a static _declspec( thread ) object to detect thread termination.

NO_JNI_DETACH_THREAD retains its original behavior, although it is likely unnecessary.

Dan Avila and others added 2 commits March 13, 2022 13:52
New Default Behavior: vm->DetachCurrentThread() happens automatically
when upon thread termination. Previously, a new thread was attached and
detached per method call.

NO_JNI_DETACH_THREAD retains its original behavior, although it is
likely superfluous.
@saudet saudet merged commit e8aacb2 into bytedeco:master Mar 15, 2022
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.

None yet

2 participants