Skip to content
This repository has been archived by the owner on Feb 2, 2023. It is now read-only.

Commit

Permalink
8254790: SIGSEGV in string_indexof_char and stringL_indexof_char intr…
Browse files Browse the repository at this point in the history
…insics

Reviewed-by: yan
Backport-of: 365f19c
  • Loading branch information
Sergey Nazarkin authored and Yuri Nesterenko committed Apr 16, 2021
1 parent 8de0239 commit 8a7c9d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hotspot/cpu/x86/macroAssembler_x86.cpp
Expand Up @@ -6432,7 +6432,7 @@ void MacroAssembler::string_indexof_char(Register str1, Register cnt1, Register
pmovmskb(tmp, vec3);
}
bsfl(ch, tmp);
addl(result, ch);
addptr(result, ch);

bind(FOUND_SEQ_CHAR);
subptr(result, str1);
Expand Down

1 comment on commit 8a7c9d7

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.