Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8168490

Use the LL/ULL suffixes to define 64-bit integer literals on Windows

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 9
    • 9
    • hotspot
    • None
    • b146
    • windows

      Currently we use the i64/ui64 suffixes to declare 64-bit integer literals on Windows (see src/share/vm/utilities/globalDefinitions_visCPP.hpp).

      Unfortunately this suffix is not known to Eclipse so most of a hotspot files have errors in an Eclipse project (e.g. NULL is defined as '0i64' which gives a syntax error in Eclipse, but NULL is used in most hotspot of the source files).

      Fortunately VS supports the more standard conforming LL/ULL suffixes (see http://en.cppreference.com/w/cpp/language/integer_literal) since at least VS2010 (see https://msdn.microsoft.com/en-us/library/00a1awxf(v=vs.100).aspx ). I therefore propose to change the suffix for integer literals from i64/ui64 to LL/ULL on Windows.

            simonis Volker Simonis
            simonis Volker Simonis
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: