-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Drop Target_javax_net_ssl_SSLContext substitutions #45812
base: main
Are you sure you want to change the base?
Conversation
CI will pass. Problem might be size of native executable when SSL is disabled. I prepared a PR with hopefully the necessary changes but didn't have the time to finalize. See https://quarkus.io/guides/native-and-ssl#lets-disable-ssl-and-see-how-it-goes . If your patch doesn't make any difference in this case, then we can pursue. |
Ok, I will look into that. From the original commit I though there were functional issues when |
I did just quick check with 3.17.8 and the size of native is the same no matter what
|
And I received @gsmet this feels like a bug, size should be smaller when ssl is disabled, right? |
I dunno. Things have changed so much in GraalVM and they tend to give up on getting small binaries for ease of use. I tried with the patch I had prepared with So we should maybe just drop this |
It's unclear from the original commit that introduced this why it was added? @gsmet? |
@galderz it was introduced at a very early stage when enabling SSL required quite some additional configuration to get things going. And it also had the nice bonus that it would avoid getting the SSL stuff into the native image, which was dropping around 10 MB from the binary. Nowadays, things have been simplified a lot so from a simplification perspective, I don't think this property is needed anymore, but... it was still nice to be able to reduce the native executable size if you didn't need SSL. |
I agree with dropping the feature. Regarding the image size, note that in the guide it used to be 46MB with SSL and 25MB without it while now it is 61MB.
That's true, but I don't think it's the only cause of this increase. Other causes can be more features/code coming from newer JDKs and/or libraries. |
Drop Target_javax_net_ssl_SSLContext substitutions
Resolves #45739