Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

8257420: Zero VM build broken with clang after JDK-8256726 due to strlen() is not a constexpr #1518

Closed
wants to merge 4 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 1 addition & 3 deletions src/hotspot/share/interpreter/zero/bytecodeInterpreter.cpp
Expand Up @@ -1370,10 +1370,8 @@ void BytecodeInterpreter::run(interpreterState istate) {
#define ARRAY_INTRO(arrayOff) \
arrayOop arrObj = (arrayOop)STACK_OBJECT(arrayOff); \
jint index = STACK_INT(arrayOff + 1); \
const int add_len = 32; \
STATIC_ASSERT(add_len == strlen("Index out of bounds for length ")); \
/* Two integers, the additional message, and the null-terminator */ \
char message[2 * jintAsStringSize + add_len + 1]; \
char message[2 * jintAsStringSize + 33]; \
CHECK_NULL(arrObj); \
if ((uint32_t)index >= (uint32_t)arrObj->length()) { \
jio_snprintf(message, sizeof(message), \
Expand Down