[Mono-dev] Mono runs out of trampolines in FullAOT-mode
mdae at cs.tu-chemnitz.de
Thu Jan 12 11:24:57 UTC 2012
On 12.01.12 12:18, Martin Däumler wrote:
> I tested Mono-184.108.40.206 on Linux/x86. In my test program ,
> there is an interface defining 1000 methods. This interface
> is implemented by two classes. When running the program, one
> of these two class is chosen and the 1000 methods are called
> through the interface. All works fine in JIT- and AOT mode.
> In FullAOT-mode, however, Mono aborts with
> "Ran out of trampolines of type 0 in '/usr/local/lib/mono
> /2.0/mscorlib.dll' (1024)"
> during initialization of a Vtable. There is a reason for that
> limitation (if it is one) of trampolines in FullAOT-mode?
> Does the Vtable contain method-specific trampolines in
> FullAOT-mode? IIRC, in JIT mode the Vtable-trampolines are
> generic and the Magic Trampoline determines the method to
> be called by the Vtable-slot it was called from. How does
> this work in (Full-)AOT-mode?
> With kind regards,
> Martin Däumler
>  http://www-user.tu-chemnitz.de/~mdae/1000MethodsInterface2.cs
I'm sorry for the hasty posting. The problem is solved by
using the option "ntrampolines=4048" (for example) when
AOT-compiling the code.
With kind regards,
More information about the Mono-devel-list