Skip to content

Instantly share code, notes, and snippets.

View kumpera's full-sized avatar

Rodrigo Kumpera kumpera

View GitHub Profile
diff --git a/TweetStation/Main.cs b/TweetStation/Main.cs
index e0efa09..4095e4d 100644
--- a/TweetStation/Main.cs
+++ b/TweetStation/Main.cs
@@ -40,7 +40,10 @@ namespace TweetStation
public override bool FinishedLaunching (UIApplication app, NSDictionary options)
{
Util.ReportTime ("Entering Finished");
-
+ var t = new Thread (() => { while (true) {GC.Collect (); Thread.Sleep (400); } });
diff --git a/mono/utils/mono-dl-fallback.h b/mono/utils/mono-dl-fallback.h
index 06945ae..f6ed4e1 100644
--- a/mono/utils/mono-dl-fallback.h
+++ b/mono/utils/mono-dl-fallback.h
@@ -11,6 +11,11 @@ enum {
MONO_DL_MASK = 3
};
+typedef enum {
+ MONO_DL_BEFORE_NATIVE,
0x00508460: test %eax,%eax
0x00508462: je 0x50848d
0x00508464: mov 0x4(%eax),%ecx
0x00508467: test %ecx,%ecx
0x00508469: je 0x50848d
0x0050846b: mov %gs:0x448,%edx
0x00508472: mov 0x30(%edx),%edx
0x00508475: cmpl $0x0,(%ecx) <<<<<<<<<<<<<<<
using System;
using System.Threading;
using System.Net;
using System.Net.Sockets;
class Driver {
static bool BrokeConnect;
static void TryConnect (Socket s) {
try {
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 {
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)
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
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>
.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
../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)