projects
/
mono.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1479cf6
)
mono/metadata/gc.c: Fix warning due to declaration after statement.
author
alexrp
<xtzgzorex@gmail.com>
Wed, 23 May 2012 13:27:35 +0000
(15:27 +0200)
committer
alexrp
<xtzgzorex@gmail.com>
Wed, 23 May 2012 13:27:35 +0000
(15:27 +0200)
mono/metadata/gc.c
patch
|
blob
|
history
diff --git
a/mono/metadata/gc.c
b/mono/metadata/gc.c
index ce1afbe1473d4931c745bb8a800ec04718a045e6..284b847661973ad7bc2660dd3d88bb23802b3c90 100644
(file)
--- a/
mono/metadata/gc.c
+++ b/
mono/metadata/gc.c
@@
-1020,6
+1020,12
@@
finalize_domain_objects (DomainFinalizationReq *req)
{
MonoDomain *domain = req->domain;
+#if HAVE_SGEN_GC
+#define NUM_FOBJECTS 64
+ MonoObject *to_finalize [NUM_FOBJECTS];
+ int count;
+#endif
+
/* Process finalizers which are already in the queue */
mono_gc_invoke_finalizers ();
@@
-1045,9
+1051,6
@@
finalize_domain_objects (DomainFinalizationReq *req)
g_ptr_array_free (objs, TRUE);
}
#elif defined(HAVE_SGEN_GC)
-#define NUM_FOBJECTS 64
- MonoObject *to_finalize [NUM_FOBJECTS];
- int count;
while ((count = mono_gc_finalizers_for_domain (domain, to_finalize, NUM_FOBJECTS))) {
int i;
for (i = 0; i < count; ++i) {