RFR(S): 8166689: PPC64: Race condition between stack bang and non-entrant patching
martin.doerr at sap.com
Mon Sep 26 08:46:02 UTC 2016
I found a race condition between stack bang and non-entrant patching on linux PPC64.
The signal handler on linux PPC64 investigates the instruction when a stack bang has hit the protected zone. Another thread may patch the verified entry point preventing the signal handler from recognizing the stack overflow.
This problem can be prevented by rearranging C1's prolog code such that the stack bang instruction will never be at the verified entry point. C2's prolog code is already implemented accordingly.
My proposed fix is here:
I have also fixed a missing RewriteControl check in the template interpreter on PPC64.
Thanks and best regards,
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the hotspot-compiler-dev