Merge
authorerikj
Wed, 13 Apr 2016 12:11:06 +0200
changeset 37470 d668bb1f3633
parent 37468 2313142725e0 (current diff)
parent 37469 ac811846846c (diff)
child 37472 4eea82a66dab
Merge
--- a/hotspot/makefiles/gensrc/GensrcAdlc.gmk	Tue Apr 12 14:03:31 2016 +0200
+++ b/hotspot/makefiles/gensrc/GensrcAdlc.gmk	Wed Apr 13 12:11:06 2016 +0200
@@ -41,9 +41,8 @@
     ADLC_CFLAGS := -m64
     ADLC_CFLAGS_WARNINGS := +w
   else ifeq ($(OPENJDK_BUILD_OS), aix)
-    # FIXME: Not implemented. These flags are likely, however
-    # ADLC_LDFLAGS := -q64
-    # ADLC_CFLAGS := -qnortti -qnoeh -q64
+    ADLC_LDFLAGS := -q64
+    ADLC_CFLAGS := -qnortti -qeh -q64 -DAIX
   else ifeq ($(OPENJDK_BUILD_OS), windows)
     ADLC_LDFLAGS := -nologo
     ADLC_CFLAGS := -nologo -EHsc
@@ -89,7 +88,7 @@
   else ifeq ($(OPENJDK_TARGET_OS), solaris)
     ADLCFLAGS += -DSOLARIS=1 -DSPARC_WORKS=1
   else ifeq ($(OPENJDK_TARGET_OS), aix)
-    # FIXME: Not implemented
+    ADLCFLAGS += -DAIX=1
   else ifeq ($(OPENJDK_TARGET_OS), macosx)
     ADLCFLAGS += -D_ALLBSD_SOURCE=1 -D_GNU_SOURCE=1
   endif
--- a/hotspot/src/os/aix/vm/perfMemory_aix.cpp	Tue Apr 12 14:03:31 2016 +0200
+++ b/hotspot/src/os/aix/vm/perfMemory_aix.cpp	Wed Apr 13 12:11:06 2016 +0200
@@ -956,7 +956,7 @@
 #ifdef O_NOFOLLOW
   RESTARTABLE(::open(filename, oflags), result);
 #else
-  open_o_nofollow(filename, oflags);
+  result = open_o_nofollow(filename, oflags);
 #endif
 
   if (result == OS_ERR) {