-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"Non-reducible loop requires too much duplication" error in call to Kotlin suspend function #4265
Comments
Hi, thank you for reporting this, we will take a look into it and get back to you |
I see there is an option for limiting the amount of work done by the compiler to support non-reducible loops. The help text is a little ambiguous on what the value of that option means but please try increasing it to see if it helps. I think the syntax for this option is @gilles-duboscq maybe |
2.0 was chosen because it could accommodate all the examples we saw in the original reports while still not allowing large explosions of code size. It would be a good data point to know the factor needed to this specific case. The error message should mention the option and its current value so that it's more obvious how to locally solve the issue. |
I'll try to come back to you on that.
That would have helped absolutely 👍🏻 |
So, I got it working with |
A factor of 3.0 works, 2.5 is too low, and so is 2.75, so I'll stick to 3.0. |
See [1] for some background information. [1]: oracle/graal#4265 Signed-off-by: Sebastian Schuberth <[email protected]>
With 3.0, what was the native image build time? And how much does that deviate from similar native image builds that you make? |
See [1] for some background information. [1]: oracle/graal#4265 Signed-off-by: Sebastian Schuberth <[email protected]>
It's a bit hard to tell reliably, as I was running into multiple issues for which I had to find work-arounds to make the build actually complete. But I believe the build time of 18 minutes did not vary significantly when increasing the factor from 2.0 to 3.0 in my case.
This is actually the first native image build I've ever tried, so I don't have any comparisons. |
This issue should be resolved by 2f72ff6. |
Describe the issue
I'm using Graal 22.0.0.2 to build a native image for ORT - the OSS Review Toolkit, and the
./gradlew :cli:nativeImage
task fails with:Steps to reproduce the issue
Describe GraalVM and your environment:
More details
The issue might be related to #3342, but that's already closed.
This is the code location from the stack trace.
Output with
--native-image-info
and--verbose
flags willfollowbelow:The text was updated successfully, but these errors were encountered: