Skip to content
Permalink
Browse files
8257420: Zero VM build broken with clang after JDK-8256726 due to str…
…len() is not a constexpr

Reviewed-by: shade, stuefe
  • Loading branch information
DamonFool committed Dec 1, 2020
1 parent 822ee47 commit 0eaf0bbe261968cd8574939005a69e46bc8d490e
Showing 1 changed file with 1 addition and 3 deletions.
@@ -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), \

1 comment on commit 0eaf0bb

@openjdk-notifier
Copy link

@openjdk-notifier openjdk-notifier bot commented on 0eaf0bb Dec 1, 2020

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.