Mercurial > hg > truffle
comparison 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 |
comparison
equal
deleted
inserted
replaced
12156:2918c7e21a3a | 12157:35b99e7e0af2 |
---|---|
49 output = new OutputAnalyzer(pb.start()); | 49 output = new OutputAnalyzer(pb.start()); |
50 output.shouldContain("sharing"); | 50 output.shouldContain("sharing"); |
51 output.shouldHaveExitValue(0); | 51 output.shouldHaveExitValue(0); |
52 | 52 |
53 } catch (RuntimeException e) { | 53 } catch (RuntimeException e) { |
54 // Report 'passed' if CDS was turned off because we could not allocate | 54 // Report 'passed' if CDS was turned off. |
55 // the klass metaspace at an address that would work with CDS. | 55 output.shouldContain("Unable to use shared archive"); |
56 output.shouldContain("Could not allocate metaspace at a compatible address"); | |
57 output.shouldHaveExitValue(1); | 56 output.shouldHaveExitValue(1); |
58 } | 57 } |
59 } | 58 } |
60 } | 59 } |
61 } | 60 } |