interpreter: Fix overflows and reentrancy in statistics calculation

  1. Use unsigned long for counter, as they can easily overflow if you are running a long benchmark.
  2. Make interp_shutdown reentrant by copying the command frequency table into an array.

Fixes #25756 (closed)

Merge request reports

Loading