Skip to content

Commit 9b1ff48

Browse files
authored
Downport of f0ceda6: Unwind String.indexOf intrinsic on AArch64. Fix TTSP test. (#193)
1 parent 914e076 commit 9b1ff48

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

ddprof-lib/src/main/cpp/stackFrame_aarch64.cpp

+8-1
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,14 @@ bool StackFrame::unwindStub(instruction_t *entry, const char *name,
9898
pc = ((uintptr_t *)sp)[-1];
9999
return true;
100100
}
101-
}
101+
} else if (strncmp(name, "indexof_linear_", 15) == 0 &&
102+
entry != NULL && entry[0] == 0xa9be57f4 && entry[1] == 0xa9015ff6) {
103+
// JDK-8189103: String.indexOf intrinsic.
104+
// Entry and exit are covered by the very first 'if', in all other cases SP is 4 words off.
105+
sp += 32;
106+
pc = link();
107+
return true;
108+
}
102109
return false;
103110
}
104111

0 commit comments

Comments
 (0)