Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8206998

[test] runtime/ElfDecoder/TestElfDirectRead.java requires longer timeout on ppc64

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 11
    • 11
    • hotspot
    • b23

        The test runtime/ElfDecoder/TestElfDirectRead.java test intentionally disables caching of Elf sections during symbol lookup with WhiteBox.disableElfSectionCache(). On platforms which do not use function descriptors [1] 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 function descriptors like ppc64 big-endian, we get two 'fseek()' calls for each symbol read from the Elf file because reading the function 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.

        [1] https://refspecs.linuxfoundation.org/ELF/ppc64/PPC-elf64abi.html#FUNC-DES

              simonis Volker Simonis
              simonis Volker Simonis
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: