< prev index next >
src/share/vm/utilities/globalDefinitions.hpp
Print this page
*** 86,95 ****
--- 86,98 ----
#else // !_LP64
#define INTPTR_FORMAT "0x%08" PRIxPTR
#define PTR_FORMAT "0x%08" PRIxPTR
#endif // _LP64
+ // Format pointers without leading zeros
+ #define INTPTRNZ_FORMAT "0x%" PRIxPTR
+
#define INTPTR_FORMAT_W(width) "%" #width PRIxPTR
#define SSIZE_FORMAT "%" PRIdPTR
#define SIZE_FORMAT "%" PRIuPTR
#define SIZE_FORMAT_HEX "0x%" PRIxPTR
*** 885,896 ****
case T_FLOAT : return ftos;
case T_DOUBLE : return dtos;
case T_VOID : return vtos;
case T_ARRAY : // fall through
case T_OBJECT : return atos;
}
- return ilgl;
}
inline BasicType as_BasicType(TosState state) {
switch (state) {
case btos : return T_BYTE;
--- 888,899 ----
case T_FLOAT : return ftos;
case T_DOUBLE : return dtos;
case T_VOID : return vtos;
case T_ARRAY : // fall through
case T_OBJECT : return atos;
+ default : return ilgl;
}
}
inline BasicType as_BasicType(TosState state) {
switch (state) {
case btos : return T_BYTE;
*** 901,912 ****
case ltos : return T_LONG;
case ftos : return T_FLOAT;
case dtos : return T_DOUBLE;
case atos : return T_OBJECT;
case vtos : return T_VOID;
}
- return T_ILLEGAL;
}
// Helper function to convert BasicType info into TosState
// Note: Cannot define here as it uses global constant at the time being.
--- 904,915 ----
case ltos : return T_LONG;
case ftos : return T_FLOAT;
case dtos : return T_DOUBLE;
case atos : return T_OBJECT;
case vtos : return T_VOID;
+ default : return T_ILLEGAL;
}
}
// Helper function to convert BasicType info into TosState
// Note: Cannot define here as it uses global constant at the time being.
< prev index next >