[Mono-dev] FULL-AOT problem in SUSE 11.2
Zoltan Varga
vargaz at gmail.com
Sat May 7 14:18:45 EDT 2011
Hi,
You don't need full-aot, it is full platforms where no JITting is
possible, on normal platforms, it won't lead to much perf increase. Also,
AOT does not increase performance, it only decreases startup speed, since it
avoids JITting during application startup.
Zoltan
On Sat, May 7, 2011 at 8:14 PM, huseyin cakir <huseyin.cakir35 at gmail.com>wrote:
> Hi, we have a problem in full-aot is it possible that someone help about
> the problem we have? There are no problems in aot but we dont see any
> performance improvements with aot so we tried full aot.
>
> *For the first step we full-aot all libraries with a bash like this:*
>
> #!/bin/bash
> mono --aot=full /usr/lib/mono/1.0/mscorlib.dll
> mono --aot=full /usr/lib/mono/2.0/mscorlib.dll
> for i in /usr/lib/mono/gac/*/*/*.dll; do mono --aot=full $i; done
>
> *Then in we full-aot our appllication like this:*
>
> mono --aot=full testProject.exe
> mono --full-aot testProject.exe
>
> *But we got the error:*
>
> Unhandled Exception: System.TypeInitializationException: An exception was
> thrown
> by the type initializer for GLib.GType --->
> System.ExecutionEngineException:
> Attempting to JIT compile method '(wrapper native-to-managed)
> GLib.ManagedValue:Copy (intptr)' while running with --aot-only.
> at (wrapper managed-to-native)
> object:__icall_wrapper_mono_delegate_to_ftnptr
> (object)
> at (wrapper managed-to-native)
> GLib.ManagedValue:g_boxed_type_register_static
> (intptr,GLib.ManagedValue/CopyFunc,GLib.ManagedValue/FreeFunc)
> at GLib.ManagedValue.get_GType () [0x00000] in <filename unknown>:0
> at GLib.GType.Register (GType native_type, System.Type type) [0x00000] in
> <filename unknown>:0
> at GLib.GType..cctor () [0x00000] in <filename unknown>:0
> --- End of inner exception stack trace ---
> at GLib.Value..ctor (System.Object obj) [0x00000] in <filename unknown>:0
> at Gtk.Window..ctor (WindowType type) [0x00000] in <filename unknown>:0
> at MainWindow..ctor () [0x00000] in <filename unknown>:0
> at testProject.MainClass.Main (System.String[] args) [0x00000] in
> <filename
> unknown>:0
>
>
>
>
>
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20110507/4e31e5e1/attachment.html
More information about the Mono-devel-list
mailing list