JDK-4976238 : Cleanup implicit casts 64 bits to 32 bits
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 5.0,9,10
  • Priority: P4
  • Status: Closed
  • Resolution: Won't Fix
  • OS: solaris_9
  • CPU: sparc
  • Submitted: 2004-01-09
  • Updated: 2017-02-17
  • Resolved: 2017-02-16
Related Reports
Relates :  
Description
Using the Sun C++ option -xport64=implicit for the JVM 64bits build gives a lot
warnings:
"Warning: Converting a 64-bit type value to "int" causes truncation."
% fgrep "Warning: Converting a 64-bit" compLP64_implicit_sort.out |uniq|wc
     980   13279  154850

We have to cleanup them to avoid bugs like JDK-4965430.

This problem occures in all parts of Hotspot. I will start with compiler2.

I looked on all cases for compiler2 and didn't find any bug-like problems.
Will cleanup in the next release.

Vladimir


Comments
Seems like other groups are picking up the task of fixing warnings like this in a more general sense. I think we should close this one.
01-06-2015

EVALUATION ###@###.### 2004-01-09 will be cleaned up in the next release.
09-01-2004