RFR: 8320448: Accelerate IndexOf using AVX2 [v37]

Scott Gibbons sgibbons at openjdk.org
Tue May 28 21:12:16 UTC 2024


On Fri, 24 May 2024 20:42:12 GMT, Scott Gibbons <sgibbons at openjdk.org> 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


More information about the hotspot-compiler-dev mailing list