-
Notifications
You must be signed in to change notification settings - Fork 767
Fix compile error and add iconv_init() call #20070
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
Conversation
Why should we not also revert #20007? That would avoid the compile error relating to |
For situations where the JVM is not started from a standard launcher, I think adding to |
That means users have to take care of the LIBPATH in these situations ? |
Yes, but hopefully, "users" in this case means the authors of non-standard launcher code, not end users of an application. |
FYI @joransiu |
Yes, but if those users need shared libraries before starting the JVM, they can't expect the JVM to help (because by definition it hasn't started yet). |
Yes, I agree. They could see issue caused by LIBPATH before calling into our code. We have no control over that. I should mention in my above comment I am fine reverting #20007. |
Yeah, we hit the problem when using Liberty's launcher, which had not updated LIBPATH with |
The question is, does it work? We've seen before that things such as LIBPATH need to be set before the process is started. Setting it in the process after it's started doesn't take effect. The java launcher sets it and then forks the JVM process. |
If we have the requirement of |
I don't think it's a requirement for z/OS: the need for the library is a feature of the launcher code on z/OS. Other JNI applications may not need it. |
An application using java/util/zip/GZip APIs will invoke classlib implementation that calls into system zlib library. How would |
@keithc-ca Any comments on #20070 (comment) ? |
We just tested Liberty launcher, and can confirm that we are able to bring up the app server properly without |
This reverts commit b5844da. Change-Id: Ie4ae9cedbb3d420e784aaaa275487626b2fde214
57a0973
to
5e295cc
Compare
1. Fix compile error that origLibpath is not defined on z/OS Java 21+. 2. Call iconv_init() in JNI_CreateJavaVM_impl() before the first use of getenv() on z/OS java 21+. Signed-off-by: Hang Shao <[email protected]>
Jenkins test sanity aix,zlinux jdk11,jdk21 |
getenv() on z/OS.
Internal issue