Volker Simonis wrote:
as the test in the webrev demonstrates, the MH spread invoker
will crashes the VM if invoked with a NULL argument on x86_32
This is because nn 32-bit Intel platforms, the spread invoker
uses the 'rsi' register as temporary. But because 'rsi' also
contains the 'saved_last_sp' on x86_32 platforms, 'rsi' has to be
temporary saved on the stack. If this saving is done before a
failing 'NULL' check in the spread adapter, the following
excpetion handling routine will be confused by the extra value on
the stack, because it expects to find the return address here.
To fix this problem, I've exchanged the usage of the temporary
registers 'rsi' and 'rdi' in the spread adapter such that we only
have to save the value of 'rsi' to the stack after the NULL check
PS: please don't forget to update the test directory name after a
bug id was assigned to this issue.