diff test/runtime/CDSCompressedKPtrs/CDSCompressedKPtrs.java @ 12157:35b99e7e0af2

8023381: VM fails to initialize in runtime/CDSCompressedKPtrs/XShareAuto.java runtime/SharedArchiveFile/CdsSameObjectAlignment.java Summary: Improve handling when CDS archive cannot be mapped Reviewed-by: kvn, dholmes, mseledtsov
author hseigel
date Sun, 01 Sep 2013 10:37:01 -0400
parents 740e263c80c6
children 7944aba7ba41
line wrap: on
line diff
--- a/test/runtime/CDSCompressedKPtrs/CDSCompressedKPtrs.java	Fri Aug 30 15:42:01 2013 -0700
+++ b/test/runtime/CDSCompressedKPtrs/CDSCompressedKPtrs.java	Sun Sep 01 10:37:01 2013 -0400
@@ -51,9 +51,8 @@
         output.shouldHaveExitValue(0);
 
       } catch (RuntimeException e) {
-        // Report 'passed' if CDS was turned off because we could not allocate
-        // the klass metaspace at an address that would work with CDS.
-        output.shouldContain("Could not allocate metaspace at a compatible address");
+        // Report 'passed' if CDS was turned off.
+        output.shouldContain("Unable to use shared archive");
         output.shouldHaveExitValue(1);
       }
     }