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

os::win32::exit_process_or_thread should be marked noreturn

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Fixed
    • P4
    • 22
    • 21
    • hotspot
    • b22
    • windows

    Description

      On Windows we have a non-trivial function (exit_process_or_thread) that provides the implementation of various functions like os::die, os::abort, &etc. Those os functions are marked as noreturn, so this implementation helper should also be noreturn.

      Current Visual Studio versions don't seem to care (or maybe we haven't enabled the appropriate warning), but using gcc to compile for Windows (JDK-8288293) warns about the os functions returning even though declared noreturn, because exit_process_or_thread is not declared noreturn.

      Attachments

        Issue Links

          Activity

            People

              jwaters Julian Waters
              kbarrett Kim Barrett
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: