-
Notifications
You must be signed in to change notification settings - Fork 30
Change Dumb executor to TLS-based one [ECR-3204] #917
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
Conversation
} | ||
|
||
/// Executes a provided closure, making sure that the current thread | ||
/// is attached to the JVM. Additionally ensures that local object references freed after call. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
are freed after call?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also below
#[test] | ||
fn single_thread() { | ||
test_single_thread(&*EXECUTOR); | ||
test_single_thread(EXECUTOR.clone()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably not single with the guys below in the same file 🙃
I think we can leave it as is, but please inspect these tests to see if they need to be updated or extended.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
❓
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
At least nested_attach
cannot reliably live in the same source file.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually it can, but it will be unable to check if the thread is detached correctly after the outer-most scope is finished. Other tests a totally fine to live together.
} | ||
|
||
#[test] | ||
fn nested_attach() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we shall keep it because it verifies the executor implementation allowing recursive with_attached
, which some implementations might not permit.
This reverts commit adc7c2a
Overview
See: https://jira.bf.local/browse/ECR-3204
Definition of Done