Skip to content

Commit 0eaf0bb

Browse files
committed
8257420: Zero VM build broken with clang after JDK-8256726 due to strlen() is not a constexpr
Reviewed-by: shade, stuefe
1 parent 822ee47 commit 0eaf0bb

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/hotspot/share/interpreter/zero/bytecodeInterpreter.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1370,10 +1370,8 @@ void BytecodeInterpreter::run(interpreterState istate) {
13701370
#define ARRAY_INTRO(arrayOff) \
13711371
arrayOop arrObj = (arrayOop)STACK_OBJECT(arrayOff); \
13721372
jint index = STACK_INT(arrayOff + 1); \
1373-
const int add_len = 32; \
1374-
STATIC_ASSERT(add_len == strlen("Index out of bounds for length ")); \
13751373
/* Two integers, the additional message, and the null-terminator */ \
1376-
char message[2 * jintAsStringSize + add_len + 1]; \
1374+
char message[2 * jintAsStringSize + 33]; \
13771375
CHECK_NULL(arrObj); \
13781376
if ((uint32_t)index >= (uint32_t)arrObj->length()) { \
13791377
jio_snprintf(message, sizeof(message), \

0 commit comments

Comments
 (0)