in shlr/java/code.c changing BYTES_CONSUMED 'volatile' to 'static volatile'