Skip to content

Instantly share code, notes, and snippets.

View kumpera's full-sized avatar

Rodrigo Kumpera kumpera

View GitHub Profile
diff --git a/libgc/include/private/gcconfig.h b/libgc/include/private/gcconfig.h
index 8276079..818d93a 100644
--- a/libgc/include/private/gcconfig.h
+++ b/libgc/include/private/gcconfig.h
@@ -325,7 +325,7 @@
These aren't used when dyld support is enabled (it is by default) */
# define DATASTART ((ptr_t) get_etext())
# define DATAEND ((ptr_t) get_end())
-# define STACKBOTTOM ((ptr_t) 0xc0000000)
+# define STACKBOTTOM ((ptr_t) pthread_get_stackaddr_np(pthread_self()))
Attaching to process 39632.
Attaching to process 39632.
Reading symbols for shared libraries . done
Reading symbols for shared libraries .................................... done
0x91a64c5e in semaphore_wait_trap ()
7 0x91a66fda in __wait4 ()
6 0x91a64c5e in semaphore_wait_trap ()
5 0x91a64c5e in semaphore_wait_trap ()
4 0x91a66fda in __wait4 ()
3 0x91a64c5e in semaphore_wait_trap ()
diff --git a/mono/tests/libtest.c b/mono/tests/libtest.c
index 1a9ee48..bed8db2 100644
--- a/mono/tests/libtest.c
+++ b/mono/tests/libtest.c
@@ -5076,3 +5076,22 @@ mono_test_marshal_call_callback (void)
return callback ();
}
+LIBTEST_API int STDCALL
+mono_test_marshal_lpstr (char *str)
Rodrigo-Kumperas-MacBook-Pro:~ kumpera$ cd src/mono/mcs/class/System.Runtime.Serialization
Rodrigo-Kumperas-MacBook-Pro:System.Runtime.Serialization kumpera$ make check
ok=:; make run-test-recursive || ok=false; make run-test-local || ok=false; $ok
MCS [net_4_5] System.Runtime.Serialization_test_net_4_5.dll
Test/System.Runtime.Serialization/DataContractSerializerTest_NullableWithDictionary.cs(36,66): error CS0102: The type `Client.EvalServiceReference.Eval' already contains a definition for `extensionDataField'
Test/System.Runtime.Serialization/Bug2843Test.cs(36,66): (Location of the symbol related to previous error)
Test/System.Runtime.Serialization/DataContractSerializerTest_NullableWithDictionary.cs(39,24): error CS0102: The type `Client.EvalServiceReference.Eval' already contains a definition for `IdField'
Test/System.Runtime.Serialization/Bug2843Test.cs(42,24): (Location of the symbol related to previous error)
Test/System.Runtime.Serialization/DataContractSerializerTest_NullableWithDictionary.cs(48,
class Foo : Java.Lang.Object { Java.Lang.Object obj; }
var foo = new Foo();
var text = new EditText ();
var foo2 = new Foo ();
//The 3 objects are reachable from the stack
foo.obj = text;
What makes a bridge object?
A bridge object is a bridge class with a non-null handle.
What makes a bridge class?
A bridge class must respect the follow rules:
-Be a subclass of Java.Lang.Object; and
diff --git a/mono/metadata/sgen-os-posix.c b/mono/metadata/sgen-os-posix.c
index 5a1f53d..4005a3b 100644
--- a/mono/metadata/sgen-os-posix.c
+++ b/mono/metadata/sgen-os-posix.c
@@ -51,6 +51,7 @@ static MonoSemType suspend_ack_semaphore;
static MonoSemType *suspend_ack_semaphore_ptr;
static sigset_t suspend_signal_mask;
+static sigset_t suspend_ack_signal_mask;
using System;
using System.Diagnostics;
namespace BoxingTest
{
public interface ICriticalNotifyCompletion
{
void UnsafeOnCompleted(Action a);
void UnsafeOnCompleted2(Action a);
}
Apr 24 21:06:19 unknown UIKitApplication:org.tirania.tweetstation[0xea54][1879] <Notice>: [ERROR] FATAL UNHANDLED EXCEPTION: System.TypeInitializationException: An exception was thrown by the type initializer for System.Console ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.TypeInitializationException: An exception was thrown by the type initializer for MonoTouch.Foundation.NSLogWriter ---> System.NullReferenceException: Object reference not set to an instance of an object
Apr 24 21:06:19 unknown UIKitApplication:org.tirania.tweetstation[0xea54][1879] <Notice>: at System.Console.WriteLine (System.String format, System.Object arg0, System.Object arg1, System.Object arg2) [0x00000] in <filename unknown>:0
Apr 24 21:06:19 unknown UIKitApplication:org.tirania.tweetstation[0xea54][1879] <Notice>: at MonoTouch.ObjCRuntime.Runtime.RegisterNSObject (MonoTouch.Foundation.NSObject obj, IntPtr ptr) [0x00000] in <filename unknown>:0
Apr 24 21:
using System;
using System.Threading;
class Driver {
~Driver () {
Console.WriteLine ("FIN");
throw new Exception ();
}
static void Main () {