-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Add virtual thread support #3443
base: main
Are you sure you want to change the base?
Conversation
...org/junit/platform/engine/support/hierarchical/VirtualParallelExecutionIntegrationTests.java
Outdated
Show resolved
Hide resolved
...org/junit/platform/engine/support/hierarchical/VirtualParallelExecutionIntegrationTests.java
Show resolved
Hide resolved
gradle/plugins/common/src/main/kotlin/junitbuild/exec/RunConsoleLauncher.kt
Show resolved
Hide resolved
Co-authored-by: Marc Philipp <[email protected]>
@@ -124,6 +124,8 @@ public final class Constants { | |||
@API(status = STABLE, since = "5.10") | |||
public static final String PARALLEL_EXECUTION_ENABLED_PROPERTY_NAME = JupiterConfiguration.PARALLEL_EXECUTION_ENABLED_PROPERTY_NAME; | |||
|
|||
public static final String PARALLEL_EXECUTOR_PROPERTY_NAME = JupiterConfiguration.PARALLEL_EXECUTOR_PROPERTY_NAME; |
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.
❌ needs an @API
annotation and Javadoc
@@ -216,7 +216,7 @@ public ParallelExecutionConfiguration createConfiguration(ConfigurationParameter | |||
*/ | |||
public static final String CONFIG_CUSTOM_CLASS_PROPERTY_NAME = "custom.class"; | |||
|
|||
static ParallelExecutionConfigurationStrategy getStrategy(ConfigurationParameters configurationParameters) { | |||
public static ParallelExecutionConfigurationStrategy getStrategy(ConfigurationParameters configurationParameters) { |
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.
❌ Doesn't need to be public
@@ -208,10 +208,13 @@ public void compute() { | |||
|
|||
} | |||
|
|||
static class WorkerThreadFactory implements ForkJoinPool.ForkJoinWorkerThreadFactory { | |||
public static class WorkerThreadFactory implements ForkJoinPool.ForkJoinWorkerThreadFactory { |
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.
❌ Doesn't need to be public
|
||
private final ClassLoader contextClassLoader = Thread.currentThread().getContextClassLoader(); | ||
|
||
public WorkerThreadFactory() { |
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.
❓ Can be removed?
Overview
Closes #3442
I hereby agree to the terms of the JUnit Contributor License Agreement.
Definition of Done
@API
annotations