-
Bug
-
Resolution: Fixed
-
P3
-
13
-
b23
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8225817 | 14 | Calvin Cheung | P3 | Resolved | Fixed | team |
runtime/appcds/jvmti/ClassFileLoadHookTest.java
Command line: [c:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk-13-1090\\windows-x64-debug.jdk\\jdk-13\\fastdebug\\bin\\java.exe -cp T:\\testoutput\\test-support\\jtreg_open_test_hotspot_jtreg_hotspot_tier2_runtime\\classes\\0\\runtime\\appcds\\jvmti\\ClassFileLoadHookTest.d;C:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk-13-1090\\src.full\\open\\test\\hotspot\\jtreg\\runtime\\appcds\\jvmti;T:\\testoutput\\test-support\\jtreg_open_test_hotspot_jtreg_hotspot_tier2_runtime\\classes\\0\\test\\lib;C:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk-13-1090\\src.full\\open\\test\\lib;T:\\testoutput\\test-support\\jtreg_open_test_hotspot_jtreg_hotspot_tier2_runtime\\classes\\0\\test\\hotspot\\jtreg\\runtime\\appcds;C:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk-13-1090\\src.full\\open\\test\\hotspot\\jtreg\\runtime\\appcds;C:\\ade\\mesos\\work_dir\\jib-master\\install\\java\\re\\jtreg\\4.2\\promoted\\all\\b14\\bundles\\jtreg_bin-4.2.zip\\jtreg\\lib\\javatest.jar;C:\\ade\\mesos\\work_dir\\jib-master\\install\\java\\re\\jtreg\\4.2\\promoted\\all\\b14\\bundles\\jtreg_bin-4.2.zip\\jtreg\\lib\\jtreg.jar -XX:MaxRAMPercentage=8 -Xshare:auto -showversion -XX:SharedArchiveFile=T:\\testoutput\\test-support\\jtreg_open_test_hotspot_jtreg_hotspot_tier2_runtime\\scratch\\1\\appcds-18h04m04s413.jsa -Dtest.timeout.factor=4.0 -cp T:\\testoutput\\test-support\\jtreg_open_test_hotspot_jtreg_hotspot_tier2_runtime\\scratch\\1\\ClassFileLoadHook.jar -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -Xbootclasspath/a:T:\\testoutput\\test-support\\jtreg_open_test_hotspot_jtreg_hotspot_tier2_runtime\\scratch\\1\\WhiteBox.jar -agentlib:SimpleClassFileLoadHook=LoadMe,beforeHook,after_Hook ClassFileLoadHook SHARING_AUTO_CFLH_ON ]
[ELAPSED: 521 ms]
[logging stdout to ClassFileLoadHookTest-0003-exec.stdout]
[logging stderr to ClassFileLoadHookTest-0003-exec.stderr]
[STDERR]
Agent library loaded with options = LoadMe,beforeHook,after_Hook
CLASS_NAME = LoadMe, FROM = beforeHook, TO = after_Hook
java version "13-ea" 2019-09-17
Java(TM) SE Runtime Environment (fastdebug build 13-ea+0-1090)
Java HotSpot(TM) 64-Bit Server VM (fastdebug build 13-ea+0-1090, mixed mode)
found class to be hooked: LoadMe - rewriting ...
Rewriting done. Replaced 2 occurrence(s) of "beforeHook" to "after_Hook"
Exception in thread "main" java.lang.RuntimeException: must be shared
at ClassFileLoadHook.assertTrue(ClassFileLoadHook.java:106)
at ClassFileLoadHook.test2(ClassFileLoadHook.java:100)
at ClassFileLoadHook.main(ClassFileLoadHook.java:47)
----------System.err:(35/1864)----------
stdout: [====== ClassFileLoadHook.main():testCase = SHARING_AUTO_CFLH_ON
getValue():after_Hook
getOtherValue():abc-after_Hook-xyz
];
stderr: [Agent library loaded with options = LoadMe,beforeHook,after_Hook
CLASS_NAME = LoadMe, FROM = beforeHook, TO = after_Hook
java version "13-ea" 2019-09-17
Java(TM) SE Runtime Environment (fastdebug build 13-ea+0-1090)
Java HotSpot(TM) 64-Bit Server VM (fastdebug build 13-ea+0-1090, mixed mode)
found class to be hooked: LoadMe - rewriting ...
Rewriting done. Replaced 2 occurrence(s) of "beforeHook" to "after_Hook"
Exception in thread "main" java.lang.RuntimeException: must be shared
at ClassFileLoadHook.assertTrue(ClassFileLoadHook.java:106)
at ClassFileLoadHook.test2(ClassFileLoadHook.java:100)
at ClassFileLoadHook.main(ClassFileLoadHook.java:47)
]
exitValue = 1
Command line: [c:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk-13-1090\\windows-x64-debug.jdk\\jdk-13\\fastdebug\\bin\\java.exe -cp T:\\testoutput\\test-support\\jtreg_open_test_hotspot_jtreg_hotspot_tier2_runtime\\classes\\0\\runtime\\appcds\\jvmti\\ClassFileLoadHookTest.d;C:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk-13-1090\\src.full\\open\\test\\hotspot\\jtreg\\runtime\\appcds\\jvmti;T:\\testoutput\\test-support\\jtreg_open_test_hotspot_jtreg_hotspot_tier2_runtime\\classes\\0\\test\\lib;C:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk-13-1090\\src.full\\open\\test\\lib;T:\\testoutput\\test-support\\jtreg_open_test_hotspot_jtreg_hotspot_tier2_runtime\\classes\\0\\test\\hotspot\\jtreg\\runtime\\appcds;C:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk-13-1090\\src.full\\open\\test\\hotspot\\jtreg\\runtime\\appcds;C:\\ade\\mesos\\work_dir\\jib-master\\install\\java\\re\\jtreg\\4.2\\promoted\\all\\b14\\bundles\\jtreg_bin-4.2.zip\\jtreg\\lib\\javatest.jar;C:\\ade\\mesos\\work_dir\\jib-master\\install\\java\\re\\jtreg\\4.2\\promoted\\all\\b14\\bundles\\jtreg_bin-4.2.zip\\jtreg\\lib\\jtreg.jar -XX:MaxRAMPercentage=8 -Xshare:auto -showversion -XX:SharedArchiveFile=T:\\testoutput\\test-support\\jtreg_open_test_hotspot_jtreg_hotspot_tier2_runtime\\scratch\\1\\appcds-18h04m04s413.jsa -Dtest.timeout.factor=4.0 -cp T:\\testoutput\\test-support\\jtreg_open_test_hotspot_jtreg_hotspot_tier2_runtime\\scratch\\1\\ClassFileLoadHook.jar -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -Xbootclasspath/a:T:\\testoutput\\test-support\\jtreg_open_test_hotspot_jtreg_hotspot_tier2_runtime\\scratch\\1\\WhiteBox.jar -agentlib:SimpleClassFileLoadHook=LoadMe,beforeHook,after_Hook ClassFileLoadHook SHARING_AUTO_CFLH_ON ]
[ELAPSED: 521 ms]
[logging stdout to ClassFileLoadHookTest-0003-exec.stdout]
[logging stderr to ClassFileLoadHookTest-0003-exec.stderr]
[STDERR]
Agent library loaded with options = LoadMe,beforeHook,after_Hook
CLASS_NAME = LoadMe, FROM = beforeHook, TO = after_Hook
java version "13-ea" 2019-09-17
Java(TM) SE Runtime Environment (fastdebug build 13-ea+0-1090)
Java HotSpot(TM) 64-Bit Server VM (fastdebug build 13-ea+0-1090, mixed mode)
found class to be hooked: LoadMe - rewriting ...
Rewriting done. Replaced 2 occurrence(s) of "beforeHook" to "after_Hook"
Exception in thread "main" java.lang.RuntimeException: must be shared
at ClassFileLoadHook.assertTrue(ClassFileLoadHook.java:106)
at ClassFileLoadHook.test2(ClassFileLoadHook.java:100)
at ClassFileLoadHook.main(ClassFileLoadHook.java:47)
----------System.err:(35/1864)----------
stdout: [====== ClassFileLoadHook.main():testCase = SHARING_AUTO_CFLH_ON
getValue():after_Hook
getOtherValue():abc-after_Hook-xyz
];
stderr: [Agent library loaded with options = LoadMe,beforeHook,after_Hook
CLASS_NAME = LoadMe, FROM = beforeHook, TO = after_Hook
java version "13-ea" 2019-09-17
Java(TM) SE Runtime Environment (fastdebug build 13-ea+0-1090)
Java HotSpot(TM) 64-Bit Server VM (fastdebug build 13-ea+0-1090, mixed mode)
found class to be hooked: LoadMe - rewriting ...
Rewriting done. Replaced 2 occurrence(s) of "beforeHook" to "after_Hook"
Exception in thread "main" java.lang.RuntimeException: must be shared
at ClassFileLoadHook.assertTrue(ClassFileLoadHook.java:106)
at ClassFileLoadHook.test2(ClassFileLoadHook.java:100)
at ClassFileLoadHook.main(ClassFileLoadHook.java:47)
]
exitValue = 1
- backported by
-
JDK-8225817 [TESTBUG] runtime/appcds/jvmti/ClassFileLoadHookTest.java failed: must be shared
- Resolved