javaruntimes/installer/starterdll/src/main.cpp
changeset 50 023eef975703
parent 49 35baca0e7a2e
child 56 abc41079b313
--- a/javaruntimes/installer/starterdll/src/main.cpp	Tue Jul 06 20:36:19 2010 +0300
+++ b/javaruntimes/installer/starterdll/src/main.cpp	Fri Jul 09 16:35:45 2010 +0300
@@ -348,6 +348,12 @@
     const int oldHeapSize = 512;
     jvm->overrideOldHeapSize(oldHeapSize);
 
+#ifdef __WINSCW__
+    // Setting smaller max heap in the emulator.
+    const int maxHeapSize = 8 * 1024; // 8 MB
+    jvm->overrideMaxHeapSize(maxHeapSize);
+#endif  // __WINSCW__
+
     jvm->enableThreadDumping();
 
     jvm->setMainClass(INSTALLER_MAIN_CLASS);