#Test Results (version 2)
#Wed Jun 17 15:29:22 PDT 2015
#checksum:75f44897d818ac43
#-----testdescription-----
$file=C\:\\tmp\\sharedArchive-Win-8098815\\test\\hotspot\\test\\closed\\runtime\\AppCDS\\WrongClasspath.java
$root=C\:\\tmp\\sharedArchive-Win-8098815\\test\\hotspot\\test
library=/testlibrary
modules=java.base/sun.misc java.management jdk.jartool/sun.tools.jar
requires=(vm.opt.UseCompressedOops \=\= null) | (vm.opt.UseCompressedOops \=\= true)
run=USER_SPECIFIED compile test-classes/Hello.java\r\nUSER_SPECIFIED build TestCommon JarBuilder\r\nUSER_SPECIFIED main WrongClasspath\r\n
source=WrongClasspath.java
title=classpath mismatch between dump time and execution time AppCDS does not support uncompressed oops

#-----environment-----

#-----testresult-----
description=file\:/C\:/tmp/sharedArchive-Win-8098815/test/hotspot/test/closed/runtime/AppCDS/WrongClasspath.java
elapsed=8152 0\:00\:08.152
end=Wed Jun 17 15\:29\:22 PDT 2015
environment=regtest
execStatus=Passed. Execution successful
hostname=MSELEDTS-T430.oradev.oraclecorp.com
javatestOS=Windows 7 6.1 (amd64)
javatestVersion=4.4
jtregVersion=jtreg 4.1 fcs b11
script=com.sun.javatest.regtest.RegressionScript 
sections=script_messages compile build build compile main
start=Wed Jun 17 15\:29\:14 PDT 2015
test=closed/runtime/AppCDS/WrongClasspath.java
user.name=mseledts
work=C\:\\tmp\\sharedArchive-Win-8098815\\resultsWithFlags\\JTwork\\closed\\runtime\\AppCDS

#section:script_messages
----------messages:(5/303)*----------
JDK under test: (C:\\tmp\\sharedArchive-Win-8098815\\jdk)
java version "1.9.0-internal-fastdebug"
Java(TM) SE Runtime Environment (build 1.9.0-internal-fastdebug-20150617172159.trbenson.hs-rt-b00)
Java HotSpot(TM) 64-Bit Server VM (build 1.9.0-internal-20150617172159.trbenson.hs-rt-b00, mixed mode)


#section:compile
----------messages:(3/225)*----------
command: compile C:\\tmp\\sharedArchive-Win-8098815\\test\\hotspot\\test\\closed\\runtime\\AppCDS\\test-classes\\Hello.java
reason: User specified action: run compile test-classes/Hello.java 
elapsed time (seconds): 3.337
----------rerun:(25/2736)*----------
PATH='C:\\ProgramData\\Oracle\\Java\\javapath;C:\\windows\\system32;C:\\windows;C:\\windows\\System32\\Wbem;C:\\windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Program Files\\TortoiseHg\\;C:\\Program Files (x86)\\Windows Kits\\8.0\\Windows Performance Toolkit\\;C:\\Program Files\\Microsoft SQL Server\\110\\Tools\\Binn\\;C:\\Program Files\\Microsoft Windows Performance Toolkit\\;C:\\Program Files (x86)\\Skype\\Phone\\' \\
SystemDrive=C: \\
SystemRoot='C:\\windows' \\
TEMP='C:\\Users\\mseledts\\AppData\\Local\\Temp' \\
TMP='C:\\Users\\mseledts\\AppData\\Local\\Temp' \\
windir='C:\\windows' \\
    'C:\\tmp\\sharedArchive-Win-8098815\\jdk\\bin\\javac' \\
        -J-server \\
        -J-Xmixed \\
        -J-XX:MaxRAMFraction=8 \\
        -J-XX:+CreateCoredumpOnCrash \\
        -J-XX:+UseG1GC \\
        -J-XX:MaxRAMFraction=8 \\
        -J-Dtest.src='C:\\tmp\\sharedArchive-Win-8098815\\test\\hotspot\\test\\closed\\runtime\\AppCDS' \\
        -J-Dtest.src.path='C:\\tmp\\sharedArchive-Win-8098815\\test\\hotspot\\test\\closed\\runtime\\AppCDS;C:\\tmp\\sharedArchive-Win-8098815\\test\\hotspot\\test\\testlibrary' \\
        -J-Dtest.classes='C:\\tmp\\sharedArchive-Win-8098815\\resultsWithFlags\\JTwork\\classes\\closed\\runtime\\AppCDS' \\
        -J-Dtest.class.path='C:\\tmp\\sharedArchive-Win-8098815\\resultsWithFlags\\JTwork\\classes\\closed\\runtime\\AppCDS;C:\\tmp\\sharedArchive-Win-8098815\\resultsWithFlags\\JTwork\\classes\\testlibrary' \\
        -J-Dtest.vm.opts='-server -Xmixed -XX:MaxRAMFraction=8 -XX:+CreateCoredumpOnCrash -XX:+UseG1GC -XX:MaxRAMFraction=8' \\
        -J-Dtest.tool.vm.opts='-J-server -J-Xmixed -J-XX:MaxRAMFraction=8 -J-XX:+CreateCoredumpOnCrash -J-XX:+UseG1GC -J-XX:MaxRAMFraction=8' \\
        -J-Dtest.compiler.opts= \\
        -J-Dtest.java.opts= \\
        -J-Dtest.jdk='C:\\tmp\\sharedArchive-Win-8098815\\jdk' \\
        -J-Dcompile.jdk='C:\\tmp\\sharedArchive-Win-8098815\\jdk' \\
        -J-Dtest.timeout.factor=1.0 \\
        -d 'C:\\tmp\\sharedArchive-Win-8098815\\resultsWithFlags\\JTwork\\classes\\closed\\runtime\\AppCDS' -classpath 'C:\\tools\\jtreg\\latest\\lib\\javatest.jar;C:\\tools\\jtreg\\latest\\lib\\jtreg.jar;C:\\tmp\\sharedArchive-Win-8098815\\resultsWithFlags\\JTwork\\classes\\closed\\runtime\\AppCDS;C:\\tmp\\sharedArchive-Win-8098815\\test\\hotspot\\test\\closed\\runtime\\AppCDS;C:\\tmp\\sharedArchive-Win-8098815\\resultsWithFlags\\JTwork\\classes\\testlibrary' -sourcepath 'C:\\tmp\\sharedArchive-Win-8098815\\test\\hotspot\\test\\closed\\runtime\\AppCDS;C:\\tmp\\sharedArchive-Win-8098815\\test\\hotspot\\test\\testlibrary' 'C:\\tmp\\sharedArchive-Win-8098815\\test\\hotspot\\test\\closed\\runtime\\AppCDS\\test-classes\\Hello.java'
----------System.out:(0/0)----------
----------System.err:(0/0)----------
result: Passed. Compilation successful

#section:build
----------messages:(3/134)----------
command: build TestCommon JarBuilder
reason: User specified action: run build TestCommon JarBuilder 
elapsed time (seconds): 0.001
result: Passed. All files up to date

#section:build
----------messages:(3/102)----------
command: build WrongClasspath
reason: Named class compiled on demand
elapsed time (seconds): 3.318
result: Passed. Build successful

#section:compile
----------messages:(3/229)*----------
command: compile -XDignore.symbol.file=true C:\\tmp\\sharedArchive-Win-8098815\\test\\hotspot\\test\\closed\\runtime\\AppCDS\\WrongClasspath.java
reason: .class file out of date or does not exist
elapsed time (seconds): 3.317
----------rerun:(25/2758)*----------
PATH='C:\\ProgramData\\Oracle\\Java\\javapath;C:\\windows\\system32;C:\\windows;C:\\windows\\System32\\Wbem;C:\\windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Program Files\\TortoiseHg\\;C:\\Program Files (x86)\\Windows Kits\\8.0\\Windows Performance Toolkit\\;C:\\Program Files\\Microsoft SQL Server\\110\\Tools\\Binn\\;C:\\Program Files\\Microsoft Windows Performance Toolkit\\;C:\\Program Files (x86)\\Skype\\Phone\\' \\
SystemDrive=C: \\
SystemRoot='C:\\windows' \\
TEMP='C:\\Users\\mseledts\\AppData\\Local\\Temp' \\
TMP='C:\\Users\\mseledts\\AppData\\Local\\Temp' \\
windir='C:\\windows' \\
    'C:\\tmp\\sharedArchive-Win-8098815\\jdk\\bin\\javac' \\
        -J-server \\
        -J-Xmixed \\
        -J-XX:MaxRAMFraction=8 \\
        -J-XX:+CreateCoredumpOnCrash \\
        -J-XX:+UseG1GC \\
        -J-XX:MaxRAMFraction=8 \\
        -J-Dtest.src='C:\\tmp\\sharedArchive-Win-8098815\\test\\hotspot\\test\\closed\\runtime\\AppCDS' \\
        -J-Dtest.src.path='C:\\tmp\\sharedArchive-Win-8098815\\test\\hotspot\\test\\closed\\runtime\\AppCDS;C:\\tmp\\sharedArchive-Win-8098815\\test\\hotspot\\test\\testlibrary' \\
        -J-Dtest.classes='C:\\tmp\\sharedArchive-Win-8098815\\resultsWithFlags\\JTwork\\classes\\closed\\runtime\\AppCDS' \\
        -J-Dtest.class.path='C:\\tmp\\sharedArchive-Win-8098815\\resultsWithFlags\\JTwork\\classes\\closed\\runtime\\AppCDS;C:\\tmp\\sharedArchive-Win-8098815\\resultsWithFlags\\JTwork\\classes\\testlibrary' \\
        -J-Dtest.vm.opts='-server -Xmixed -XX:MaxRAMFraction=8 -XX:+CreateCoredumpOnCrash -XX:+UseG1GC -XX:MaxRAMFraction=8' \\
        -J-Dtest.tool.vm.opts='-J-server -J-Xmixed -J-XX:MaxRAMFraction=8 -J-XX:+CreateCoredumpOnCrash -J-XX:+UseG1GC -J-XX:MaxRAMFraction=8' \\
        -J-Dtest.compiler.opts= \\
        -J-Dtest.java.opts= \\
        -J-Dtest.jdk='C:\\tmp\\sharedArchive-Win-8098815\\jdk' \\
        -J-Dcompile.jdk='C:\\tmp\\sharedArchive-Win-8098815\\jdk' \\
        -J-Dtest.timeout.factor=1.0 \\
        -d 'C:\\tmp\\sharedArchive-Win-8098815\\resultsWithFlags\\JTwork\\classes\\closed\\runtime\\AppCDS' -classpath 'C:\\tools\\jtreg\\latest\\lib\\javatest.jar;C:\\tools\\jtreg\\latest\\lib\\jtreg.jar;C:\\tmp\\sharedArchive-Win-8098815\\resultsWithFlags\\JTwork\\classes\\closed\\runtime\\AppCDS;C:\\tmp\\sharedArchive-Win-8098815\\test\\hotspot\\test\\closed\\runtime\\AppCDS;C:\\tmp\\sharedArchive-Win-8098815\\resultsWithFlags\\JTwork\\classes\\testlibrary' -sourcepath 'C:\\tmp\\sharedArchive-Win-8098815\\test\\hotspot\\test\\closed\\runtime\\AppCDS;C:\\tmp\\sharedArchive-Win-8098815\\test\\hotspot\\test\\testlibrary' -XDignore.symbol.file=true 'C:\\tmp\\sharedArchive-Win-8098815\\test\\hotspot\\test\\closed\\runtime\\AppCDS\\WrongClasspath.java'
----------System.out:(0/0)----------
----------System.err:(0/0)----------
result: Passed. Compilation successful

#section:main
----------messages:(3/118)----------
command: main WrongClasspath
reason: User specified action: run main WrongClasspath 
elapsed time (seconds): 1.494
----------System.out:(98/7697)*----------
Command line: [C:\\tmp\\sharedArchive-Win-8098815\\jdk\\bin\\java.exe -cp C:\\tools\\jtreg\\latest\\lib\\javatest.jar;C:\\tools\\jtreg\\latest\\lib\\jtreg.jar;C:\\tmp\\sharedArchive-Win-8098815\\resultsWithFlags\\JTwork\\classes\\closed\\runtime\\AppCDS;C:\\tmp\\sharedArchive-Win-8098815\\test\\hotspot\\test\\closed\\runtime\\AppCDS;C:\\tmp\\sharedArchive-Win-8098815\\resultsWithFlags\\JTwork\\classes\\testlibrary -server -Xmixed -XX:MaxRAMFraction=8 -XX:+CreateCoredumpOnCrash -XX:+UseG1GC -XX:MaxRAMFraction=8 -showversion -XX:+UnlockCommercialFeatures -XX:SharedArchiveFile=./appcds.jsa -XX:+UseAppCDS -Xshare:dump -XX:+PrintSharedSpaces -cp C:\\tmp\\sharedArchive-Win-8098815\\resultsWithFlags\\JTwork\\classes\\closed\\runtime\\AppCDS\\hello.jar -XX:ExtraSharedClassListFile=C:\\tmp\\sharedArchive-Win-8098815\\resultsWithFlags\\JTwork\\classes\\closed\\runtime\\AppCDS\\WrongClasspath-test.classlist ]
[ELAPSED: 917 ms]
[STDOUT]
Allocated shared space: 37879808 bytes at 0x0000000800000000
Loading classes to share ...
Preload Warning: Cannot find java/awt/GraphicsEnvironment$1
Preload Warning: Cannot find java/lang/Compiler$1
Preload Warning: Cannot find java/net/InetAddress$Cache
Preload Warning: Cannot find java/net/InetAddress$Cache$Type
Preload Warning: Cannot find java/net/InetAddress$CacheEntry
Preload Warning: Cannot find java/security/ProtectionDomain$3
Preload Warning: Cannot find javax/swing/JComponent$2
Preload Warning: Cannot find javax/swing/RepaintManager$1$1
Preload Warning: Cannot find javax/swing/TimerQueue$1
Preload Warning: Cannot find javax/swing/plaf/metal/MetalLookAndFeel$MetalLazyValue
Preload Warning: Cannot find javax/swing/plaf/metal/MetalLookAndFeel$MetalLazyValue$1
Preload Warning: Cannot find javax/swing/text/AbstractDocument$InsertStringResult
Preload Warning: Cannot find sun/awt/EventQueueDelegate
Preload Warning: Cannot find sun/awt/WindowClosingListener
Preload Warning: Cannot find sun/awt/WindowClosingSupport
Preload Warning: Cannot find sun/awt/windows/WToolkit$3$1
Preload Warning: Cannot find sun/java2d/Disposer$2
Preload Warning: Cannot find sun/java2d/d3d/D3DScreenUpdateManager$1
Preload Warning: Cannot find sun/java2d/d3d/D3DScreenUpdateManager$1$1
Preload Warning: Cannot find sun/java2d/pipe/RenderingEngine$1
Preload Warning: Cannot find sun/misc/ExtensionDependency
Preload Warning: Cannot find sun/swing/SwingLazyValue
Preload Warning: Cannot find sun/swing/SwingLazyValue$1
Preload Warning: Cannot find sun/swing/SwingUtilities2$2
Loading classes to share: done.
Shared spaces: preloaded 2354 classes
Rewriting and linking classes ...
Rewriting and linking classes: done
Number of classes 2371
    instance classes   =  2357
    obj array classes  =     6
    type array classes =     8
Updating ConstMethods ... done. 
Removing unshareable information ... done. 
Shared symbol table stats -------- base: 0x0000000800000000
Number of entries       :     57102
Total bytes used        :    509604
Average bytes per entry :     9.000
Average bucket size     :     4.000
Variance of bucket size :     4.014
Std. dev. of bucket size:     2.003
Maximum bucket size     :        14
ro space:   7931736 [ 40.9% of total] out of  16777216 bytes [47.3% used] at 0x0000000800000000
rw space:  10769256 [ 55.5% of total] out of  16777216 bytes [64.2% used] at 0x0000000801000000
md space:    680584 [  3.5% of total] out of   4194304 bytes [16.2% used] at 0x0000000802000000
mc space:     34053 [  0.2% of total] out of    131072 bytes [26.0% used] at 0x0000000802400000
st space:         0 [  0.0% of total] out of         0 bytes [100.0% used] at 0x0000000000000000
total   :  19415629 [100.0% of total] out of  37879808 bytes [51.3% used]
Dumping shared data to file: 
   ./appcds.jsa
Shared file region 0: 0x790758 bytes, addr 0x0000000800000000 file offset 0x 10000
Shared file region 1: 0xa45368 bytes, addr 0x0000000801000000 file offset 0x7b0000
Shared file region 2: 0x a6288 bytes, addr 0x0000000802000000 file offset 0x1200000
Shared file region 3: 0x  8505 bytes, addr 0x0000000802400000 file offset 0x12b0000
Shared file region 4: 0x     0 bytes, addr 0x0000000000000000 file offset 0x12c0000
Shared file region 5: 0x     0 bytes, addr 0x0000000000000000 file offset 0x12c0000
Detailed metadata info (rw includes md and mc):
                        ro_cnt   ro_bytes     % |   rw_cnt   rw_bytes     % |  all_cnt  all_bytes     %
--------------------+---------------------------+---------------------------+--------------------------
Unknown             :        1         48   0.0 |        1         48   0.0 |        2         96   0.0
Class               :        0          0   0.0 |     2371    1887848  16.4 |     2371    1887848   9.7
Symbol              :    57102    2103232  26.5 |        0          0   0.0 |    57102    2103232  10.8
TypeArrayU1         :    13191     479112   6.0 |     2371     419024   3.6 |    15562     898136   4.6
TypeArrayU2         :     4933     280072   3.5 |        0          0   0.0 |     4933     280072   1.4
TypeArrayU4         :     2482     153952   1.9 |        0          0   0.0 |     2482     153952   0.8
TypeArrayU8         :     3841     325648   4.1 |        0          0   0.0 |     3841     325648   1.7
TypeArrayOther      :        0          0   0.0 |        0          0   0.0 |        0          0   0.0
Method              :        0          0   0.0 |    31915    3077760  26.8 |    31915    3077760  15.9
ConstMethod         :    31915    4585304  57.8 |        0          0   0.0 |    31915    4585304  23.6
MethodData          :        0          0   0.0 |        0          0   0.0 |        0          0   0.0
ConstantPool        :        0          0   0.0 |     2371    3339416  29.1 |     2371    3339416  17.2
ConstantPoolCache   :        0          0   0.0 |     2357    2045160  17.8 |     2357    2045160  10.5
Annotation          :       32       1024   0.0 |        0          0   0.0 |       32       1024   0.0
MethodCounters      :        0          0   0.0 |        0          0   0.0 |        0          0   0.0
Deallocated         :       26       3344   0.0 |        0          0   0.0 |       26       3344   0.0
SymbolHashentry     :        0          0   0.0 |    57102     452480   3.9 |    57102     452480   2.3
SymbolBucket        :        0          0   0.0 |    14276      57108   0.5 |    14276      57108   0.3
Other               :        0          0   0.0 |        0     205049   1.8 |        0     205049   1.1
--------------------+---------------------------+---------------------------+--------------------------
Total               :   113523    7931736 100.0 |   112764   11483893 100.0 |   226287   19415629 100.0

[STDERR]

Command line: [C:\\tmp\\sharedArchive-Win-8098815\\jdk\\bin\\java.exe -cp C:\\tools\\jtreg\\latest\\lib\\javatest.jar;C:\\tools\\jtreg\\latest\\lib\\jtreg.jar;C:\\tmp\\sharedArchive-Win-8098815\\resultsWithFlags\\JTwork\\classes\\closed\\runtime\\AppCDS;C:\\tmp\\sharedArchive-Win-8098815\\test\\hotspot\\test\\closed\\runtime\\AppCDS;C:\\tmp\\sharedArchive-Win-8098815\\resultsWithFlags\\JTwork\\classes\\testlibrary -server -Xmixed -XX:MaxRAMFraction=8 -XX:+CreateCoredumpOnCrash -XX:+UseG1GC -XX:MaxRAMFraction=8 -XX:SharedArchiveFile=./appcds.jsa -XX:+UnlockCommercialFeatures -XX:+UseAppCDS -Xshare:on -showversion Hello ]
[ELAPSED: 105 ms]
[STDOUT]
Error occurred during initialization of VM
Unable to use shared archive.

[STDERR]
An error has occurred while processing the shared archive file.
shared class paths mismatch (hint: enable -XX:+TraceClassPaths to diagnose the failure)

----------System.err:(1/16)----------
STATUS:Passed.
----------rerun:(21/2431)*----------
PATH='C:\\ProgramData\\Oracle\\Java\\javapath;C:\\windows\\system32;C:\\windows;C:\\windows\\System32\\Wbem;C:\\windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Program Files\\TortoiseHg\\;C:\\Program Files (x86)\\Windows Kits\\8.0\\Windows Performance Toolkit\\;C:\\Program Files\\Microsoft SQL Server\\110\\Tools\\Binn\\;C:\\Program Files\\Microsoft Windows Performance Toolkit\\;C:\\Program Files (x86)\\Skype\\Phone\\' \\
SystemDrive=C: \\
SystemRoot='C:\\windows' \\
TEMP='C:\\Users\\mseledts\\AppData\\Local\\Temp' \\
TMP='C:\\Users\\mseledts\\AppData\\Local\\Temp' \\
windir='C:\\windows' \\
CLASSPATH='C:\\tools\\jtreg\\latest\\lib\\javatest.jar;C:\\tools\\jtreg\\latest\\lib\\jtreg.jar;C:\\tmp\\sharedArchive-Win-8098815\\resultsWithFlags\\JTwork\\classes\\closed\\runtime\\AppCDS;C:\\tmp\\sharedArchive-Win-8098815\\test\\hotspot\\test\\closed\\runtime\\AppCDS;C:\\tmp\\sharedArchive-Win-8098815\\resultsWithFlags\\JTwork\\classes\\testlibrary' \\
    'C:\\tmp\\sharedArchive-Win-8098815\\jdk\\bin\\java' \\
        -Dtest.src='C:\\tmp\\sharedArchive-Win-8098815\\test\\hotspot\\test\\closed\\runtime\\AppCDS' \\
        -Dtest.src.path='C:\\tmp\\sharedArchive-Win-8098815\\test\\hotspot\\test\\closed\\runtime\\AppCDS;C:\\tmp\\sharedArchive-Win-8098815\\test\\hotspot\\test\\testlibrary' \\
        -Dtest.classes='C:\\tmp\\sharedArchive-Win-8098815\\resultsWithFlags\\JTwork\\classes\\closed\\runtime\\AppCDS' \\
        -Dtest.class.path='C:\\tmp\\sharedArchive-Win-8098815\\resultsWithFlags\\JTwork\\classes\\closed\\runtime\\AppCDS;C:\\tmp\\sharedArchive-Win-8098815\\resultsWithFlags\\JTwork\\classes\\testlibrary' \\
        -Dtest.vm.opts='-server -Xmixed -XX:MaxRAMFraction=8 -XX:+CreateCoredumpOnCrash -XX:+UseG1GC -XX:MaxRAMFraction=8' \\
        -Dtest.tool.vm.opts='-J-server -J-Xmixed -J-XX:MaxRAMFraction=8 -J-XX:+CreateCoredumpOnCrash -J-XX:+UseG1GC -J-XX:MaxRAMFraction=8' \\
        -Dtest.compiler.opts= \\
        -Dtest.java.opts= \\
        -Dtest.jdk='C:\\tmp\\sharedArchive-Win-8098815\\jdk' \\
        -Dcompile.jdk='C:\\tmp\\sharedArchive-Win-8098815\\jdk' \\
        -Dtest.timeout.factor=1.0 \\
        -server -Xmixed -XX:MaxRAMFraction=8 -XX:+CreateCoredumpOnCrash -XX:+UseG1GC -XX:MaxRAMFraction=8 \\
        com.sun.javatest.regtest.agent.MainWrapper 'C:\\tmp\\sharedArchive-Win-8098815\\resultsWithFlags\\JTwork\\classes\\closed\\runtime\\AppCDS\\WrongClasspath.jta'
result: Passed. Execution successful


test result: Passed. Execution successful
