Skip to content

Conversation

graalvmbot
Copy link
Collaborator

Add support for AOT compilations that throw an exception to fall back to a less optimizing compilation configuration.

Non-fallback mode:
From now on we let a ParallelExecutionException be an unhandledThrowable such that we get an error report (md file). We also wrap the compiler exceptions with a message such that at the end of the build report (console output), the user gets a hint about the compiler option.

Fallback mode:
Print a warning to the console, telling the user to disable the option to report the issue.

The PR prints the following output to the console:

mx helloworld, EnableFallback disabled, two compilation errors inserted
helloworld_nofallback.txt

mx helloworld, EnableFallbackCompilation enabled, two compilation errors inserted
helloworld_fallback.txt
See line 'Warning: '

@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Sep 11, 2025
@graalvmbot graalvmbot merged commit 08e4f8d into master Sep 11, 2025
13 checks passed
@graalvmbot graalvmbot deleted the mh/GR-45822 branch September 11, 2025 14:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OCA Verified All contributors have signed the Oracle Contributor Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant