graalvm

Discuss GraalVM related topics. Use clojure 1.10.2 or newer for all new projects. Contribute to https://github.com/clj-easy/graal-docs and https://github.com/BrunoBonacci/graalvm-clojure. GraalVM slack: https://www.graalvm.org/slack-invitation/.
Chris Lester 2020-03-25T21:10:16.001600Z

Just to follow up on the error I was seeing on Monday, it was due to running out of memory (but not throwing out of mem error). I have a different thing now where http://java.io.FilePermission seems to be unsupported but did get past the original.

borkdude 2020-03-25T21:33:16.002200Z

@activeghost Interesting. Maybe more luck with the java.nio API?

borkdude 2020-03-25T21:34:30.002600Z

@activeghost I do see an open issue regarding that class here: https://github.com/oracle/graal/issues/2177

borkdude 2020-03-25T21:35:28.003200Z

It often helps to comment on such issues with additional data

Chris Lester 2020-03-25T21:37:29.004500Z

Thx @borkdude ... the open issue is exactly what I'm seeing. I don't know where in FilePermission is getting pulled in (it's not clear in the trace). I'll see if I have different data to submit outside of just a +1.

borkdude 2020-03-25T21:38:13.004700Z

@activeghost Are you using v19 or v20?

borkdude 2020-03-25T21:39:20.005Z

you can see how it gets to FilePermission using this: https://github.com/lread/clj-graal-docs#report-what-is-being-analyzed

Chris Lester 2020-03-25T21:41:18.006600Z

Thx, will try that and see if I can eliminate the problem. I am doing file io so perhaps not, but will be info I can attach to the bug.

borkdude 2020-03-25T21:46:49.007300Z

@activeghost If all else fails, you can apply this trick: https://github.com/borkdude/babashka/blob/graalvm20-jdk8/resources/CutOffCoreServicesDependencies.java

borkdude 2020-03-25T21:47:19.008Z

It will instruct GraalVM to substitute the class in question with nothing, so analysis stops there.

Chris Lester 2020-03-25T22:03:09.008900Z

Very cool, thx.