-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
HHH-15541 Possible carrier thread pinning synchronized blocks migrated to ReentrantLock #7632
base: main
Are you sure you want to change the base?
Conversation
Thanks for your pull request! This pull request appears to follow the contribution rules. › This message was automatically generated. |
Good idea, thanks @hurelhuyag ! |
Do you accept the following terms? By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license |
Bump @hurelhuyag :) |
Yes, I accept the terms |
…d to ReentrantLock
Thanks! I rebased to launch CI, since it's been a while. Let's merge if builds pass. |
Looks like there are formatting issues:
|
I'm not convinced that any of these things are problems. These @Sanne Are you sure these changes are actually necessary? |
Hi @gavinking ! I'm assuming they might be problematic even when only processed at bootstrap time, as we don't really control what kind of threads are being used to boot the ORM; I know of several patterns being used in which it's booted lazily, so potentially within another application thread (as opposed to a managed container), or even as one-offs, like using a SessionFactory only once or per-thread. Not loving nor recommending any of these, but w/o such changes it would indeed fail when using Loom. At least until this JEP is included in all Java versions which we intend to support: |
Pretty sure these are anti patterns and that we should never encourage such things. A user who does this has much worse performance problems than a pinned thread! |
What does "fail" mean here? |
https://hibernate.atlassian.net/browse/HHH-15541