From: <cap...@us...> - 2007-09-18 15:30:32
|
Revision: 13632 http://jikesrvm.svn.sourceforge.net/jikesrvm/?rev=13632&view=rev Author: captain5050 Date: 2007-09-18 08:30:26 -0700 (Tue, 18 Sep 2007) Log Message: ----------- Insert pause on Intel when we detect microcontention, see RVM-218 Modified Paths: -------------- rvmroot/trunk/rvm/src/org/jikesrvm/scheduler/VM_ProcessorLock.java Modified: rvmroot/trunk/rvm/src/org/jikesrvm/scheduler/VM_ProcessorLock.java =================================================================== --- rvmroot/trunk/rvm/src/org/jikesrvm/scheduler/VM_ProcessorLock.java 2007-09-18 15:11:17 UTC (rev 13631) +++ rvmroot/trunk/rvm/src/org/jikesrvm/scheduler/VM_ProcessorLock.java 2007-09-18 15:30:26 UTC (rev 13632) @@ -218,7 +218,8 @@ */ @NoInline private static void handleMicrocontention(int n) { - if (n <= 0) return; // method call overhead is delay enough + VM_Magic.pause(); // reduce overhead of spin wait on IA + if (n <= 0) return; // method call overhead is delay enough if (n > 100) { VM.sysWriteln("Unexpectedly large processor lock contention"); VM_Scheduler.dumpStack(); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |