Re: Questions about the Hermetic Java project

2025-06-09 Thread Jiangli Zhou
On Sun, Jun 8, 2025 at 8:19 PM David Holmes wrote: > On 6/06/2025 1:23 am, Jiangli Zhou wrote: > > On Thu, Jun 5, 2025 at 1:33 AM David Holmes > > wrote: > > > > > > On 5/06/2025 1:33 am, Jiangli Zhou wrote: > > > > Ok, still thanks for the thoughts, David. > >

Re: Questions about the Hermetic Java project

2025-06-08 Thread David Holmes
On 6/06/2025 1:23 am, Jiangli Zhou wrote: On Thu, Jun 5, 2025 at 1:33 AM David Holmes > wrote: > > On 5/06/2025 1:33 am, Jiangli Zhou wrote: > > Ok, still thanks for the thoughts, David. > > > > To summarize, here is what we can do for the current step: > >

Re: Questions about the Hermetic Java project

2025-06-05 Thread Jiangli Zhou
On Thu, Jun 5, 2025 at 1:33 AM David Holmes wrote: > > On 5/06/2025 1:33 am, Jiangli Zhou wrote: > > Ok, still thanks for the thoughts, David. > > > > To summarize, here is what we can do for the current step: > > > > - Allow JNI_OnLoad_L and etc for JDK internal native libraries with > > the dyna

Re: Questions about the Hermetic Java project

2025-06-05 Thread David Holmes
On 5/06/2025 1:33 am, Jiangli Zhou wrote: Ok, still thanks for the thoughts, David. To summarize, here is what we can do for the current step: - Allow JNI_OnLoad_L and etc for JDK internal native libraries with the dynamic linking case. - JNI spec already allows JNI_OnLoad_L and etc for dynamic

Re: Questions about the Hermetic Java project

2025-06-04 Thread Jiangli Zhou
Ok, still thanks for the thoughts, David. To summarize, here is what we can do for the current step: - Allow JNI_OnLoad_L and etc for JDK internal native libraries with the dynamic linking case. - JNI spec already allows JNI_OnLoad_L and etc for dynamically linked native libraries. No spec change

Re: Questions about the Hermetic Java project

2025-06-03 Thread David Holmes
On 4/06/2025 5:00 am, Jiangli Zhou wrote: On Mon, Jun 2, 2025 at 6:22 PM David Holmes wrote: On 3/06/2025 9:29 am, Jiangli Zhou wrote: On Sun, Jun 1, 2025 at 7:55 PM David Holmes wrote: On 31/05/2025 7:20 am, Jiangli Zhou wrote: On Thu, May 29, 2025 at 11:54 PM David Holmes wrote: On 3

Re: Questions about the Hermetic Java project

2025-06-03 Thread Jiangli Zhou
On Mon, Jun 2, 2025 at 6:22 PM David Holmes wrote: > > On 3/06/2025 9:29 am, Jiangli Zhou wrote: > > On Sun, Jun 1, 2025 at 7:55 PM David Holmes wrote: > >> > >> On 31/05/2025 7:20 am, Jiangli Zhou wrote: > >>> On Thu, May 29, 2025 at 11:54 PM David Holmes > >>> wrote: > > On 30/05/20

Re: Questions about the Hermetic Java project

2025-06-02 Thread David Holmes
On 3/06/2025 9:29 am, Jiangli Zhou wrote: On Sun, Jun 1, 2025 at 7:55 PM David Holmes wrote: On 31/05/2025 7:20 am, Jiangli Zhou wrote: On Thu, May 29, 2025 at 11:54 PM David Holmes wrote: On 30/05/2025 9:26 am, Jiangli Zhou wrote: I just thought of one more thing related to the discussi

Re: Questions about the Hermetic Java project

2025-06-02 Thread Jiangli Zhou
On Sun, Jun 1, 2025 at 7:55 PM David Holmes wrote: > > On 31/05/2025 7:20 am, Jiangli Zhou wrote: > > On Thu, May 29, 2025 at 11:54 PM David Holmes > > wrote: > >> > >> On 30/05/2025 9:26 am, Jiangli Zhou wrote: > >>> > >>> I just thought of one more thing related to the discussion now. Any > >>

Re: Questions about the Hermetic Java project

2025-06-01 Thread David Holmes
On 31/05/2025 7:20 am, Jiangli Zhou wrote: On Thu, May 29, 2025 at 11:54 PM David Holmes wrote: On 30/05/2025 9:26 am, Jiangli Zhou wrote: I just thought of one more thing related to the discussion now. Any concern if the implementation does not ignore JNI_OnLoad_L and etc if they are define

Re: Questions about the Hermetic Java project

2025-05-30 Thread Jiangli Zhou
On Thu, May 29, 2025 at 11:54 PM David Holmes wrote: > > On 30/05/2025 9:26 am, Jiangli Zhou wrote: > > On Thu, May 29, 2025 at 3:17 PM David Holmes > > wrote: > >> > >> On 30/05/2025 2:57 am, Jiangli Zhou wrote: > >>> On Wed, May 28, 2025 at 10:36 PM David Holmes > >>> wrote: > > Hi

Re: Questions about the Hermetic Java project

2025-05-29 Thread David Holmes
On 30/05/2025 9:26 am, Jiangli Zhou wrote: On Thu, May 29, 2025 at 3:17 PM David Holmes wrote: On 30/05/2025 2:57 am, Jiangli Zhou wrote: On Wed, May 28, 2025 at 10:36 PM David Holmes wrote: Hi Jiangli, On 29/05/2025 3:27 am, Jiangli Zhou wrote: This is unfortunately quite complex, and

Re: Questions about the Hermetic Java project

2025-05-29 Thread Jiangli Zhou
On Thu, May 29, 2025 at 3:17 PM David Holmes wrote: > > On 30/05/2025 2:57 am, Jiangli Zhou wrote: > > On Wed, May 28, 2025 at 10:36 PM David Holmes > > wrote: > >> > >> Hi Jiangli, > >> > >> > >> > >> On 29/05/2025 3:27 am, Jiangli Zhou wrote: > > This is unfortunately quite complex, and I

Re: Questions about the Hermetic Java project

2025-05-29 Thread David Holmes
On 30/05/2025 2:57 am, Jiangli Zhou wrote: On Wed, May 28, 2025 at 10:36 PM David Holmes wrote: Hi Jiangli, On 29/05/2025 3:27 am, Jiangli Zhou wrote: This is unfortunately quite complex, and I have started a discussion with Alan if it is possible to update the JNI spec so that both stati

Re: Questions about the Hermetic Java project

2025-05-29 Thread Jiangli Zhou
On Wed, May 28, 2025 at 10:36 PM David Holmes wrote: > > Hi Jiangli, > > > > On 29/05/2025 3:27 am, Jiangli Zhou wrote: > >>> This is unfortunately quite complex, and I have started a discussion with > >>> Alan if it is possible to update the JNI spec so that both static and > >>> dynamic entry

Re: Questions about the Hermetic Java project

2025-05-28 Thread David Holmes
Hi Jiangli, On 29/05/2025 3:27 am, Jiangli Zhou wrote: This is unfortunately quite complex, and I have started a discussion with Alan if it is possible to update the JNI spec so that both static and dynamic entry points can have the form "JNI_OnLoad_". Ideally, I'd like to see us push for th

Re: Questions about the Hermetic Java project

2025-05-28 Thread Jiangli Zhou
On Mon, Apr 15, 2024 at 6:01 PM Jiangli Zhou wrote: > > Magnus, thanks for the response. Please see comments inlined below. > > On Fri, Apr 12, 2024 at 4:52 AM Magnus Ihse Bursie > wrote: > > > > On 2024-04-02 21:16, Jiangli Zhou wrote: > > > > Hi Magnus, > > > > In today's zoom meeting with Alan

Re: Questions about the Hermetic Java project

2024-04-18 Thread Julian Waters
Oops, I meant __declspec(dllexport) void exportedMethod() {} with braces, not brackets On Thu, Apr 18, 2024 at 8:27 PM Julian Waters wrote: > > I have good (and bad news) for you! > > The good news is that from memory, ld and gcc (but I assume you are > only concerned about ld) can work entirely

Re: Questions about the Hermetic Java project

2024-04-18 Thread Julian Waters
I have good (and bad news) for you! The good news is that from memory, ld and gcc (but I assume you are only concerned about ld) can work entirely on cl compiled object files with no hitch whatsoever, and partial linking is fully functional with ld on Windows! Symbol hiding also works, but with a

Re: Questions about the Hermetic Java project

2024-04-16 Thread Jiangli Zhou
On Tue, Apr 16, 2024 at 9:20 AM Jiangli Zhou wrote: > > On Tue, Apr 16, 2024 at 8:30 AM Magnus Ihse Bursie > wrote: > > > > Jiangli, > > > > First of all: I tried building the leyden branch "hermetic-java-runtime" > > but failed. :-( I tried some various attempts to work around the failures, >

Re: Questions about the Hermetic Java project

2024-04-16 Thread Volker Simonis
On Tue, Apr 16, 2024 at 5:40 PM Magnus Ihse Bursie wrote: > > On 2024-04-16 10:28, Volker Simonis wrote: > > > Hi, and sorry, I'm completely new to this discussion. > > > > I just wonder how `static-libs-image` is related to the > > `graal-builder-image` target which is available in mainline since

Re: Questions about the Hermetic Java project

2024-04-16 Thread Severin Gehwolf
Hi, On Tue, 2024-04-16 at 17:40 +0200, Magnus Ihse Bursie wrote: > On 2024-04-16 10:28, Volker Simonis wrote: > > > Hi, and sorry, I'm completely new to this discussion. > > > > I just wonder how `static-libs-image` is related to the > > `graal-builder-image` target which is available in mainlin

Re: Questions about the Hermetic Java project

2024-04-16 Thread Jiangli Zhou
On Tue, Apr 16, 2024 at 8:30 AM Magnus Ihse Bursie wrote: > > Jiangli, > > First of all: I tried building the leyden branch "hermetic-java-runtime" but > failed. :-( I tried some various attempts to work around the failures, but > the javastatic file I ended up with were unable to start. Magnus

Re: Questions about the Hermetic Java project

2024-04-16 Thread Magnus Ihse Bursie
On 2024-04-16 10:28, Volker Simonis wrote: Hi, and sorry, I'm completely new to this discussion. I just wonder how `static-libs-image` is related to the `graal-builder-image` target which is available in mainline since JDK 11 and builds a static version of all the native libraries excluding the

Re: Questions about the Hermetic Java project

2024-04-16 Thread Magnus Ihse Bursie
Jiangli, First of all: I tried building the leyden branch "hermetic-java-runtime" but failed. :-( I tried some various attempts to work around the failures, but the javastatic file I ended up with were unable to start. What kind of environment are you using to build this branch? (OS, compile

Re: Questions about the Hermetic Java project

2024-04-16 Thread Volker Simonis
Hi, and sorry, I'm completely new to this discussion. I just wonder how `static-libs-image` is related to the `graal-builder-image` target which is available in mainline since JDK 11 and builds a static version of all the native libraries excluding the Hotspot ones? @Magnus: will the new, static

Re: Questions about the Hermetic Java project

2024-04-15 Thread Jiangli Zhou
Magnus, thanks for the response. Please see comments inlined below. On Fri, Apr 12, 2024 at 4:52 AM Magnus Ihse Bursie wrote: > > On 2024-04-02 21:16, Jiangli Zhou wrote: > > Hi Magnus, > > In today's zoom meeting with Alan, Ron, Liam and Chuck, we (briefly) > discussed how to move forward contr

Re: Questions about the Hermetic Java project

2024-04-12 Thread Magnus Ihse Bursie
On 2024-04-02 21:16, Jiangli Zhou wrote: Hi Magnus, In today's zoom meeting with Alan, Ron, Liam and Chuck, we (briefly) discussed how to move forward contributing the static Java related changes (additional runtime fixes/enhancements on top of the existing static support in JDK) from https

Re: Questions about the Hermetic Java project

2024-02-15 Thread Jiangli Zhou
On Wed, Feb 14, 2024 at 5:07 PM Jiangli Zhou wrote: > > Hi Magnus, > > Thanks for looking into this from the build perspective. > > On Wed, Feb 14, 2024 at 1:00 AM Magnus Ihse Bursie > wrote: > > > > First some background for build-dev: I have spent some time looking at > > the build implications

Re: Questions about the Hermetic Java project

2024-02-14 Thread Jiangli Zhou
Hi Magnus, Thanks for looking into this from the build perspective. On Wed, Feb 14, 2024 at 1:00 AM Magnus Ihse Bursie wrote: > > First some background for build-dev: I have spent some time looking at > the build implications of the Hermetic Java effort, which is part of > Project Leyden. A high