[jdk8u-dev] RFR: 8342822: jdk8u432-b06 does not compile on AIX [v2]
Varada M
varadam at openjdk.org
Mon Dec 16 12:18:46 UTC 2024
On Thu, 7 Nov 2024 11:40:27 GMT, Varada M <varadam at openjdk.org> wrote:
>> Use of llabs() for jlong resolves the build error on AIX.
>> Performed jtreg testing for hotspot/test on both aix-ppc64 and linux-ppc64le and no related failures observed
>>
>> JBS : [JDK-8342822](https://bugs.openjdk.org/browse/JDK-8342822)
>
> Varada M has updated the pull request incrementally with one additional commit since the last revision:
>
> 8342822: jdk8u432-b06 does not compile on AIX
The build error persists with xlc 16.1.0 version. Also observed that with <iostream.h> or adding inline abs() function resolves the issue. https://github.com/openjdk/jdk8u-dev/compare/master...varada1110:abs?expand=1
--- a/hotspot/src/share/vm/libadt/port.hpp
+++ b/hotspot/src/share/vm/libadt/port.hpp
@@ -91,7 +91,7 @@ inline int max( int a, int b) { return a > b ? a : b; }
#define IMPLEMENTATION
#include <stdlib.h>
#include <memory.h>
-
+inline long abs( long x ) { return x < 0 ? -x : x; }
+//#include <iostream.h>
#elif defined(_MSC_VER)
// Microsoft Visual C++
//#define INTERFACE
-------------
PR Comment: https://git.openjdk.org/jdk8u-dev/pull/600#issuecomment-2545474471
More information about the jdk8u-dev
mailing list