The MIN2/MAX2 functions are implemented using templates and require both arguments to be of the same type. This is a problem when one parameter is of size_t type and the second of uintx type and the platform has size_t defined as eg. unsigned long as on s390 (32-bit).
A solution is to typecast the smaller type (uintx) to size_t which is of the same or larger size.
A solution is to typecast the smaller type (uintx) to size_t which is of the same or larger size.
- duplicates
-
JDK-8074459 Flags handling memory sizes should be of type size_t
- Resolved
- is blocked by
-
JDK-8074459 Flags handling memory sizes should be of type size_t
- Resolved
- relates to
-
JDK-8203030 Zero s390 31 bit size_t type conflicts in shared code
- Resolved