Skip to content

Add virtual thread support #3443

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

Draft
wants to merge 14 commits into
base: main
Choose a base branch
from
Draft

Add virtual thread support #3443

wants to merge 14 commits into from

Conversation

sormuras
Copy link
Member

@sormuras sormuras commented Sep 1, 2023

Overview

Closes #3442


I hereby agree to the terms of the JUnit Contributor License Agreement.


Definition of Done

Sorry, something went wrong.

marcphilipp and others added 5 commits September 1, 2023 14:03

Verified

This commit was signed with the committer’s verified signature.
marcphilipp Marc Philipp

Verified

This commit was signed with the committer’s verified signature.
marcphilipp Marc Philipp
marcphilipp and others added 9 commits September 1, 2023 17:53

Verified

This commit was signed with the committer’s verified signature.
marcphilipp Marc Philipp

Verified

This commit was signed with the committer’s verified signature.
marcphilipp Marc Philipp

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Co-authored-by: Marc Philipp <mail@marcphilipp.de>

Verified

This commit was signed with the committer’s verified signature.
marcphilipp Marc Philipp

Verified

This commit was signed with the committer’s verified signature.
marcphilipp Marc Philipp

Verified

This commit was signed with the committer’s verified signature.
marcphilipp Marc Philipp
@@ -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;
Copy link
Member

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) {
Copy link
Member

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 {
Copy link
Member

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() {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❓ Can be removed?

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.

Introduce support for virtual threads
2 participants