JDK-8051378 : AIX: Change "8030763: Validate global memory allocation" breaks the HotSpot build
  • Type: Bug
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 8u20,9
  • Priority: P2
  • Status: Closed
  • Resolution: Fixed
  • OS: aix
  • Submitted: 2014-07-18
  • Updated: 2015-01-21
  • Resolved: 2014-07-18
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
8u20Fixed 9Fixed
Unfortunately the merging of 8u11 into 8u-dev and 8u20 broke the
HotSpot build on AIX for those code lines.

The fix is trivial - just remove the unused function os::set_error_file() in os_aix.cpp (as this has been done on the other platforms by 8030763):

diff -r f09d1f6a401e src/os/aix/vm/os_aix.cpp
--- a/src/os/aix/vm/os_aix.cpp  Mon Jul 14 10:16:34 2014 -0700
+++ b/src/os/aix/vm/os_aix.cpp  Fri Jul 18 17:22:32 2014 +0200
@@ -1215,10 +1215,6 @@

-// Unused on Aix for now.
-void os::set_error_file(const char *logfile) {}
 // This method is a copy of JDK's sysGetLastErrorString
 // from src/solaris/hpi/src/system_md.c

Yes, it is needed in JDK 9 too. 8030763 was pushed into jdk9/jdk9/hotspot today. The jdk9 backport recoded will be created automatically, when I push the fix into jdk9.

Does this need a JDK 9 fix also ? If so, please create a JDK 9 backport record (or add 8-na label)

8u20-critical-request justification: impossible to build Hotspot on AIX. Changes are very small and does not affect our testing, only aix specific code is changed.