SF.net SVN: jikesrvm:[15698] rvmroot/trunk/rvm/src/org/jikesrvm/scheduler/ ThinLock.java

View: New views
1 Messages — Rating Filter:   Alert me  

SF.net SVN: jikesrvm:[15698] rvmroot/trunk/rvm/src/org/jikesrvm/scheduler/ ThinLock.java

by dframpton-oss :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Revision: 15698
          http://jikesrvm.svn.sourceforge.net/jikesrvm/?rev=15698&view=rev
Author:   dframpton-oss
Date:     2009-05-27 02:27:06 +0000 (Wed, 27 May 2009)

Log Message:
-----------
Improve the name of the constant added in the last commit.

Modified Paths:
--------------
    rvmroot/trunk/rvm/src/org/jikesrvm/scheduler/ThinLock.java

Modified: rvmroot/trunk/rvm/src/org/jikesrvm/scheduler/ThinLock.java
===================================================================
--- rvmroot/trunk/rvm/src/org/jikesrvm/scheduler/ThinLock.java 2009-05-27 00:07:59 UTC (rev 15697)
+++ rvmroot/trunk/rvm/src/org/jikesrvm/scheduler/ThinLock.java 2009-05-27 02:27:06 UTC (rev 15698)
@@ -30,7 +30,7 @@
 @Uninterruptible
 public final class ThinLock implements ThinLockConstants {
 
-  private static final boolean ENABLED = true;
+  private static final boolean ENABLE_BIASED_LOCKING = true;
 
   @Inline
   @NoNullCheck
@@ -91,7 +91,7 @@
       if (stat.EQ(TL_STAT_BIASABLE)) {
         Word id = old.and(TL_THREAD_ID_MASK);
         if (id.isZero()) {
-          if (ENABLED) {
+          if (ENABLE_BIASED_LOCKING) {
             // lock is unbiased, bias it in our favor and grab it
             if (Synchronization.tryCompareAndSwap(
                   o, lockOffset,


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.

------------------------------------------------------------------------------
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, &
iPhoneDevCamp as they present alongside digital heavyweights like Barbarian
Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com 
_______________________________________________
Jikesrvm-commits mailing list
Jikesrvm-commits@...
https://lists.sourceforge.net/lists/listinfo/jikesrvm-commits