Fails on linux, solaris and windows:
command: main GetObjectSizeOverflow
reason: User specified action: run main GetObjectSizeOverflow
elapsed time (seconds): 7.722
----------System.out:(1/171)----------
Command line: [/export/local/aurora/CommonData/jdk/bin/java -d64 -Xcomp -d64 -XX:+UseParallelGC -server -Xcomp -Xmx4000m -javaagent:agent.jar GetObjectSizeOverflowAgent ]
----------System.err:(22/1150)----------
stdout: [];
stderr: [Exception in thread "main" java.lang.RuntimeException: Invalid size of array, expected >= 2400000000, got -1894967280
at GetObjectSizeOverflowAgent.main(GetObjectSizeOverflowAgent.java:38)
]
exitValue = 1
java.lang.RuntimeException: 'GetObjectSizeOverflow passed' missing from stdout
at com.oracle.java.testlibrary.OutputAnalyzer.stdoutShouldContain(OutputAnalyzer.java:93)
at GetObjectSizeOverflow.main(GetObjectSizeOverflow.java:62)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:484)
at com.sun.javatest.regtest.MainWrapper$MainThread.run(MainWrapper.java:94)
at java.lang.Thread.run(Thread.java:745)
command: main GetObjectSizeOverflow
reason: User specified action: run main GetObjectSizeOverflow
elapsed time (seconds): 7.722
----------System.out:(1/171)----------
Command line: [/export/local/aurora/CommonData/jdk/bin/java -d64 -Xcomp -d64 -XX:+UseParallelGC -server -Xcomp -Xmx4000m -javaagent:agent.jar GetObjectSizeOverflowAgent ]
----------System.err:(22/1150)----------
stdout: [];
stderr: [Exception in thread "main" java.lang.RuntimeException: Invalid size of array, expected >= 2400000000, got -1894967280
at GetObjectSizeOverflowAgent.main(GetObjectSizeOverflowAgent.java:38)
]
exitValue = 1
java.lang.RuntimeException: 'GetObjectSizeOverflow passed' missing from stdout
at com.oracle.java.testlibrary.OutputAnalyzer.stdoutShouldContain(OutputAnalyzer.java:93)
at GetObjectSizeOverflow.main(GetObjectSizeOverflow.java:62)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:484)
at com.sun.javatest.regtest.MainWrapper$MainThread.run(MainWrapper.java:94)
at java.lang.Thread.run(Thread.java:745)
- relates to
-
JDK-8043724 Overflow in java.lang.instrument.Instrumentation.getObjectSize() method
- Resolved