RFR: 8287788: reuse intermediate segments allocated during FFM stub invocations [v2]

Matthias Ernst duke at openjdk.org
Mon Jan 20 16:34:16 UTC 2025


On Mon, 20 Jan 2025 15:00:55 GMT, Maurizio Cimadamore <mcimadamore at openjdk.org> wrote:

>> Matthias Ernst has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   Implementation notes.
>
> src/java.base/share/classes/jdk/internal/foreign/abi/CallBufferCache.java line 75:
> 
>> 73: 
>> 74:     @SuppressWarnings("restricted")
>> 75:     public static long allocate(long size) {
> 
> I don't think we should expose allocation/release methods (see related comment in `SharedUtils`)

Done. These were only visible for the unit test, changed that.

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/23142#discussion_r1922645500


More information about the core-libs-dev mailing list