JDK-8255571 : UseOSErrorReporting times out (on Mac and Linux)
  • Type: CSR
  • Component: hotspot
  • Sub-Component: runtime
  • Priority: P4
  • Status: Closed
  • Resolution: Approved
  • Fix Versions: 16
  • Submitted: 2020-10-29
  • Updated: 2020-11-03
  • Resolved: 2020-11-03
Related Reports
CSR :  
Description
Summary
-------

Make `UseOSErrorReporting` a Windows-only product flag

Problem
-------

`UseOSErrorReporting` is defined as a cross-platform flag but only actually works on Windows (there is an open question on whether it works even on Windows). If you turn this on for other platforms you are guaranteed to trigger a 2 minute hang.

Solution
--------

Make `UseOSErrorReporting` a Windows-only product flag.

Specification
-------------

Remove the definition from globals.hpp:

    !  product_pd(bool, UseOSErrorReporting,                                     \
    !          "Let VM fatal error propagate to the OS (ie. WER on Windows)")    \

Add it to globals_windows.hpp:

    ! product(bool, UseOSErrorReporting, false,                                  \
    !        "Let VM fatal error propagate to the OS (ie. WER on Windows)")


Comments
Moving to Approved.
03-11-2020

Thank you David or filing it.
30-10-2020

[~gziemski] Please move this to Finalized. Thanks.
29-10-2020

Really this should be a diagnostic flag, but we can leave that change for a future RFE.
29-10-2020