This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Re: Patch: Remove JNI_OnLoad
>>>>> "Anthony" == Anthony Green <green@redhat.com> writes:
>> I'm going to check this in on the trunk. This removes the JNI_OnLoad
>> lookup and call from the startup sequence.
Anthony> Hmmm... how do we do fun stuff like this then...
Anthony> http://gcc.gnu.org/ml/java-patches/2000-q1/msg00253.html
Well, the Sun-compatible way would be to use the Invocation API (once
we have it).
Another way to do it would be to run the code from a static
constructor.
>> FWIW the original JNI_OnLoad code was, I believe, based on my
>> misunderstanding of how dl preloading works.
Anthony> I think my patch (above) introduced the code you are
Anthony> removing.
Sorry about that. I thought I had introduced it.
Tom