logging-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rpo...@apache.org
Subject svn commit: r1486312 - in /logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/helpers: CachedClock.java CoarseCachedClock.java
Date Sat, 25 May 2013 10:38:27 GMT
Author: rpopma
Date: Sat May 25 10:38:27 2013
New Revision: 1486312

URL: http://svn.apache.org/r1486312
Log:
removed commented-out code

Modified:
    logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/helpers/CachedClock.java
    logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/helpers/CoarseCachedClock.java

Modified: logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/helpers/CachedClock.java
URL: http://svn.apache.org/viewvc/logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/helpers/CachedClock.java?rev=1486312&r1=1486311&r2=1486312&view=diff
==============================================================================
--- logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/helpers/CachedClock.java
(original)
+++ logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/helpers/CachedClock.java
Sat May 25 10:38:27 2013
@@ -37,9 +37,9 @@ public final class CachedClock implement
             while (true) {
                 long time = System.currentTimeMillis();
                 millis = time;
+                
+                // avoid explicit dependency on sun.misc.Util
                 LockSupport.parkNanos(1000 * 1000);
-                // Util.getUnsafe().park(true, time + 1); // abs (millis)
-                // Util.getUnsafe().park(false, 1000 * 1000);// relative(nanos)
             }
         }
     };

Modified: logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/helpers/CoarseCachedClock.java
URL: http://svn.apache.org/viewvc/logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/helpers/CoarseCachedClock.java?rev=1486312&r1=1486311&r2=1486312&view=diff
==============================================================================
--- logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/helpers/CoarseCachedClock.java
(original)
+++ logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/helpers/CoarseCachedClock.java
Sat May 25 10:38:27 2013
@@ -32,9 +32,9 @@ public final class CoarseCachedClock imp
             while (true) {
                 long time = System.currentTimeMillis();
                 millis = time;
+                
+                // avoid explicit dependency on sun.misc.Util
                 LockSupport.parkNanos(1000 * 1000);
-                // Util.getUnsafe().park(true, time + 1); // abs (millis)
-                // Util.getUnsafe().park(false, 1000 * 1000);// relative(nanos)
             }
         }
     };



Mime
View raw message