Source: openjdk-9 Version: 9~b181-4 Severity: important Justification: causes random FTBFS in java packages when built on SMP system Tags: patch User: debian-al...@lists.debian.org Usertags: alpha X-Debbugs-CC: John Paul Adrian Glaubitz <glaub...@physik.fu-berlin.de>
Java, javac and jar can all randomly lockup (and never complete) on an SMP Alpha system and we have a rather large don't take for building list of various java packages on the SMP Alpha build daemons. On a hint from John Paul Adrian Glaubitz I think I have narrowed down the problem to insufficient memory barriers in file: src/hotspot/src/os_cpu/linux_zero/vm/orderAccess_linux_zero.inline.hpp and attach a patch fixing that. With the patch installed into a build of openjdk-9 my subsequent test build of openjdk-9 built to completion on an SMP system, giving encouragement that the patch indeed fixes the problem. (I also have a patch for openjdk-8 but it will take a few days to test first.) Cheers, Michael.
--- openjdk-9-9~b181-orig/src/hotspot/src/os_cpu/linux_zero/vm/orderAccess_linux_zero.inline.hpp 2017-08-01 21:03:05.000000000 +1200 +++ openjdk-9-9~b181/src/hotspot/src/os_cpu/linux_zero/vm/orderAccess_linux_zero.inline.hpp 2017-08-30 20:15:31.454293665 +1200 @@ -56,8 +56,15 @@ #else // PPC +#ifdef __alpha__ + +#define LIGHT_MEM_BARRIER __sync_synchronize() + +#else // __alpha__ + #define LIGHT_MEM_BARRIER __asm __volatile ("":::"memory") +#endif // __alpha__ #endif // PPC #endif // ARM