javatools/tckrunner/starter/src/main.cpp
changeset 50 023eef975703
parent 21 2a9601315dfc
--- a/javatools/tckrunner/starter/src/main.cpp	Tue Jul 06 20:36:19 2010 +0300
+++ b/javatools/tckrunner/starter/src/main.cpp	Fri Jul 09 16:35:45 2010 +0300
@@ -92,6 +92,12 @@
     // starterUtils->enableDevelopmentFeatures(*jvm.get());
     // jvm->enableThreadDumping();
 
+#ifdef __WINSCW__
+    // Setting smaller max heap in the emulator.
+    const int maxHeapSize = 2 * 1024; // 2 MB
+    jvm->overrideMaxHeapSize(maxHeapSize);
+#endif  // __WINSCW__
+
     jvm->appendSystemProperty(L"-Dcom.nokia.rt.port=tckrunner");
 
     jvm->setMainClass(TCK_RUNNER_MAIN_CLASS);