diff -r e5618cc85d74 -r 6c158198356e javatools/tckrunner/starter/src/main.cpp --- a/javatools/tckrunner/starter/src/main.cpp Thu Jul 15 18:31:06 2010 +0300 +++ b/javatools/tckrunner/starter/src/main.cpp Thu Aug 19 09:48:13 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);