Skip to content

Instantly share code, notes, and snippets.

View luhenry's full-sized avatar

Ludovic Henry luhenry

View GitHub Profile
Unhandled Exception:
System.InvalidProgramException: Invalid IL code in Driver:Benchmark (): IL_0077: ldloc.3
at Driver.Main () [0x00000] in <filename unknown>:0
[ERROR] FATAL UNHANDLED EXCEPTION: System.InvalidProgramException: Invalid IL code in Driver:Benchmark (): IL_0077: ldloc.3
at Driver.Main () [0x00000] in <filename unknown>:0
diff --git a/tools/monodroid/ApkBuilder.cs b/tools/monodroid/ApkBuilder.cs
index 87e2452..de9067a 100644
--- a/tools/monodroid/ApkBuilder.cs
+++ b/tools/monodroid/ApkBuilder.cs
@@ -52,8 +52,10 @@ namespace Monodroid {
}
apk.AddEntry (string.Format ("lib/{0}/libmonodroid.so", abi), s);
- resource = string.Format ("libmonosgen-2.0.{0}.so", abi);
- apk.AddEntry (string.Format ("lib/{0}/libmonosgen-2.0.so", abi), typeof (ApkBuilder).Assembly.GetManifestResourceStream (resource));
using System;
using System.Collections.Generic;
using System.Reflection;
namespace GenericSharingTest {
// public delegate int IntVoidDelegate ();
public class ClassA {}
public class ClassB {}
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Threading;
using System.Threading.Tasks;
class GenericsTests
{
diff --git a/man/mprof-report.1 b/man/mprof-report.1
index de40af6..351d66d 100644
--- a/man/mprof-report.1
+++ b/man/mprof-report.1
@@ -211,6 +211,11 @@ The following commands are available:
.IP \[bu] 2
\f[I]heapshot\f[]: perform a heapshot as soon as possible
.RE
+.IP \[bu] 2
+\f[I]counters\f[]: sample counters values every 1 second. This allow
diff --git a/man/mprof-report.1 b/man/mprof-report.1
index de40af6..4b1b781 100644
--- a/man/mprof-report.1
+++ b/man/mprof-report.1
@@ -211,6 +211,15 @@ The following commands are available:
.IP \[bu] 2
\f[I]heapshot\f[]: perform a heapshot as soon as possible
.RE
+.IP \[bu] 2
+\f[I]counters\f[]: sample counters values every 1 second. This allow
commit d8ad51c18910c06b0aaecd8f19b193d4717af4c1
Author: Ludovic Henry <[email protected]>
Date: Thu Jun 12 08:36:51 2014 -0400
[sgen-gray-queue] {WIP} Remove indirection in SgenGrayQueue and SgenSectionGrayQueue to their first GrayQueueSection
diff --git a/mono/metadata/sgen-gc.c b/mono/metadata/sgen-gc.c
index 48caf35..b969e69 100644
--- a/mono/metadata/sgen-gc.c
+++ b/mono/metadata/sgen-gc.c
#!/usr/bin/python
import sys, time, os
n = int(sys.argv[1])
cmd = ' '.join (sys.argv [2:])
for i in range (0, n):
start = time.time ()
s = os.system (cmd)
diff --git a/mono/utils/mono-compiler.h b/mono/utils/mono-compiler.h
index 22623d0..81ac162 100644
--- a/mono/utils/mono-compiler.h
+++ b/mono/utils/mono-compiler.h
@@ -235,7 +235,11 @@
#endif
#ifdef __GNUC__
+#if defined(__OPTIMIZE__) && !(defined(__OPTIMIZE_SIZE__) || defined(__NO_INLINE__))
#define MONO_ALWAYS_INLINE __attribute__((always_inline))
diff --git a/mono/metadata/sgen-workers.c b/mono/metadata/sgen-workers.c
index 5eb23ed..b3eebb0 100644
--- a/mono/metadata/sgen-workers.c
+++ b/mono/metadata/sgen-workers.c
@@ -289,10 +289,9 @@ workers_get_work (WorkerData *data)
return TRUE;
/* From another worker. */
- for (i = 0; i < workers_num; ++i) {
- WorkerData *victim_data = &workers_data [i];