Skip to content

Instantly share code, notes, and snippets.

View kumpera's full-sized avatar

Rodrigo Kumpera kumpera

View GitHub Profile
diff --git a/mono/metadata/sgen-alloc.c b/mono/metadata/sgen-alloc.c
index a1ac53d..ce4b1b0 100644
--- a/mono/metadata/sgen-alloc.c
+++ b/mono/metadata/sgen-alloc.c
@@ -339,6 +339,24 @@ mono_gc_alloc_obj_nolock (MonoVTable *vtable, size_t size)
return p;
}
+
+void
sgen_gray_object_enqueue_fast (SgenGrayQueue *queue, char *object)
{
GrayQueueSection *first = queue->first;
if (G_UNLIKELY (!first || first->end == SGEN_GRAY_QUEUE_SECTION_SIZE))
sgen_gray_object_enqueue (queue, object);
else
first->objects [first->end++] = object;
PREFETCH (object);
}
System.ExecutionEngineException: Attempting to JIT compile method 'System.Array:Sort<int, string> (int[],string[],System.Collections.Generic.IComparer`1<int>)' while running with --aot-only. See http://docs.xamarin.com/ios/about/limitations for more information.
at System.Linq.QuickSort`1[System.String].PerformSort () [0x00000] in <filename unknown>:0
at System.Linq.QuickSort`1+<Sort>c__Iterator2F[System.String].MoveNext () [0x00000] in <filename unknown>:0
at System.Linq.Enumerable+<CreateSelectIterator>c__Iterator1D`2[System.String,System.String].MoveNext () [0x00000] in <filename unknown>:0
at System.Linq.Enumerable.ToArray[String] (IEnumerable`1 source) [0x00000] in <filename unknown>:0
at TweetStation.OAuthAuthorizer.MakeSignature (System.String method, System.String base_uri, System.Collections.Generic.Dictionary`2 headers) [0x00000] in <filename unknown>:0
at TweetStation.OAuthAuthorizer.AuthorizeRequest (TweetStation.OAuthConfig config, System.String oauthToken, System.String o
diff --git a/mono/mini/aot-compiler.c b/mono/mini/aot-compiler.c
index 9502e54..1c197fd 100644
--- a/mono/mini/aot-compiler.c
+++ b/mono/mini/aot-compiler.c
@@ -65,6 +65,7 @@
#include "mini.h"
#include "image-writer.h"
#include "dwarfwriter.h"
+#include "mini-gc.h"
../corlib/System.Threading.Tasks/CyclicDeque.cs(42,25): error CS0122: `System.Threading.Tasks.IConcurrentDeque<T>' is inaccessible due to its protection level
/Users/kumpera/src/monotouch/mono/mcs/class/lib/monotouch/mscorlib.dll (Location of the symbol related to previous error)
../corlib/System.Threading.Tasks/CyclicDeque.cs(71,10): error CS0122: `System.Threading.Tasks.PopResult' is inaccessible due to its protection level
/Users/kumpera/src/monotouch/mono/mcs/class/lib/monotouch/mscorlib.dll (Location of the symbol related to previous error)
../corlib/System.Threading.Tasks/CyclicDeque.cs(113,10): error CS0122: `System.Threading.Tasks.PopResult' is inaccessible due to its protection level
/Users/kumpera/src/monotouch/mono/mcs/class/lib/monotouch/mscorlib.dll (Location of the symbol related to previous error)
.assembly extern mscorlib
{
.ver 2:0:0:0
.publickeytoken = (B7 7A 5C 56 19 34 E0 89 ) // .z\V.4..
}
.assembly 'ctor'
{
.hash algorithm 0x00008004
.ver 0:0:0:0
Rodrigo-Kumperas-MacBook-Pro:tmp kumpera$ MONO_PATH=~/src/mono/mcs/class/lib/net_4_5 ../mini/mono mixed.exe
Unhandled Exception:
0 mono 0x000918ce mono_handle_exception_internal_first_pass + 2190
1 mono 0x00093362 mono_handle_exception_internal + 1602
2 mono 0x00093ea9 mono_handle_exception + 41
3 mono 0x000dfa4d mono_x86_throw_exception + 285
4 ??? 0x003daf8f 0x0 + 4042639
at System.Reflection.MethodBase.Invoke (object,object[]) <0x00023>
at Driver.Main () <0x00038>
NATIVE: 25
ip 0x8fcb4 -> 0 mono 0x0008fcb4 inject_unmanaged_frames + 52
ip 0x91c1a -> 1 mono 0x00091c1a mono_handle_exception_internal_first_pass + 2090
ip 0x93472 -> 2 mono 0x00093472 mono_handle_exception_internal + 1602
ip 0x93fb9 -> 3 mono 0x00093fb9 mono_handle_exception + 41
ip 0xdfb5d -> 4 mono 0x000dfb5d mono_x86_throw_exception + 285
ip 0x3daf8f -> 5 ??? 0x003daf8f 0x0 + 4042639
ip 0x56ade6 frame at (wrapper runtime-invoke) object.runtime_invoke_void (object,intptr,intptr,intptr) <IL 0x00045, 0x0005e>
ip 0x91e2 -> 7 mono 0x000091e2 mono_jit_runtime_invoke + 722
ip 0x17b2ae -> 8 mono 0x0017b2ae mono_runtime_invoke + 126
diff --git a/mono/metadata/threadpool.c b/mono/metadata/threadpool.c
index 272bd1b..72a4574 100644
--- a/mono/metadata/threadpool.c
+++ b/mono/metadata/threadpool.c
@@ -1109,6 +1109,24 @@ threadpool_clear_queue (ThreadPool *tp, MonoDomain *domain)
}
}
+static gboolean
+remove_sockstate_for_domain (gpointer key, gpointer value, gpointer user_data)
diff --git a/mcs/class/System/System.Net.Sockets/Socket.cs b/mcs/class/System/System.Net.Sockets/Socket.cs
index f45f6f8..30d9f65 100644
--- a/mcs/class/System/System.Net.Sockets/Socket.cs
+++ b/mcs/class/System/System.Net.Sockets/Socket.cs
@@ -543,14 +543,9 @@ namespace System.Net.Sockets
int error = 0;
IntPtr sock = (IntPtr) (-1);
- blocking_thread = Thread.CurrentThread;
try {