You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the issue
java.util.concurrent.CompletableFuture$Delayer class that is used in "orTimeout" and "completeOnTimeout" methods prevents isolate from being teared-down.
As far as I understand, Delayer instantiates a static ScheduledThreadPoolExecutor with a single daemon thread that is not terminated due to #2617 (comment)
Issue can be workarounded by shutting down that executor using reflection, but perhaps it makes sense to provide some generic substitution?
Steps to reproduce the issue
Example source (Test.java)
Describe the issue
java.util.concurrent.CompletableFuture$Delayer class that is used in "orTimeout" and "completeOnTimeout" methods prevents isolate from being teared-down.
As far as I understand, Delayer instantiates a static ScheduledThreadPoolExecutor with a single daemon thread that is not terminated due to #2617 (comment)
Issue can be workarounded by shutting down that executor using reflection, but perhaps it makes sense to provide some generic substitution?
Steps to reproduce the issue
Example source (Test.java)
Build:
Run native-image:
Expected Result:
app finished
Actual Result:
app hangs...
Describe GraalVM and your environment:
The text was updated successfully, but these errors were encountered: