mirror of
https://github.com/openjdk/jdk.git
synced 2026-03-15 02:13:19 +00:00
8257420: Zero VM build broken with clang after JDK-8256726 due to strlen() is not a constexpr
Reviewed-by: shade, stuefe
This commit is contained in:
parent
822ee47459
commit
0eaf0bbe26
@ -1370,10 +1370,8 @@ run:
|
||||
#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), \
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user