changeset 13815:9a8e4dfae480

avoid profile pathology in CompressedOopTest
author Tom Rodriguez <tom.rodriguez@oracle.com>
date Wed, 29 Jan 2014 14:05:05 -0800
parents b42977294f02
children d006a6332db8
files graal/com.oracle.graal.hotspot.test/src/com/oracle/graal/hotspot/test/CompressedOopTest.java
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/graal/com.oracle.graal.hotspot.test/src/com/oracle/graal/hotspot/test/CompressedOopTest.java	Tue Jan 28 13:20:56 2014 -0800
+++ b/graal/com.oracle.graal.hotspot.test/src/com/oracle/graal/hotspot/test/CompressedOopTest.java	Wed Jan 29 14:05:05 2014 -0800
@@ -198,6 +198,10 @@
         }
         int j = 0;
         while (j < objects.length) {
+            if (!installedBenchmarkCode.isValid()) {
+                // This can get invalidated due to lack of MDO update
+                installedBenchmarkCode = getInstalledCode("queueTest");
+            }
             installedBenchmarkCode.execute(q, objects[j], null);
             j++;
         }