# HG changeset patch # User simonis # Date 1531472863 -7200 # Node ID 6a5c674b74137cd2e055a18117af85882b80fd6e # Parent 7b4cc0cd6fe61398f5f52219a63b15844fd4ac85 8206998: [test] runtime/ElfDecoder/TestElfDirectRead.java requires longer timeout on ppc64 Reviewed-by: zgu, dholmes diff -r 7b4cc0cd6fe6 -r 6a5c674b7413 test/hotspot/jtreg/runtime/ElfDecoder/TestElfDirectRead.java --- a/test/hotspot/jtreg/runtime/ElfDecoder/TestElfDirectRead.java Wed Jul 11 19:23:27 2018 +0200 +++ b/test/hotspot/jtreg/runtime/ElfDecoder/TestElfDirectRead.java Fri Jul 13 11:07:43 2018 +0200 @@ -25,13 +25,38 @@ * @test * @bug 8193373 * @summary Test reading ELF info direct from underlaying file - * @requires (os.family == "linux") + * @requires (os.family == "linux") & (os.arch != "ppc64") * @modules java.base/jdk.internal.misc * @library /test/lib * @build sun.hotspot.WhiteBox * @run driver ClassFileInstaller sun.hotspot.WhiteBox - * sun.hotspot.WhiteBox$WhiteBoxPermission - * @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -XX:NativeMemoryTracking=detail TestElfDirectRead + * sun.hotspot.WhiteBox$WhiteBoxPermission + * @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI + -XX:NativeMemoryTracking=detail TestElfDirectRead + */ + +// This test intentionally disables caching of Elf sections during symbol lookup +// with WhiteBox.disableElfSectionCache(). On platforms which do not use file +// descriptors instead of plain function pointers this slows down the lookup just a +// little bit, because all the symbols from an Elf file are still read consecutively +// after one 'fseek()' call. But on platforms with file descriptors like ppc64 +// big-endian, we get two 'fseek()' calls for each symbol read from the Elf file +// because reading the file descriptor table is nested inside the loop which reads +// the symbols. This really trashes the I/O system and considerable slows down the +// test, so we need an extra long timeout setting. + +/* + * @test + * @bug 8193373 + * @summary Test reading ELF info direct from underlaying file + * @requires (os.family == "linux") & (os.arch == "ppc64") + * @modules java.base/jdk.internal.misc + * @library /test/lib + * @build sun.hotspot.WhiteBox + * @run driver ClassFileInstaller sun.hotspot.WhiteBox + * sun.hotspot.WhiteBox$WhiteBoxPermission + * @run main/othervm/timeout=600 -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI + -XX:NativeMemoryTracking=detail TestElfDirectRead */ import jdk.test.lib.process.ProcessTools;