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

HHH-14694 Use stable proxy names to avoid managing proxy state #9848

Merged
merged 4 commits into from
Mar 27, 2025

Conversation

beikov
Copy link
Member

@beikov beikov commented Mar 11, 2025


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license
and can be relicensed under the terms of the LGPL v2.1 license in the future at the maintainers' discretion.
For more information on licensing, please check here.


https://hibernate.atlassian.net/browse/HHH-14694
https://hibernate.atlassian.net/browse/HHH-19230

@scottmarlow
Copy link
Member

My local testing shows that the leak is fixed by this change. Thanks @beikov

@beikov beikov changed the title HHH-14694 Don't clear BytecodeProvider cache when SessionFactory is built or closed HHH-14694 Use stable proxy names to avoid managing proxy state Mar 26, 2025
Comment on lines +244 to +248
.with( new NamingStrategy.SuffixingRandom(
OPTIMIZER_PROXY_NAMING_SUFFIX,
new NamingStrategy.SuffixingRandom.BaseNameResolver.ForFixedValue( clazz.getName() )
) )

Check notice

Code scanning / CodeQL

Deprecated method or constructor invocation Note

Invoking
SuffixingRandom.SuffixingRandom
should be avoided because it has been deprecated.
@beikov beikov merged commit 02ef8c1 into hibernate:6.6 Mar 27, 2025
29 of 32 checks passed
@beikov beikov deleted the HHH-14694-6.6 branch March 27, 2025 15:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants