File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
graalpython/com.oracle.graal.python.cext/modules Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -459,15 +459,20 @@ do { \
459
459
"(%" PY_FORMAT_SIZE_T "d)\n", \
460
460
data, state->data_stack_base-size, size)); \
461
461
memcpy(data, state->data_stack+state->data_stack_base-size, size); \
462
- if (discard) \
462
+ if (discard) { \
463
+ /* TODO: workaround for Sulong realloc bug */ \
464
+ memset (state -> data_stack + state -> data_stack_base - size , 0 , size ); \
463
465
state -> data_stack_base -= size ; \
466
+ } \
464
467
} while (0 )
465
468
466
469
#define DATA_STACK_POP_DISCARD (state , size ) \
467
470
do { \
468
471
TRACE(("discard data from %" PY_FORMAT_SIZE_T "d " \
469
472
"(%" PY_FORMAT_SIZE_T "d)\n", \
470
473
state->data_stack_base-size, size)); \
474
+ /* TODO: workaround for Sulong realloc bug */ \
475
+ memset (state -> data_stack + state -> data_stack_base - size , 0 , size ); \
471
476
state -> data_stack_base -= size ; \
472
477
} while (0 )
473
478
You can’t perform that action at this time.
0 commit comments