jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From thom...@apache.org
Subject svn commit: r1213225 - /jackrabbit/sandbox/microkernel/src/test/java/org/apache/jackrabbit/mk/util/SynchronizedVerifierTest.java
Date Mon, 12 Dec 2011 13:13:45 GMT
Author: thomasm
Date: Mon Dec 12 13:13:45 2011
New Revision: 1213225

URL: http://svn.apache.org/viewvc?rev=1213225&view=rev
Log:
Support profiling and benchmarks.

Modified:
    jackrabbit/sandbox/microkernel/src/test/java/org/apache/jackrabbit/mk/util/SynchronizedVerifierTest.java

Modified: jackrabbit/sandbox/microkernel/src/test/java/org/apache/jackrabbit/mk/util/SynchronizedVerifierTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/microkernel/src/test/java/org/apache/jackrabbit/mk/util/SynchronizedVerifierTest.java?rev=1213225&r1=1213224&r2=1213225&view=diff
==============================================================================
--- jackrabbit/sandbox/microkernel/src/test/java/org/apache/jackrabbit/mk/util/SynchronizedVerifierTest.java
(original)
+++ jackrabbit/sandbox/microkernel/src/test/java/org/apache/jackrabbit/mk/util/SynchronizedVerifierTest.java
Mon Dec 12 13:13:45 2011
@@ -28,7 +28,7 @@ public class SynchronizedVerifierTest ex
     public void testReadRead() throws Exception {
         final AtomicInteger x = new AtomicInteger();
         SynchronizedVerifier.setDetect(AtomicInteger.class, true);
-        Concurrent.run(new Task() {
+        Concurrent.run("read", new Task() {
             public void call() throws Exception {
                 SynchronizedVerifier.check(x, false);
                 x.get();
@@ -41,7 +41,7 @@ public class SynchronizedVerifierTest ex
         final AtomicInteger x = new AtomicInteger();
         SynchronizedVerifier.setDetect(AtomicInteger.class, true);
         try {
-            Concurrent.run(new Task() {
+            Concurrent.run("readWrite", new Task() {
                 public void call() throws Exception {
                     if (Thread.currentThread().getName().endsWith("1")) {
                         SynchronizedVerifier.check(x, true);
@@ -64,7 +64,7 @@ public class SynchronizedVerifierTest ex
         final AtomicInteger x = new AtomicInteger();
         SynchronizedVerifier.setDetect(AtomicInteger.class, true);
         try {
-            Concurrent.run(new Task() {
+            Concurrent.run("write", new Task() {
                 public void call() throws Exception {
                     SynchronizedVerifier.check(x, true);
                     x.set(1);



Mime
View raw message