RFR: Workaround CODETOOLS-7903174

Jorn Vernee jvernee at openjdk.java.net
Fri Apr 29 12:38:33 UTC 2022


This implements a workaround the crash in clang_reparseTranslationUnit.

It enabled libclang's crash recovery on Windows, and if there's a crash in reparseTranslationUnit, we simply retry the call. This seems to be enough to workaround the crash for now.

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

Commit messages:
 - Or -> And
 - Enable libclang crash recovery on Windows and use it to workaround the reparseTranslationUnit crash

Changes: https://git.openjdk.java.net/jextract/pull/29/files
 Webrev: https://webrevs.openjdk.java.net/?repo=jextract&pr=29&range=00
  Stats: 9 lines in 2 files changed: 7 ins; 1 del; 1 mod
  Patch: https://git.openjdk.java.net/jextract/pull/29.diff
  Fetch: git fetch https://git.openjdk.java.net/jextract pull/29/head:pull/29

PR: https://git.openjdk.java.net/jextract/pull/29


More information about the jextract-dev mailing list