@Target(value={METHOD,CONSTRUCTOR}) @Retention(value=RUNTIME) public @interface ForceInline
@ForceInline requests that a method or constructor be inlined where
possible. It targets library maintainers controlling performance
characteristics. The HotSpot JVM ignores custom annotations unless the
Chronicle Warmup agent processes the class.
Retention and effect: Retained at runtime but has no direct effect unless recognised by Chronicle warm-up tooling.
@ForceInline
static long xor(long a, long b) { return a ^ b; }
Large methods or those containing loops may still not inline.
HotMethodCopyright © 2026 Chronicle Software Ltd. All rights reserved.