doc remix
[eclipsethinslicer.git] / Svelte / doc / COMMON-SLICING-ERRORS
blob25981161d9514bd44b183800062ef04bc2e6eca9
1 ===Out of memory errors===
2 The WALA call graph algorihm and/or slicing algorithm sometimes scales poorly to large or medium-sized programs. You can increase the amount of memory available to the slicing process with the java VM argument <code>-Xmx</code>. If you are building the slicer from source and running from a child Eclipse window, go to the Debug or Run dialog, select the Eclipse Application launch profile you are using, and in the arguments tab, change the VM Arguments so that they contain something like the following:
4 <pre>-Xmx600M</pre>
6 This will set the Java heap size to 600 megabytes.
8 ===Cannot find superclass errors with programs using swing===
9 By default some Java 6, including the swing libraries, are excluded from the analysis because they are too big. If you are trying to slice a program that uses Swing and it does not work, you can try changing which classes are excluded by editing the file Java60RegressionExclusions.txt (there are several of these files in both the WALA directories and the eclipsethinslicer directory, and it is difficult to determine which is being used, so it is safest to change them all). Note however, that what will likely happen is that the swing libraries will be to big to analyze, and generating a call graph will take too long or run out of memory.