PATCH: using mixed types in MIN2/MAX2 functions

Florian Weimer fweimer at redhat.com
Wed Jun 18 11:27:10 UTC 2014


On 06/12/2014 11:05 AM, Dan Horák wrote:

> this the last and largest part of my changes required on s390 (32-bit)
> to build OpenJDK out of the box. The MIN2/MAX2 functions are implemented
> using templates and require both arguments to be of the same type.

Would it make sense to compute a suitable common type at compile time 
instead, and change the return type to that?  That would avoid adding 
all these casts, which might well obscure other problems.

-- 
Florian Weimer / Red Hat Product Security Team


More information about the hotspot-dev mailing list