projects
/
mono.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
39080bf
)
[sgen] Remove bogus mono_profiler_events assert.
author
Alex Rønne Petersen
<alexrp@xamarin.com>
Fri, 9 Sep 2016 16:00:36 +0000
(18:00 +0200)
committer
Alex Rønne Petersen
<alexrp@xamarin.com>
Sun, 2 Oct 2016 16:29:58 +0000
(18:29 +0200)
This variable can be changed at any time by any thread. It makes no sense to
assert that it has a particular flag.
mono/metadata/sgen-mono.c
patch
|
blob
|
history
diff --git
a/mono/metadata/sgen-mono.c
b/mono/metadata/sgen-mono.c
index 7966d8f6ab05cd6fe3045d3f36824f63f27da39b..500e8114abd66c8c8bc45dc756b8cfac1fc74d29 100644
(file)
--- a/
mono/metadata/sgen-mono.c
+++ b/
mono/metadata/sgen-mono.c
@@
-2056,8
+2056,6
@@
static int moved_objects_idx = 0;
void
mono_sgen_register_moved_object (void *obj, void *destination)
{
- g_assert (mono_profiler_events & MONO_PROFILE_GC_MOVES);
-
if (moved_objects_idx == MOVED_OBJECTS_NUM) {
mono_profiler_gc_moves (moved_objects, moved_objects_idx);
moved_objects_idx = 0;