-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
[native-image] runs forever on closure compiler #428
Comments
My run did eventually stop with an OutOfMemoryError but I failed to time it: Build on Server(pid: 247414, port: 26681)*
fatal error: java.lang.OutOfMemoryError |
This is probably the same issue as reported in #411. See also my response there: #411 (comment). I will investigate it soon. |
The problem reported above is fixed. You can get the fixes by building from source. After running
This will build the
To address the |
Thank you!
…On Fri, Jun 1, 2018, 8:39 PM Codrut Stancu ***@***.***> wrote:
The problem reported above is fixed. You can get the fixes by building
from source
<https://github.com/oracle/graal/tree/master/substratevm#quick-start>.
After running mx build, assuming that your working directory is
substratevm and that you have closure-compiler-v20180506.jar there, you
can run:
$ mx native-image -H:IncludeResourceBundles=com.google.javascript.rhino.Messages,org.kohsuke.args4j.Messages,com.google.javascript.jscomp.parsing.ParserConfig -H:IncludeResources="(externs.zip)|(com/google/javascript/jscomp/js/.*)" -H:+ReportUnsupportedElementsAtRuntime -jar closure-compiler-v20180506.jar
classlist: 1,693.21 ms
(cap): 1,046.49 ms
setup: 2,069.54 ms
RecomputeFieldValue.ArrayBaseOffset automatic substitution failed. The automatic substitution registration was attempted because a call to sun.misc.Unsafe.arrayBaseOffset(Class) was detected in the static initializer of com.google.protobuf.UnsafeUtil. Add a RecomputeFieldValue.ArrayBaseOffset manual substitution for com.google.protobuf.UnsafeUtil.
RecomputeFieldValue.FieldOffset automatic substitution failed. The automatic substitution registration was attempted because a call to sun.misc.Unsafe.objectFieldOffset(Field) was detected in the static initializer of com.google.protobuf.UnsafeUtil. Add a RecomputeFieldValue.FieldOffset manual substitution for com.google.protobuf.UnsafeUtil.
(typeflow): 12,276.08 ms
(objects): 5,992.24 ms
(features): 145.47 ms
analysis: 18,979.93 ms
universe: 848.18 ms
(parse): 2,290.79 ms
(inline): 2,758.49 ms
(compile): 10,922.05 ms
compile: 17,042.94 ms
image: 1,817.09 ms
write: 403.64 ms
[total]: 43,137.84 ms
This will build the closure-compiler-v20180506 executable in the current
directory, which you can run with:
$ ./closure-compiler-v20180506
The compiler is waiting for input via stdin.
var x = 1 + 1;
var x=2;
To address the automatic substitution failed warnings reported during the
image building please refer to the article
<https://medium.com/graalvm/instant-netty-startup-using-graalvm-native-image-generation-ed6f14ff7692>
we published recently, the 'Unsafe memory access' section. I only tried it
on the small test above, and the unsafe memory access didn't cause an issue.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#428 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/ABMDKjNJ8gqf7VjUQFd_KN6XCtz2kLpeks5t4gkAgaJpZM4UIA0A>
.
|
For the open source command line version, you also need a reflection config: https://gist.github.com/ChadKillingsworth/137e8064a9933379726b4d23254a3214 The full build command is:
|
Backport of: graalvm@0c88c7d JDK 17.0.5 includes the change needed to look for the new signature. Closes: oracle#428
Backport of: graalvm@0c88c7d JDK 17.0.5 includes the change needed to look for the new signature. Closes: oracle#428
Backport of: graalvm@0c88c7d JDK 17.0.5 includes the change needed to look for the new signature. This will also fix the issue seen with JDK 11 when 11.0.18 comes around. Closes: oracle#428
Backport of: graalvm@0c88c7d JDK 17.0.5 includes the change needed to look for the new signature. This will also fix the issue seen with JDK 11 when 11.0.18 comes around. Closes: oracle#428
native-image
(built at a6781fa) appears to hang when processing https://github.com/google/closure-compiler. The following invocation ran for >90 minutes without finishing:The text was updated successfully, but these errors were encountered: