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

Align to use virtual threads #540

Merged

Conversation

wyhasany
Copy link
Contributor

  • In scope of this ticket I removed synchronized blocks as they pin virtual thread to carrier thread.
  • Expose user way to inject ThreadFactory for creating virtual threads

Issues

* In scope of this ticket I removed synchronized blocks as they
pin virtual thread to carrier thread.
* Expose user way to inject ThreadFactory for creating virtual
threads
@jaeopt
Copy link
Contributor

jaeopt commented Mar 20, 2024

@wyhasany Thanks for your contribution! If not done yet, can you sign our CLA? https://github.com/optimizely/java-sdk/blob/master/CONTRIBUTING.md

@wyhasany
Copy link
Contributor Author

@jaeopt just done it

Copy link
Contributor

@jaeopt jaeopt left a comment

Choose a reason for hiding this comment

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

Looks good! A couple of clean up suggested to be consistent with other parts.

wyhasany and others added 2 commits April 3, 2024 11:50
…adFactory.java

Co-authored-by: Jae Kim <45045038+jaeopt@users.noreply.github.com>
Co-authored-by: Jae Kim <45045038+jaeopt@users.noreply.github.com>
@wyhasany
Copy link
Contributor Author

wyhasany commented Apr 3, 2024

@jaeopt Thank you for review. I applied all yours suggestions

Copy link
Contributor

@jaeopt jaeopt left a comment

Choose a reason for hiding this comment

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

LGTM

@jaeopt jaeopt merged commit a77eaa8 into optimizely:master Apr 3, 2024
27 of 31 checks passed
@jaeopt
Copy link
Contributor

jaeopt commented Apr 3, 2024

@wyhasany Thanks for your contribution. It's merged and will be included in the next release (next week).

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.

[ENHANCEMENT] [question] Is optimizely virtual thread / loom friendly?
2 participants