File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -101,19 +101,16 @@ public class TypeScriptParser {
101101 * set to indicate the maximum heap space usable by the Node.js process, in addition to its
102102 * "reserve memory".
103103 *
104- * <p>Defaults to 1.0 GB (for a total heap space of 1.4 GB by default).
104+ * <p>Defaults to 2000 MB (for a total heap space of 2400 MB by default).
105105 */
106106 public static final String TYPESCRIPT_RAM_SUFFIX = "TYPESCRIPT_RAM" ;
107107
108108 /**
109109 * An environment variable (without the <code>SEMMLE_</code> or <code>LGTM_</code> prefix), that can be
110- * set to indicate the amount of heap space the Node.js process should reserve for extracting
111- * individual files .
110+ * set to indicate the additional heap space added to <code>TYPESCRIPT_RAM</code> when setting the
111+ * Node.js heap limit .
112112 *
113- * <p>When less than this amount of memory is available, the TypeScript compiler instance is
114- * restarted to free space.
115- *
116- * <p>Defaults to 400 MB (for a total heap space of 1.4 GB by default).
113+ * <p>Defaults to 400 MB (for a total heap space of 2400 MB by default).
117114 */
118115 public static final String TYPESCRIPT_RAM_RESERVE_SUFFIX = "TYPESCRIPT_RAM_RESERVE" ;
119116
@@ -306,7 +303,6 @@ private void setupParserWrapper() {
306303
307304 ProcessBuilder pb = new ProcessBuilder (cmd );
308305 parserWrapperCommand = StringUtil .glue (" " , cmd );
309- pb .environment ().put ("SEMMLE_TYPESCRIPT_MEMORY_THRESHOLD" , "" + mainMemoryMb );
310306
311307 try {
312308 pb .redirectError (Redirect .INHERIT ); // Forward stderr to our own stderr.
You can’t perform that action at this time.
0 commit comments