[erlang-questions] Inlining Restrictions

Richard Carlsson richardc@REDACTED
Fri Nov 21 19:20:13 CET 2008


David Mercer wrote:
> Are there any restrictions on when it is legal to do function inlining 
> (with either the –compile(inline) directive or the compiler option)?  
> Reason I ask is that I have code that compiles fine without inlining but 
> crashes with an “internal error in kernel_module” error when I enable 
> inlining.  Am wondering if I could refactor my code and take out the 
> offending statement and so allow function inlining.  Please advise.  
> Thank-you.

If possible, please send me your code (or even better, a minimal
example that displays this bug) so I can have a look. Inlining is
supposed to work without any need for tweaking.

     /Richard



More information about the erlang-questions mailing list