Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix: handle stack frames in the correct order
Commit f3c64ee removed `ObjArray` and replaced its usage with standard JDK classes. In `Interpreter`, in particular, an `ArrayDeque` is now used to store `cx.previousInterpreterInvocations`, which is used to generate the stack frame information. However, there is one place where `toArray` is done, and the behavior for `ObjArray` and `ArrayDeque` are different (swapped). Unfortunately no tests actually ends up exercising this difference due to the interpreter function peeling optimization done in #1510. We have discovered this problem because, in ServiceNow's fork, we currently need to disable the function peeling optimization.
- Loading branch information