comparison src/share/vm/utilities/globalDefinitions_visCPP.hpp @ 2307:4a9604cd7c5f

6878713: Verifier heap corruption, relating to backward jsrs Summary: Added overflow detection in arena Amalloc methods Reviewed-by: coleenp, phh
author kamg
date Wed, 02 Mar 2011 08:18:35 -0500
parents f95d63e2154a
children 1d1603768966
comparison
equal deleted inserted replaced
2306:5584e20db481 2307:4a9604cd7c5f
39 # include <io.h> // for stream.cpp 39 # include <io.h> // for stream.cpp
40 # include <float.h> // for _isnan 40 # include <float.h> // for _isnan
41 # include <stdio.h> // for va_list 41 # include <stdio.h> // for va_list
42 # include <time.h> 42 # include <time.h>
43 # include <fcntl.h> 43 # include <fcntl.h>
44 # include <limits.h>
44 // Need this on windows to get the math constants (e.g., M_PI). 45 // Need this on windows to get the math constants (e.g., M_PI).
45 #define _USE_MATH_DEFINES 46 #define _USE_MATH_DEFINES
46 # include <math.h> 47 # include <math.h>
47 48
48 // 4810578: varargs unsafe on 32-bit integer/64-bit pointer architectures 49 // 4810578: varargs unsafe on 32-bit integer/64-bit pointer architectures
97 #else 98 #else
98 typedef signed int intptr_t; 99 typedef signed int intptr_t;
99 typedef signed int ssize_t; 100 typedef signed int ssize_t;
100 #endif 101 #endif
101 102
103 #ifndef UINTPTR_MAX
104 #ifdef _WIN64
105 #define UINTPTR_MAX _UI64_MAX
106 #else
107 #define UINTPTR_MAX _UI32_MAX
108 #endif
109 #endif
110
102 //---------------------------------------------------------------------------------------------------- 111 //----------------------------------------------------------------------------------------------------
103 // Additional Java basic types 112 // Additional Java basic types
104 113
105 typedef unsigned char jubyte; 114 typedef unsigned char jubyte;
106 typedef unsigned short jushort; 115 typedef unsigned short jushort;