changeset 1162:0ea217986c8e

link: unconditionally overwrite the received metadata.
author shade
date Thu, 19 Mar 2015 22:31:44 +0300
parents 9d9c35e9cf04
children 5bb27724a701
files jmh-core/src/main/java/org/openjdk/jmh/runner/link/BinaryLinkServer.java
diffstat 1 files changed, 1 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/jmh-core/src/main/java/org/openjdk/jmh/runner/link/BinaryLinkServer.java	Thu Mar 19 22:28:25 2015 +0300
+++ b/jmh-core/src/main/java/org/openjdk/jmh/runner/link/BinaryLinkServer.java	Thu Mar 19 22:31:44 2015 +0300
@@ -328,9 +328,7 @@
         }
 
         private void handleResultMetadata(ResultMetadataFrame obj) {
-            if (!metadata.compareAndSet(null, obj.getMD())) {
-                throw new IllegalStateException("Metadata had been already received");
-            }
+            metadata.set(obj.getMD());
         }
 
         private void handleOutput(OutputFrame obj) {