Unsafe vs MemorySegments / Bounds checking...

Ioannis Tsakpinis iotsakp at gmail.com
Tue Nov 5 17:58:53 UTC 2024


> Interesting find. If you forceInline that (e.g. using CompileCommand) does it get better?

No, inlining still fails. Afaict, the relevant code is in
InlineTree:try_to_inline [1] and it looks like the maximum inline level
violation is overriding any inlining decision done before it, including
the forced inlining via CompileCommand.

[1]:
https://github.com/openjdk/jdk/blob/3fab8e37bbebbb3930108b2015efe488b1fa1e97/src/hotspot/share/opto/bytecodeInfo.cpp#L364


More information about the panama-dev mailing list