JDK-8132561 : Fix for 8072147 breaks JDK 9 build with older gcc on Mac.
  • Type: Bug
  • Component: hotspot
  • Sub-Component: runtime
  • Priority: P1
  • Status: Closed
  • Resolution: Won't Fix
  • Submitted: 2015-07-29
  • Updated: 2015-08-10
  • Resolved: 2015-07-30
Related Reports
Relates :  
Description
The above bug was fixed in JDK 9 on this thread :-
http://mail.openjdk.java.net/pipermail/hotspot-runtime-dev/2015-June/015282.html

when it came to the JDK8 backport it was implemented differently since gcc did not
support the thread local storage in the older gcc
http://mail.openjdk.java.net/pipermail/hotspot-runtime-dev/2015-July/015309.html

This means that those of us who are stuck with the older gcc because we need to
build several releases can no longer build on JDK 9.

~/jdk9/hotspot/src/os/bsd/vm/jsig.c:45: error: thread-local storage not supported for this target
make[10]: *** [libjsig.dylib] Error 1 

Whilst there is an official JDK 9 compiler for each platform we should endeavour
to allow building on as many versions as possible. The JDK 8 solution should be
foward ported to JDK 9 asap.

Comments
The attached jsig.patch file replaces the 9 code with that from 8u-dev and I can build again.
31-07-2015

We plan to take advantage of the features in the supported compilers for JDK9, we'll only address issues for the list of supported compilers. Closing as WNF
30-07-2015