--- old/src/share/vm/utilities/globalDefinitions_sparcWorks.hpp 2017-04-11 10:50:09.440685441 -0700 +++ new/src/share/vm/utilities/globalDefinitions_sparcWorks.hpp 2017-04-11 10:50:09.273684197 -0700 @@ -67,20 +67,6 @@ #include -// Solaris 8 doesn't provide definitions of these -#ifdef SOLARIS -#ifndef PRIdPTR -#if defined(_LP64) -#define PRIdPTR "ld" -#define PRIuPTR "lu" -#define PRIxPTR "lx" -#else -#define PRIdPTR "d" -#define PRIuPTR "u" -#define PRIxPTR "x" -#endif -#endif -#endif #ifdef LINUX # include @@ -107,14 +93,8 @@ // whenever a system header file is included. Linux handles NULL correctly // through a special type '__null'. #ifdef SOLARIS -#ifdef _LP64 -#undef NULL -#define NULL 0L -#else -#ifndef NULL -#define NULL 0 -#endif -#endif + #undef NULL + #define NULL 0L #endif // NULL vs NULL_WORD: @@ -124,13 +104,7 @@ // sizeof(void*), so here we want something which is integer type, but has the // same size as a pointer. #ifdef LINUX - #ifdef _LP64 - #define NULL_WORD 0L - #else - // Cast 0 to intptr_t rather than int32_t since they are not the same type - // on some platforms. - #define NULL_WORD ((intptr_t)0) - #endif + #define NULL_WORD 0L #else #define NULL_WORD NULL #endif @@ -155,17 +129,6 @@ #endif #endif -// On solaris 8, UINTPTR_MAX is defined as empty. -// Everywhere else it's an actual value. -#if UINTPTR_MAX - 1 == -1 -#undef UINTPTR_MAX -#ifdef _LP64 -#define UINTPTR_MAX UINT64_MAX -#else -#define UINTPTR_MAX UINT32_MAX -#endif /* ifdef _LP64 */ -#endif - // Additional Java basic types typedef unsigned char jubyte; @@ -252,11 +215,7 @@ #define VALUE_OBJ_CLASS_SPEC : public _ValueObj // Formatting. -#ifdef _LP64 #define FORMAT64_MODIFIER "l" -#else // !_LP64 -#define FORMAT64_MODIFIER "ll" -#endif // _LP64 #define offset_of(klass,field) offsetof(klass,field)