#Test Results (version 2)
#Wed Jun 17 15:22:03 PDT 2015
#checksum:4dce65c5e7ab8bce
#-----testdescription-----
$file=C\:\\tmp\\sharedArchive-Win-8098815\\test\\hotspot\\test\\closed\\runtime\\AppCDS\\classLoaderConstraints\\ClassLoaderConstraints03.java
$root=C\:\\tmp\\sharedArchive-Win-8098815\\test\\hotspot\\test
library=/testlibrary
modules=java.base/sun.misc java.management
requires=(vm.opt.UseCompressedOops \=\= null) | (vm.opt.UseCompressedOops \=\= true)
run=USER_SPECIFIED compile ../TestCommon.java\r\nUSER_SPECIFIED build SingleTestWrapper\r\nUSER_SPECIFIED main SingleTestWrapper loadingConstraints006/loadingConstraints00603 loadingConstraints00603\r\nUSER_SPECIFIED main SingleTestWrapper loadingConstraints006/loadingConstraints00604 loadingConstraints00604\r\nUSER_SPECIFIED main SingleTestWrapper loadingConstraints006/loadingConstraints00605 loadingConstraints00605\r\n
source=ClassLoaderConstraints03.java
title=This is a wrapper to run class loader constraints tests in AppCDS mode; the tests were adopted from JCK AppCDS does not support uncompressed oops

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

#-----testresult-----
description=file\:/C\:/tmp/sharedArchive-Win-8098815/test/hotspot/test/closed/runtime/AppCDS/classLoaderConstraints/ClassLoaderConstraints03.java
elapsed=22376 0\:00\:22.376
end=Wed Jun 17 15\:22\:03 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 main build main build main
start=Wed Jun 17 15\:21\:41 PDT 2015
test=closed/runtime/AppCDS/classLoaderConstraints/ClassLoaderConstraints03.java
user.name=mseledts
work=C\:\\tmp\\sharedArchive-Win-8098815\\resultsWithFlags\\JTwork\\closed\\runtime\\AppCDS\\classLoaderConstraints

#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/239)*----------
command: compile C:\\tmp\\sharedArchive-Win-8098815\\test\\hotspot\\test\\closed\\runtime\\AppCDS\\classLoaderConstraints\\..\\TestCommon.java
reason: User specified action: run compile ../TestCommon.java 
elapsed time (seconds): 4.543
----------rerun:(25/2947)*----------
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\\classLoaderConstraints' \\
        -J-Dtest.src.path='C:\\tmp\\sharedArchive-Win-8098815\\test\\hotspot\\test\\closed\\runtime\\AppCDS\\classLoaderConstraints;C:\\tmp\\sharedArchive-Win-8098815\\test\\hotspot\\test\\testlibrary' \\
        -J-Dtest.classes='C:\\tmp\\sharedArchive-Win-8098815\\resultsWithFlags\\JTwork\\classes\\closed\\runtime\\AppCDS\\classLoaderConstraints' \\
        -J-Dtest.class.path='C:\\tmp\\sharedArchive-Win-8098815\\resultsWithFlags\\JTwork\\classes\\closed\\runtime\\AppCDS\\classLoaderConstraints;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\\classLoaderConstraints' -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\\classLoaderConstraints;C:\\tmp\\sharedArchive-Win-8098815\\test\\hotspot\\test\\closed\\runtime\\AppCDS\\classLoaderConstraints;C:\\tmp\\sharedArchive-Win-8098815\\resultsWithFlags\\JTwork\\classes\\testlibrary' -sourcepath 'C:\\tmp\\sharedArchive-Win-8098815\\test\\hotspot\\test\\closed\\runtime\\AppCDS\\classLoaderConstraints;C:\\tmp\\sharedArchive-Win-8098815\\test\\hotspot\\test\\testlibrary' 'C:\\tmp\\sharedArchive-Win-8098815\\test\\hotspot\\test\\closed\\runtime\\AppCDS\\classLoaderConstraints\\..\\TestCommon.java'
----------System.out:(0/0)----------
----------System.err:(0/0)----------
result: Passed. Compilation successful

#section:build
----------messages:(3/124)----------
command: build SingleTestWrapper
reason: User specified action: run build SingleTestWrapper 
elapsed time (seconds): 0.0
result: Passed. All files up to date

#section:build
----------messages:(3/103)----------
command: build SingleTestWrapper
reason: Named class compiled on demand
elapsed time (seconds): 0.0
result: Passed. All files up to date

#section:main
----------messages:(3/264)----------
command: main SingleTestWrapper loadingConstraints006/loadingConstraints00603 loadingConstraints00603
reason: User specified action: run main SingleTestWrapper loadingConstraints006/loadingConstraints00603 loadingConstraints00603 
elapsed time (seconds): 5.977
----------System.out:(44/4124)*----------
===== preparation
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\\classLoaderConstraints;C:\\tmp\\sharedArchive-Win-8098815\\test\\hotspot\\test\\closed\\runtime\\AppCDS\\classLoaderConstraints;C:\\tmp\\sharedArchive-Win-8098815\\resultsWithFlags\\JTwork\\classes\\testlibrary -XX:DumpLoadedClassList=.\\loadingConstraints006/loadingConstraints00603\\classlist -XX:+UnlockCommercialFeatures -XX:+UseAppCDS -cp .\\loadingConstraints006/loadingConstraints00603\\main.jar loadingConstraints00603 ]
[ELAPSED: 389 ms]
[STDOUT]
LinkageError thrown as expected: java.lang.LinkageError: loader constraint violation: loader (instance of TestLoader) previously initiated loading for a different type with name "TheClass"

[STDERR]

===== AppCDS dump
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\\classLoaderConstraints;C:\\tmp\\sharedArchive-Win-8098815\\test\\hotspot\\test\\closed\\runtime\\AppCDS\\classLoaderConstraints;C:\\tmp\\sharedArchive-Win-8098815\\resultsWithFlags\\JTwork\\classes\\testlibrary -server -Xmixed -XX:MaxRAMFraction=8 -XX:+CreateCoredumpOnCrash -XX:+UseG1GC -XX:MaxRAMFraction=8 -XX:+UnlockCommercialFeatures -XX:+UseAppCDS -XX:SharedClassListFile=.\\loadingConstraints006/loadingConstraints00603\\classlist -XX:SharedArchiveFile=.\\loadingConstraints006/loadingConstraints00603\\test.jsa -cp .\\loadingConstraints006/loadingConstraints00603\\main.jar -Xshare:dump ]
[ELAPSED: 267 ms]
[STDOUT]
Allocated shared space: 37879808 bytes at 0x0000000800000000
Loading classes to share ...
Loading classes to share: done.
Rewriting and linking classes ...
Rewriting and linking classes: done
Number of classes 495
    instance classes   =   481
    obj array classes  =     6
    type array classes =     8
Updating ConstMethods ... done. 
Removing unshareable information ... done. 
ro space:   1823104 [ 42.4% of total] out of  16777216 bytes [10.9% used] at 0x0000000800000000
rw space:   2239472 [ 52.1% of total] out of  16777216 bytes [13.3% used] at 0x0000000801000000
md space:    200472 [  4.7% of total] out of   4194304 bytes [ 4.8% used] at 0x0000000802000000
mc space:     34053 [  0.8% 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   :   4297101 [100.0% of total] out of  37879808 bytes [11.3% used]

[STDERR]

===== run with AppCDS
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\\classLoaderConstraints;C:\\tmp\\sharedArchive-Win-8098815\\test\\hotspot\\test\\closed\\runtime\\AppCDS\\classLoaderConstraints;C:\\tmp\\sharedArchive-Win-8098815\\resultsWithFlags\\JTwork\\classes\\testlibrary -server -Xmixed -XX:MaxRAMFraction=8 -XX:+CreateCoredumpOnCrash -XX:+UseG1GC -XX:MaxRAMFraction=8 -XX:+UnlockCommercialFeatures -XX:+UseAppCDS -XX:SharedArchiveFile=.\\loadingConstraints006/loadingConstraints00603\\test.jsa -cp .\\loadingConstraints006/loadingConstraints00603\\main.jar -Xshare:on -showversion loadingConstraints00603 ]
[ELAPSED: 378 ms]
[STDOUT]
LinkageError thrown as expected: java.lang.LinkageError: loader constraint violation: loader (instance of TestLoader) previously initiated loading for a different type with name "TheClass"

[STDERR]
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, sharing)


----------System.err:(22/1017)----------
 stdout: [Allocated shared space: 37879808 bytes at 0x0000000800000000
Loading classes to share ...
Loading classes to share: done.
Rewriting and linking classes ...
Rewriting and linking classes: done
Number of classes 495
    instance classes   =   481
    obj array classes  =     6
    type array classes =     8
Updating ConstMethods ... done. 
Removing unshareable information ... done. 
ro space:   1823104 [ 42.4% of total] out of  16777216 bytes [10.9% used] at 0x0000000800000000
rw space:   2239472 [ 52.1% of total] out of  16777216 bytes [13.3% used] at 0x0000000801000000
md space:    200472 [  4.7% of total] out of   4194304 bytes [ 4.8% used] at 0x0000000802000000
mc space:     34053 [  0.8% 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   :   4297101 [100.0% of total] out of  37879808 bytes [11.3% used]
];
 stderr: []
 exitValue = 0

STATUS:Passed.
----------rerun:(21/2672)*----------
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\\classLoaderConstraints;C:\\tmp\\sharedArchive-Win-8098815\\test\\hotspot\\test\\closed\\runtime\\AppCDS\\classLoaderConstraints;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\\classLoaderConstraints' \\
        -Dtest.src.path='C:\\tmp\\sharedArchive-Win-8098815\\test\\hotspot\\test\\closed\\runtime\\AppCDS\\classLoaderConstraints;C:\\tmp\\sharedArchive-Win-8098815\\test\\hotspot\\test\\testlibrary' \\
        -Dtest.classes='C:\\tmp\\sharedArchive-Win-8098815\\resultsWithFlags\\JTwork\\classes\\closed\\runtime\\AppCDS\\classLoaderConstraints' \\
        -Dtest.class.path='C:\\tmp\\sharedArchive-Win-8098815\\resultsWithFlags\\JTwork\\classes\\closed\\runtime\\AppCDS\\classLoaderConstraints;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\\classLoaderConstraints\\SingleTestWrapper.jta' loadingConstraints006/loadingConstraints00603 loadingConstraints00603
result: Passed. Execution successful

#section:build
----------messages:(3/105)----------
command: build SingleTestWrapper
reason: Named class compiled on demand
elapsed time (seconds): 0.001
result: Passed. All files up to date

#section:main
----------messages:(3/264)----------
command: main SingleTestWrapper loadingConstraints006/loadingConstraints00604 loadingConstraints00604
reason: User specified action: run main SingleTestWrapper loadingConstraints006/loadingConstraints00604 loadingConstraints00604 
elapsed time (seconds): 6.087
----------System.out:(44/4124)*----------
===== preparation
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\\classLoaderConstraints;C:\\tmp\\sharedArchive-Win-8098815\\test\\hotspot\\test\\closed\\runtime\\AppCDS\\classLoaderConstraints;C:\\tmp\\sharedArchive-Win-8098815\\resultsWithFlags\\JTwork\\classes\\testlibrary -XX:DumpLoadedClassList=.\\loadingConstraints006/loadingConstraints00604\\classlist -XX:+UnlockCommercialFeatures -XX:+UseAppCDS -cp .\\loadingConstraints006/loadingConstraints00604\\main.jar loadingConstraints00604 ]
[ELAPSED: 472 ms]
[STDOUT]
LinkageError thrown as expected: java.lang.LinkageError: loader constraint violation: loader (instance of TestLoader) previously initiated loading for a different type with name "TheClass"

[STDERR]

===== AppCDS dump
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\\classLoaderConstraints;C:\\tmp\\sharedArchive-Win-8098815\\test\\hotspot\\test\\closed\\runtime\\AppCDS\\classLoaderConstraints;C:\\tmp\\sharedArchive-Win-8098815\\resultsWithFlags\\JTwork\\classes\\testlibrary -server -Xmixed -XX:MaxRAMFraction=8 -XX:+CreateCoredumpOnCrash -XX:+UseG1GC -XX:MaxRAMFraction=8 -XX:+UnlockCommercialFeatures -XX:+UseAppCDS -XX:SharedClassListFile=.\\loadingConstraints006/loadingConstraints00604\\classlist -XX:SharedArchiveFile=.\\loadingConstraints006/loadingConstraints00604\\test.jsa -cp .\\loadingConstraints006/loadingConstraints00604\\main.jar -Xshare:dump ]
[ELAPSED: 267 ms]
[STDOUT]
Allocated shared space: 37879808 bytes at 0x0000000800000000
Loading classes to share ...
Loading classes to share: done.
Rewriting and linking classes ...
Rewriting and linking classes: done
Number of classes 495
    instance classes   =   481
    obj array classes  =     6
    type array classes =     8
Updating ConstMethods ... done. 
Removing unshareable information ... done. 
ro space:   1823104 [ 42.4% of total] out of  16777216 bytes [10.9% used] at 0x0000000800000000
rw space:   2239472 [ 52.1% of total] out of  16777216 bytes [13.3% used] at 0x0000000801000000
md space:    200472 [  4.7% of total] out of   4194304 bytes [ 4.8% used] at 0x0000000802000000
mc space:     34053 [  0.8% 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   :   4297101 [100.0% of total] out of  37879808 bytes [11.3% used]

[STDERR]

===== run with AppCDS
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\\classLoaderConstraints;C:\\tmp\\sharedArchive-Win-8098815\\test\\hotspot\\test\\closed\\runtime\\AppCDS\\classLoaderConstraints;C:\\tmp\\sharedArchive-Win-8098815\\resultsWithFlags\\JTwork\\classes\\testlibrary -server -Xmixed -XX:MaxRAMFraction=8 -XX:+CreateCoredumpOnCrash -XX:+UseG1GC -XX:MaxRAMFraction=8 -XX:+UnlockCommercialFeatures -XX:+UseAppCDS -XX:SharedArchiveFile=.\\loadingConstraints006/loadingConstraints00604\\test.jsa -cp .\\loadingConstraints006/loadingConstraints00604\\main.jar -Xshare:on -showversion loadingConstraints00604 ]
[ELAPSED: 371 ms]
[STDOUT]
LinkageError thrown as expected: java.lang.LinkageError: loader constraint violation: loader (instance of TestLoader) previously initiated loading for a different type with name "TheClass"

[STDERR]
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, sharing)


----------System.err:(22/1017)----------
 stdout: [Allocated shared space: 37879808 bytes at 0x0000000800000000
Loading classes to share ...
Loading classes to share: done.
Rewriting and linking classes ...
Rewriting and linking classes: done
Number of classes 495
    instance classes   =   481
    obj array classes  =     6
    type array classes =     8
Updating ConstMethods ... done. 
Removing unshareable information ... done. 
ro space:   1823104 [ 42.4% of total] out of  16777216 bytes [10.9% used] at 0x0000000800000000
rw space:   2239472 [ 52.1% of total] out of  16777216 bytes [13.3% used] at 0x0000000801000000
md space:    200472 [  4.7% of total] out of   4194304 bytes [ 4.8% used] at 0x0000000802000000
mc space:     34053 [  0.8% 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   :   4297101 [100.0% of total] out of  37879808 bytes [11.3% used]
];
 stderr: []
 exitValue = 0

STATUS:Passed.
----------rerun:(21/2672)*----------
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\\classLoaderConstraints;C:\\tmp\\sharedArchive-Win-8098815\\test\\hotspot\\test\\closed\\runtime\\AppCDS\\classLoaderConstraints;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\\classLoaderConstraints' \\
        -Dtest.src.path='C:\\tmp\\sharedArchive-Win-8098815\\test\\hotspot\\test\\closed\\runtime\\AppCDS\\classLoaderConstraints;C:\\tmp\\sharedArchive-Win-8098815\\test\\hotspot\\test\\testlibrary' \\
        -Dtest.classes='C:\\tmp\\sharedArchive-Win-8098815\\resultsWithFlags\\JTwork\\classes\\closed\\runtime\\AppCDS\\classLoaderConstraints' \\
        -Dtest.class.path='C:\\tmp\\sharedArchive-Win-8098815\\resultsWithFlags\\JTwork\\classes\\closed\\runtime\\AppCDS\\classLoaderConstraints;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\\classLoaderConstraints\\SingleTestWrapper.jta' loadingConstraints006/loadingConstraints00604 loadingConstraints00604
result: Passed. Execution successful

#section:build
----------messages:(3/103)----------
command: build SingleTestWrapper
reason: Named class compiled on demand
elapsed time (seconds): 0.0
result: Passed. All files up to date

#section:main
----------messages:(3/264)----------
command: main SingleTestWrapper loadingConstraints006/loadingConstraints00605 loadingConstraints00605
reason: User specified action: run main SingleTestWrapper loadingConstraints006/loadingConstraints00605 loadingConstraints00605 
elapsed time (seconds): 5.732
----------System.out:(44/4124)*----------
===== preparation
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\\classLoaderConstraints;C:\\tmp\\sharedArchive-Win-8098815\\test\\hotspot\\test\\closed\\runtime\\AppCDS\\classLoaderConstraints;C:\\tmp\\sharedArchive-Win-8098815\\resultsWithFlags\\JTwork\\classes\\testlibrary -XX:DumpLoadedClassList=.\\loadingConstraints006/loadingConstraints00605\\classlist -XX:+UnlockCommercialFeatures -XX:+UseAppCDS -cp .\\loadingConstraints006/loadingConstraints00605\\main.jar loadingConstraints00605 ]
[ELAPSED: 630 ms]
[STDOUT]
LinkageError thrown as expected: java.lang.LinkageError: loader constraint violation: loader (instance of TestLoader) previously initiated loading for a different type with name "TheClass"

[STDERR]

===== AppCDS dump
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\\classLoaderConstraints;C:\\tmp\\sharedArchive-Win-8098815\\test\\hotspot\\test\\closed\\runtime\\AppCDS\\classLoaderConstraints;C:\\tmp\\sharedArchive-Win-8098815\\resultsWithFlags\\JTwork\\classes\\testlibrary -server -Xmixed -XX:MaxRAMFraction=8 -XX:+CreateCoredumpOnCrash -XX:+UseG1GC -XX:MaxRAMFraction=8 -XX:+UnlockCommercialFeatures -XX:+UseAppCDS -XX:SharedClassListFile=.\\loadingConstraints006/loadingConstraints00605\\classlist -XX:SharedArchiveFile=.\\loadingConstraints006/loadingConstraints00605\\test.jsa -cp .\\loadingConstraints006/loadingConstraints00605\\main.jar -Xshare:dump ]
[ELAPSED: 268 ms]
[STDOUT]
Allocated shared space: 37879808 bytes at 0x0000000800000000
Loading classes to share ...
Loading classes to share: done.
Rewriting and linking classes ...
Rewriting and linking classes: done
Number of classes 495
    instance classes   =   481
    obj array classes  =     6
    type array classes =     8
Updating ConstMethods ... done. 
Removing unshareable information ... done. 
ro space:   1823104 [ 42.4% of total] out of  16777216 bytes [10.9% used] at 0x0000000800000000
rw space:   2239472 [ 52.1% of total] out of  16777216 bytes [13.3% used] at 0x0000000801000000
md space:    200472 [  4.7% of total] out of   4194304 bytes [ 4.8% used] at 0x0000000802000000
mc space:     34053 [  0.8% 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   :   4297101 [100.0% of total] out of  37879808 bytes [11.3% used]

[STDERR]

===== run with AppCDS
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\\classLoaderConstraints;C:\\tmp\\sharedArchive-Win-8098815\\test\\hotspot\\test\\closed\\runtime\\AppCDS\\classLoaderConstraints;C:\\tmp\\sharedArchive-Win-8098815\\resultsWithFlags\\JTwork\\classes\\testlibrary -server -Xmixed -XX:MaxRAMFraction=8 -XX:+CreateCoredumpOnCrash -XX:+UseG1GC -XX:MaxRAMFraction=8 -XX:+UnlockCommercialFeatures -XX:+UseAppCDS -XX:SharedArchiveFile=.\\loadingConstraints006/loadingConstraints00605\\test.jsa -cp .\\loadingConstraints006/loadingConstraints00605\\main.jar -Xshare:on -showversion loadingConstraints00605 ]
[ELAPSED: 325 ms]
[STDOUT]
LinkageError thrown as expected: java.lang.LinkageError: loader constraint violation: loader (instance of TestLoader) previously initiated loading for a different type with name "TheClass"

[STDERR]
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, sharing)


----------System.err:(22/1017)----------
 stdout: [Allocated shared space: 37879808 bytes at 0x0000000800000000
Loading classes to share ...
Loading classes to share: done.
Rewriting and linking classes ...
Rewriting and linking classes: done
Number of classes 495
    instance classes   =   481
    obj array classes  =     6
    type array classes =     8
Updating ConstMethods ... done. 
Removing unshareable information ... done. 
ro space:   1823104 [ 42.4% of total] out of  16777216 bytes [10.9% used] at 0x0000000800000000
rw space:   2239472 [ 52.1% of total] out of  16777216 bytes [13.3% used] at 0x0000000801000000
md space:    200472 [  4.7% of total] out of   4194304 bytes [ 4.8% used] at 0x0000000802000000
mc space:     34053 [  0.8% 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   :   4297101 [100.0% of total] out of  37879808 bytes [11.3% used]
];
 stderr: []
 exitValue = 0

STATUS:Passed.
----------rerun:(21/2672)*----------
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\\classLoaderConstraints;C:\\tmp\\sharedArchive-Win-8098815\\test\\hotspot\\test\\closed\\runtime\\AppCDS\\classLoaderConstraints;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\\classLoaderConstraints' \\
        -Dtest.src.path='C:\\tmp\\sharedArchive-Win-8098815\\test\\hotspot\\test\\closed\\runtime\\AppCDS\\classLoaderConstraints;C:\\tmp\\sharedArchive-Win-8098815\\test\\hotspot\\test\\testlibrary' \\
        -Dtest.classes='C:\\tmp\\sharedArchive-Win-8098815\\resultsWithFlags\\JTwork\\classes\\closed\\runtime\\AppCDS\\classLoaderConstraints' \\
        -Dtest.class.path='C:\\tmp\\sharedArchive-Win-8098815\\resultsWithFlags\\JTwork\\classes\\closed\\runtime\\AppCDS\\classLoaderConstraints;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\\classLoaderConstraints\\SingleTestWrapper.jta' loadingConstraints006/loadingConstraints00605 loadingConstraints00605
result: Passed. Execution successful


test result: Passed. Execution successful
