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

Linux x86 build fails after 8292591

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P3
    • 20
    • 20
    • hotspot
    • None
    • Oracle Linux Server 6.10

    • b21
    • x86
    • linux

    Description

      src/hotspot/os/linux/systemMemoryBarrier_linux.cpp:65:18: error: 'SYS_membarrier' was not declared in this scope
         return syscall(SYS_membarrier, cmd, flags, cpu_id); // cpu_id only on >= 5.10
                        ^~~~~~~~~~~~~~

      We need to add a SYS_membarrier definition in systemMemoryBarrier_linux.cpp for x86 as well:

      #ifndef SYS_membarrier
        #if defined(AMD64)
        #define SYS_membarrier 324
        #elif defined(PPC64)
        #define SYS_membarrier 365
        #elif defined(AARCH64)
        #define SYS_membarrier 283
        #elif defined(ALPHA)
        #define SYS_membarrier 517
        #else
        #error define SYS_membarrier for the arch
        #endif
      #endif // SYS_membarrier

      Attachments

        Issue Links

          Activity

            People

              bulasevich Boris Ulasevich
              bulasevich Boris Ulasevich
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: