----------System.out:(1/19)----------
Element size is: 0
----------System.err:(18/1569)----------
WARNING: A restricted method in java.lang.System has been called
WARNING: java.lang.System::loadLibrary has been called by MyPackage.HeapMonitor in an unnamed module (file:/opt/mach5/mesos/work_dir/slaves/da1065b5-7b94-4f0d-85e9-a3a252b9a32e-S35066/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/114e5e65-fa4a-4b2e-982d-1e60559afaff/runs/f8bb7c94-c35a-47c0-adcf-3d1c968448cf/testoutput/test-support/jtreg_open_test_hotspot_jtreg_tier1_serviceability/classes/3/serviceability/jvmti/HeapMonitor/MyPackage/HeapMonitorStatIntervalTest.d/)
WARNING: Use --enable-native-access=ALL-UNNAMED to avoid a warning for callers in this module
WARNING: Restricted methods will be blocked in a future release unless native access is enabled
Getting element from storage count, size 1
java.lang.RuntimeException: Could get the size of a 1-element array.
at MyPackage.HeapMonitor.calculateOneElementSize(HeapMonitor.java:130)
at MyPackage.HeapMonitorStatIntervalTest.main(HeapMonitorStatIntervalTest.java:89)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
at java.base/java.lang.reflect.Method.invoke(Method.java:565)
at com.sun.javatest.regtest.agent.MainWrapper$MainTask.run(MainWrapper.java:138)
at java.base/java.lang.Thread.run(Thread.java:1516)
JavaTest Message: Test threw exception: java.lang.RuntimeException: Could get the size of a 1-element array.
JavaTest Message: shutting down test
STATUS:Failed.`main' threw exception: java.lang.RuntimeException: Could get the size of a 1-element array.
Element size is: 0
----------System.err:(18/1569)----------
WARNING: A restricted method in java.lang.System has been called
WARNING: java.lang.System::loadLibrary has been called by MyPackage.HeapMonitor in an unnamed module (file:/opt/mach5/mesos/work_dir/slaves/da1065b5-7b94-4f0d-85e9-a3a252b9a32e-S35066/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/114e5e65-fa4a-4b2e-982d-1e60559afaff/runs/f8bb7c94-c35a-47c0-adcf-3d1c968448cf/testoutput/test-support/jtreg_open_test_hotspot_jtreg_tier1_serviceability/classes/3/serviceability/jvmti/HeapMonitor/MyPackage/HeapMonitorStatIntervalTest.d/)
WARNING: Use --enable-native-access=ALL-UNNAMED to avoid a warning for callers in this module
WARNING: Restricted methods will be blocked in a future release unless native access is enabled
Getting element from storage count, size 1
java.lang.RuntimeException: Could get the size of a 1-element array.
at MyPackage.HeapMonitor.calculateOneElementSize(HeapMonitor.java:130)
at MyPackage.HeapMonitorStatIntervalTest.main(HeapMonitorStatIntervalTest.java:89)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
at java.base/java.lang.reflect.Method.invoke(Method.java:565)
at com.sun.javatest.regtest.agent.MainWrapper$MainTask.run(MainWrapper.java:138)
at java.base/java.lang.Thread.run(Thread.java:1516)
JavaTest Message: Test threw exception: java.lang.RuntimeException: Could get the size of a 1-element array.
JavaTest Message: shutting down test
STATUS:Failed.`main' threw exception: java.lang.RuntimeException: Could get the size of a 1-element array.