RFR: 8250637: UseOSErrorReporting times out (on Mac and Linux) [v3]

Gerard Ziemski gziemski at openjdk.java.net
Wed Oct 28 16:52:01 UTC 2020


> hi all,
> 
> Please review this simple fix for POSIX platforms, which addresses a time out that occurs while handling a crash with UseOSErrorReporting turned ON.
> 
> It appears that "UseOSErrorReporting" flag was only ever meant to be used on Windows platform and was mistakenly left available for other platforms. In this fix we make sure to only use the flag on Windows platform and make it a NOP for other platforms.
> 
> Note #1: A similar hang issue occurs today even on Windows, with the only difference being that before a process times out (takes 2 minutes) it runs out of stack space in about 250 loops, so that's the only reason it doesn't linger for that long. Windows issue is tracked separately by https://bugs.openjdk.java.net/browse/JDK-8250782
> 
> Note #2: Creating native crash log (on macOS) is a non-trivial, research wise effort, that is tracked by https://bugs.openjdk.java.net/browse/JDK-8237727
> 
> Note #3 Removal of the "UseOSErrorReporting" flag will be depended on whether we can do #2 and at that time we can decide whether to keep it and implement it for other platforms or whether to remove it, provided that #2 can not be done reliably.

Gerard Ziemski has updated the pull request incrementally with one additional commit since the last revision:

  make UseOSErrorReporting flag Windows only

-------------

Changes:
  - all: https://git.openjdk.java.net/jdk/pull/813/files
  - new: https://git.openjdk.java.net/jdk/pull/813/files/74d6c9a6..b849b3c4

Webrevs:
 - full: https://webrevs.openjdk.java.net/?repo=jdk&pr=813&range=02
 - incr: https://webrevs.openjdk.java.net/?repo=jdk&pr=813&range=01-02

  Stats: 18 lines in 5 files changed: 3 ins; 8 del; 7 mod
  Patch: https://git.openjdk.java.net/jdk/pull/813.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk pull/813/head:pull/813

PR: https://git.openjdk.java.net/jdk/pull/813


More information about the hotspot-dev mailing list