perfsonar-dev - [pS-dev] [GEANT/SA2/ps-java-services] r6005 - in trunk/perfsonar_base/src/main/java/org/perfsonar: base/auxiliary client/testHarness service/base/web
Subject: perfsonar development work
List archive
[pS-dev] [GEANT/SA2/ps-java-services] r6005 - in trunk/perfsonar_base/src/main/java/org/perfsonar: base/auxiliary client/testHarness service/base/web
Chronological Thread
- From:
- To:
- Subject: [pS-dev] [GEANT/SA2/ps-java-services] r6005 - in trunk/perfsonar_base/src/main/java/org/perfsonar: base/auxiliary client/testHarness service/base/web
- Date: Tue, 11 Sep 2012 08:41:47 +0100 (BST)
Author: nordunet.behrmann
Date: 2012-09-11 08:41:47 +0100 (Tue, 11 Sep 2012)
New Revision: 6005
Modified:
trunk/perfsonar_base/src/main/java/org/perfsonar/base/auxiliary/AuxiliaryComponentManager.java
trunk/perfsonar_base/src/main/java/org/perfsonar/client/testHarness/SOAPClientMulti.java
trunk/perfsonar_base/src/main/java/org/perfsonar/service/base/web/RequestHandler.java
Log:
Only synchronize on final fields.
Modified:
trunk/perfsonar_base/src/main/java/org/perfsonar/base/auxiliary/AuxiliaryComponentManager.java
===================================================================
---
trunk/perfsonar_base/src/main/java/org/perfsonar/base/auxiliary/AuxiliaryComponentManager.java
2012-09-11 07:41:46 UTC (rev 6004)
+++
trunk/perfsonar_base/src/main/java/org/perfsonar/base/auxiliary/AuxiliaryComponentManager.java
2012-09-11 07:41:47 UTC (rev 6005)
@@ -35,7 +35,7 @@
*/
private static AuxiliaryComponentManager componentManager = new
AuxiliaryComponentManager();
- private static volatile Object initialiseMutex = new Object();
+ private static final Object initialiseMutex = new Object();
private static volatile boolean initialised;
private static volatile boolean isInitialising;
Modified:
trunk/perfsonar_base/src/main/java/org/perfsonar/client/testHarness/SOAPClientMulti.java
===================================================================
---
trunk/perfsonar_base/src/main/java/org/perfsonar/client/testHarness/SOAPClientMulti.java
2012-09-11 07:41:46 UTC (rev 6004)
+++
trunk/perfsonar_base/src/main/java/org/perfsonar/client/testHarness/SOAPClientMulti.java
2012-09-11 07:41:47 UTC (rev 6005)
@@ -40,12 +40,14 @@
private String outputFile = null;
// Parent object to all thread
- private SOAPClientMulti parent = null;
+ private final SOAPClientMulti parent;
// Thread count
private int threadCount = 0;
// Dummy constructor used by static object
- public SOAPClientMulti() {}
+ public SOAPClientMulti() {
+ parent = null;
+ }
// Constructor filling endPoint, inputFile, outputFile vars
private SOAPClientMulti(SOAPClientMulti parent,
Modified:
trunk/perfsonar_base/src/main/java/org/perfsonar/service/base/web/RequestHandler.java
===================================================================
---
trunk/perfsonar_base/src/main/java/org/perfsonar/service/base/web/RequestHandler.java
2012-09-11 07:41:46 UTC (rev 6004)
+++
trunk/perfsonar_base/src/main/java/org/perfsonar/service/base/web/RequestHandler.java
2012-09-11 07:41:47 UTC (rev 6005)
@@ -42,7 +42,7 @@
private String saxParserConfig;
private volatile boolean initialised = false;
- private volatile Object initialisationMutex = new Object();
+ private final Object initialisationMutex = new Object();
/**
* Accepts web service based calls and gives back responses
- [pS-dev] [GEANT/SA2/ps-java-services] r6005 - in trunk/perfsonar_base/src/main/java/org/perfsonar: base/auxiliary client/testHarness service/base/web, svn-noreply, 09/11/2012
Archive powered by MHonArc 2.6.16.