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

To adjust system boot time in nowMillisUTC() frequently

    Details

    • Subcomponent:
    • Resolved In Build:
      b09
    • CPU:
      x86
    • OS:
      windows_xp
    • Verification:
      Verified

      Backports

        Description

        NTP service is usually used to sychronize OS wall clock time in PCs on the network.
        When NTP serviice runs and a user application runs long time, the diff. between the time gotten
         by System.currentTimeMillis() and the time by InputEvent.getWhen() becomes large.

        nowMillisUTC() in awt_Component.cpp statically keeps the time of system boot
        calculated when the allication is launched.
        When the time in OS is adjusted by NTP service, the adjusted time is not reftected to
        the above boot time in nowMillisUTC().


        REQUEST :
          To adjust system boot time in nowMillisUTC() frequently.

          The "time" memeber of MSG structure is DWORD. nowMillisUTC() compares
          the time with SYSTEMTIME every 43.7 days. (in order to avoid the counter becomes "0"
           after 47.3 days.)
           This should be done, not once in 47.3 day, but everytime

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  dav Andrei Dmitriev (Inactive)
                  Reporter:
                  tbaba Tadayuki Baba (Inactive)
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  1 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Imported:
                    Indexed: