On 07/27/2011 12:41 PM, Charles Oliver Nutter wrote: > On Wed, Jul 27, 2011 at 3:21 AM, Rémi Forax<fo...@univ-mlv.fr> wrote: >> I've just read your slides [1]. >> I believe that the test before returning the result of add (slide 201) >> is a safepoint check. > Oh really? What is it doing with eax, though, since that has the > result of the add operation?
no idea why it use eax, but basically the second argument try to get the value at the address of the page that will be protected if a safepoint is needed. So if a safepoint is requested, 'test' will do a page fault, and the page fault handler will start to execute the safepoint code. > - Charlie Rémi _______________________________________________ mlvm-dev mailing list mlvm-dev@openjdk.java.net http://mail.openjdk.java.net/mailman/listinfo/mlvm-dev