trifork / erjang

A JVM-based Erlang VM
http://www.erjang.org
Apache License 2.0
726 stars 62 forks source link

Non-pausable function calls pauseable function in generated code #24

Closed eriksoe closed 14 years ago

eriksoe commented 14 years ago

Kilim reports this error on the asn1rt_uper_bin compile test case: "erjang.m.asn1rt_uper_bin.getbits_as_list2(Lerjang/EProc;Lerjang/EObject;Lerjang/EObject;)Lerjang/EObject; should be marked pausable. It calls pausable methods erjang.m.asn1rt_uper_bin.$2Dgetbits_as_list$2F2$2Dblc$$$5E0$2F1$2D0$2D1(Lerjang/EProc;Lerjang/EObject;)Lerjang/EObject; (and other messages like it).

krestenkrab commented 14 years ago

Hmm, ... that must be the ModuleAnalyzer that somehow gets it wrong. I suppose this is not on the critical path, but happens when you run AllTests?

eriksoe commented 14 years ago

It also happens when I compile beam files (asn1rt_uper_bin or qlc_pt) individually, with ErjC. ModuleAnalyzer appears to get it right. However, in both cases there is a previous error ("no guard bif named erlang:'float'/1"), so I may focusing on the wrong issue here.

krestenkrab commented 14 years ago

I believe this is no longer an issue. Closing this.