[code-reflection] RFR: ONNX FFM Runtime initial work [v3]
Per Minborg
pminborg at openjdk.org
Wed Feb 12 08:51:29 UTC 2025
On Mon, 10 Feb 2025 14:18:49 GMT, Adam Sotona <asotona at openjdk.org> wrote:
>> cr-examples/onnx/src/main/java/oracle/code/onnx/OnnxRuntime.java line 68:
>>
>>> 66: private final SymbolLookup library;
>>> 67: private final MemorySegment runtimeAddress, ret;
>>> 68: private final MethodHandle allocatorGetInfo,
>>
>> Can these be `static` for better performance?
>
> No with the current API design. The memory segment of the instance of obtained by `OrtGetApiBase()->GetApi((uint32_t)apiVersion)`
Can they be @Stable ?
-------------
PR Review Comment: https://git.openjdk.org/babylon/pull/311#discussion_r1952219386
More information about the babylon-dev
mailing list