We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 822ee47 commit 0eaf0bbCopy full SHA for 0eaf0bb
src/hotspot/share/interpreter/zero/bytecodeInterpreter.cpp
@@ -1370,10 +1370,8 @@ void BytecodeInterpreter::run(interpreterState istate) {
1370
#define ARRAY_INTRO(arrayOff) \
1371
arrayOop arrObj = (arrayOop)STACK_OBJECT(arrayOff); \
1372
jint index = STACK_INT(arrayOff + 1); \
1373
- const int add_len = 32; \
1374
- STATIC_ASSERT(add_len == strlen("Index out of bounds for length ")); \
1375
/* Two integers, the additional message, and the null-terminator */ \
1376
- char message[2 * jintAsStringSize + add_len + 1]; \
+ char message[2 * jintAsStringSize + 33]; \
1377
CHECK_NULL(arrObj); \
1378
if ((uint32_t)index >= (uint32_t)arrObj->length()) { \
1379
jio_snprintf(message, sizeof(message), \
0 commit comments