Remove the unused argument to dvmCollectGarbage.
Change-Id: Id7bf60b99b33cb8f058f9a500dc63cfe01b8e3c2
diff --git a/vm/SignalCatcher.c b/vm/SignalCatcher.c
index d270b6f..20ead16 100644
--- a/vm/SignalCatcher.c
+++ b/vm/SignalCatcher.c
@@ -216,7 +216,7 @@
static void handleSigUsr1(void)
{
LOGI("SIGUSR1 forcing GC (no HPROF)\n");
- dvmCollectGarbage(false);
+ dvmCollectGarbage();
}
#if defined(WITH_JIT) && defined(WITH_JIT_TUNING)
diff --git a/vm/alloc/Alloc.c b/vm/alloc/Alloc.c
index d55f6fb..a95e63f 100644
--- a/vm/alloc/Alloc.c
+++ b/vm/alloc/Alloc.c
@@ -283,7 +283,7 @@
/*
* Explicitly initiate garbage collection.
*/
-void dvmCollectGarbage(bool clearSoftReferences)
+void dvmCollectGarbage(void)
{
if (gDvm.disableExplicitGc) {
return;
diff --git a/vm/alloc/Alloc.h b/vm/alloc/Alloc.h
index f50ca10..e1b3e31 100644
--- a/vm/alloc/Alloc.h
+++ b/vm/alloc/Alloc.h
@@ -114,11 +114,9 @@
* Initiate garbage collection.
*
* This usually happens automatically, but can also be caused by
- * Runtime.gc(). If clearSoftReferences is true, the garbage
- * collector will not attempt to preserve any softly-reachable
- * SoftReference referents.
+ * Runtime.gc().
*/
-void dvmCollectGarbage(bool clearSoftReferences);
+void dvmCollectGarbage(void);
/*
* Returns a count of the direct instances of a class.
diff --git a/vm/native/java_lang_Runtime.c b/vm/native/java_lang_Runtime.c
index 90df259..2ac50ee 100644
--- a/vm/native/java_lang_Runtime.c
+++ b/vm/native/java_lang_Runtime.c
@@ -31,7 +31,7 @@
{
UNUSED_PARAMETER(args);
- dvmCollectGarbage(false);
+ dvmCollectGarbage();
RETURN_VOID();
}