oracle / graal

GraalVM compiles Java applications into native executables that start instantly, scale fast, and use fewer compute resources 🚀
https://www.graalvm.org
Other
20.4k stars 1.64k forks source link

emitPause not implemented in LLVM backend #1126

Open johanvos opened 5 years ago

johanvos commented 5 years ago

The LLVMGenerator has currently no implementation for emitPause:

Caused by: org.graalvm.compiler.debug.GraalError: unimplemented at jdk.internal.vm.compiler/org.graalvm.compiler.debug.GraalError.unimplemented(GraalError.java:39) at org.graalvm.compiler.core.llvm.LLVMGenerator.emitPause(LLVMGenerator.java:951) at jdk.internal.vm.compiler/org.graalvm.compiler.nodes.PauseNode.generate(PauseNode.java:51) at org.graalvm.compiler.core.llvm.NodeLLVMBuilder.emitNode(NodeLLVMBuilder.java:265) at org.graalvm.compiler.core.llvm.NodeLLVMBuilder.doRoot(NodeLLVMBuilder.java:255)

vjovanov commented 5 years ago

@loicottet the only thing I found (besides writing our own assembly) is:

https://llvm.org/docs/LangRef.html#llvm-donothing-intrinsic

WDYT?

johanvos commented 5 years ago

that should work imho