Integrated: 7904079: Fix setting up length parameter for CXUnsavedFiles Struct

Varada M varadam at openjdk.org
Tue Sep 23 08:57:46 UTC 2025


On Thu, 11 Sep 2025 06:50:59 GMT, Varada M <varadam at openjdk.org> wrote:

> CXUnsavedFile struct contains three members, first two are pointers and last one is unsigned long. When jextract makes downcall to clang_reparseTranslationUnit_Impl it sets up the third parameter in the struct incorrectly. It sets INT instead of LONG so on big endian platform the parameter will be set differently. 
> 
> JBS Issue : [CODETOOLS-7904079](https://bugs.openjdk.org/browse/CODETOOLS-7904079)

This pull request has now been integrated.

Changeset: 63d0444c
Author:    Varada M <varadam at openjdk.org>
Committer: Maurizio Cimadamore <mcimadamore at openjdk.org>
URL:       https://git.openjdk.org/jextract/commit/63d0444ca6333d7753a35eaff1d3a5febe614fbb
Stats:     120 lines in 4 files changed: 100 ins; 4 del; 16 mod

7904079: Fix setting up length parameter for CXUnsavedFiles Struct

Reviewed-by: jvernee

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

PR: https://git.openjdk.org/jextract/pull/289


More information about the jextract-dev mailing list