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

Add support for newVirtualThreadPerTaskExecutor #9616

Merged
merged 5 commits into from
Oct 10, 2023

Conversation

JonasKunz
Copy link
Contributor

@JonasKunz JonasKunz commented Oct 6, 2023

Adds support for the Java 21 Executors.newVirtualThreadPerTaskExecutor. Part of #9534 . This also implicitly tests Executors.newThreadPerTaskExecutor because newVirtualThreadPerTaskExecutor is implemented on top of it.

This PR is in draft state because we should upgrade the ci tests to Java 21 first.

When testing locally, I noticed that the Lambda instrumentation broke, because for all lambda classes the $$Lambda$<number> suffix was replaced with just $$Lambda without the number. I don't know if this is a property of Java 21 in general or whether this was specific to the EA-build I've been using:

Running on Java 21. JVM OpenJDK 64-Bit Server VM - Azul Systems, Inc. - 21+35

@laurit
Copy link
Contributor

laurit commented Oct 9, 2023

#9620 adds running tests with jdk 21

@JonasKunz JonasKunz marked this pull request as ready for review October 10, 2023 08:23
@JonasKunz JonasKunz requested a review from a team as a code owner October 10, 2023 08:23
Copy link
Member

@mateuszrzeszutek mateuszrzeszutek left a comment

Choose a reason for hiding this comment

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

Nice 👍

@trask trask merged commit abc7a22 into open-telemetry:main Oct 10, 2023
47 checks passed
@JonasKunz JonasKunz deleted the virtualthread-eexcutors branch October 10, 2023 15:08
@trask trask mentioned this pull request Nov 3, 2023
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

4 participants