Skip to content

Commit 7001783

Browse files
committed
Enable indexOf intrincics
1 parent 4904d43 commit 7001783

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/hotspot/cpu/x86/stubGenerator_x86_64.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4004,7 +4004,7 @@ void StubGenerator::generate_compiler_stubs() {
40044004
generate_chacha_stubs();
40054005

40064006
#ifdef COMPILER2
4007-
if ((UseAVX == 2) && EnableX86ECoreOpts && !UseCompactObjectHeaders) {
4007+
if ((UseAVX == 2) && EnableX86ECoreOpts) {
40084008
generate_string_indexof(StubRoutines::_string_indexof_array);
40094009
}
40104010
#endif

src/hotspot/share/opto/library_call.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1280,7 +1280,6 @@ bool LibraryCallKit::inline_string_indexOfI(StrIntrinsicNode::ArgEnc ae) {
12801280
bool call_opt_stub = (StubRoutines::_string_indexof_array[ae] != nullptr);
12811281

12821282
if (call_opt_stub) {
1283-
assert(arrayOopDesc::base_offset_in_bytes(T_BYTE) >= 16, "Needed for indexOf");
12841283
Node* call = make_runtime_call(RC_LEAF, OptoRuntime::string_IndexOf_Type(),
12851284
StubRoutines::_string_indexof_array[ae],
12861285
"stringIndexOf", TypePtr::BOTTOM, src_start,

0 commit comments

Comments
 (0)