Re: RFR: 8254693: Add Panama feature to pass heap segments to native code [v11]

2023-11-08 Thread Vladimir Ivanov
On Sat, 21 Oct 2023 12:04:10 GMT, Jorn Vernee wrote: >> Add the ability to pass heap segments to native code. This requires using >> `Linker.Option.critical(true)` as a linker option. It has the same >> limitations as normal critical calls, namely: upcalls into Java are not >> allowed, and

Re: RFR: 8254693: Add Panama feature to pass heap segments to native code [v11]

2023-10-23 Thread Maurizio Cimadamore
On Mon, 23 Oct 2023 11:29:28 GMT, Jorn Vernee wrote: > We could add a line to `donwcallHandle` that says that the returned handle > throws an `IllegalArgumentException` if a heap segment is passed, unless heap > segments are explicitly allowed through the `critical(true)` option. Something

Re: RFR: 8254693: Add Panama feature to pass heap segments to native code [v11]

2023-10-23 Thread Jorn Vernee
On Sat, 21 Oct 2023 12:04:10 GMT, Jorn Vernee wrote: >> Add the ability to pass heap segments to native code. This requires using >> `Linker.Option.critical(true)` as a linker option. It has the same >> limitations as normal critical calls, namely: upcalls into Java are not >> allowed, and

Re: RFR: 8254693: Add Panama feature to pass heap segments to native code [v11]

2023-10-23 Thread Maurizio Cimadamore
On Sat, 21 Oct 2023 12:04:10 GMT, Jorn Vernee wrote: >> Add the ability to pass heap segments to native code. This requires using >> `Linker.Option.critical(true)` as a linker option. It has the same >> limitations as normal critical calls, namely: upcalls into Java are not >> allowed, and

Re: RFR: 8254693: Add Panama feature to pass heap segments to native code [v11]

2023-10-21 Thread Jorn Vernee
> Add the ability to pass heap segments to native code. This requires using > `Linker.Option.critical(true)` as a linker option. It has the same > limitations as normal critical calls, namely: upcalls into Java are not > allowed, and the native function should return relatively quickly. Heap >