JDK-8175818 : hotspot/test/serviceability/sa/TestPrintMdo.java executed with emulated client build
  • Type: Bug
  • Component: core-svc
  • Sub-Component: tools
  • Affected Version: 9,10
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • Submitted: 2017-02-24
  • Updated: 2017-02-24
  • Resolved: 2017-02-24
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 9
9Resolved
Related Reports
Duplicate :  
Relates :  
Description
The test hotspot/test/serviceability/sa/TestPrintMdo.java is supposed to be executed only with server VMs and if the emulated client configuration is not enabled. At least the statement at the beginning of the tests seems to indicate that:

@requires vm.flavor == "server" & !vm.emulatedClient

While RBT-testing my planned change for JDK-8175340, I've come across the TestPrintMdo.java test failed with the following message:

----------System.err:(17/1528)----------
java.lang.RuntimeException: Test ERROR java.lang.RuntimeException: One or more of 'VirtualCallData', 'CounterData', 'ReceiverTypeData', 'bci', 'MethodData' or 'java/lang/Object' not found
	at TestPrintMdo.verifyPrintMdoOutput(TestPrintMdo.java:100)
	at TestPrintMdo.main(TestPrintMdo.java:171)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:547)
	at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:110)
	at java.base/java.lang.Thread.run(Thread.java:844)
Caused by: java.lang.RuntimeException: One or more of 'VirtualCallData', 'CounterData', 'ReceiverTypeData', 'bci', 'MethodData' or 'java/lang/Object' not found
	at TestPrintMdo.verifyPrintMdoOutput(TestPrintMdo.java:94)
	... 7 more

The VM version was:

java version "9-internal"
Java(TM) SE Runtime Environment (fastdebug build 9-internal+0-2017-02-23-163851.zmajo.8175340)
Java HotSpot(TM) Server VM (fastdebug build 9-internal+0-2017-02-23-163851.zmajo.8175340, mixed mode, emulated-client)

That seems to indicate that the test is indeed executed in the emulated client configuration (which probably should not be).
Comments
Suggested ILW=failing test, failure occurred with -XX:-TieredStopAtLevel=1, no workaround exists= MMH=P3
24-02-2017

Hi Jini, you added the failing test recently. Could you maybe check what the problem is? Thank you very much in advance! Best regards, Zoltan
24-02-2017