This bug is relevant for non-PRODUCT builds only! TraceMethodHandles must be true as well.
MethodHandles::trace_method_handle() saves the argument register to the stack and restores them after tracing work is done.
Unfortunately, there is a typo in the instruction restoring ARG5. It accesses SP+45 instead of SP+48.
MethodHandles::trace_method_handle() saves the argument register to the stack and restores them after tracing work is done.
Unfortunately, there is a typo in the instruction restoring ARG5. It accesses SP+45 instead of SP+48.