On Fri, 24 May 2024 20:42:12 GMT, Scott Gibbons <[email protected]> wrote:
>> test/jdk/java/lang/StringBuffer/ECoreIndexOf.java line 185:
>>
>>> 183: }
>>> 184:
>>> 185: private static int indexOfKernel(String haystack, String needle) {
>>
>> Is the intention of kernels not to be inlined so that it would be part of
>> separate compilation?
>>
>> If so, you probably want to annotate it with
>> `@CompilerControl(CompilerControl.Mode.DONT_INLINE)`
>>
>> i.e.
>> https://github.com/openjdk/jmh/blob/master/jmh-samples/src/main/java/org/openjdk/jmh/samples/JMHSample_16_CompilerControl.java
>
> Fixed.
CompilerControl is unavailable here. Added a runtime option instead.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/16753#discussion_r1617894475