File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -224,7 +224,7 @@ public Set<String> getPredefinedGlobals() {
224224 /** Should textual information be extracted into the lines/4 relation? */
225225 private boolean extractLines ;
226226
227- /** Override amount of RAM to allocate to the TypeScript compiler. */
227+ /** Override the amount of RAM for the Node.js process. */
228228 private int typescriptRam ;
229229
230230 /** The default character encoding to use for parsing source files. */
Original file line number Diff line number Diff line change @@ -376,7 +376,7 @@ private ArgsParser addArgs(ArgsParser argsParser) {
376376 argsParser .addFlag (
377377 P_TYPESCRIPT_RAM ,
378378 1 ,
379- "Amount of memory allocated to the TypeScript compiler process. The default is 1G." );
379+ "Amount of memory assigned to the Node.js process's V8 old-space limit . The default is 1G." );
380380 argsParser .addToleratedFlag (P_DEBUG_EXCLUSIONS , 0 );
381381 argsParser .addTrailingParam ("files" , "Files and directories to extract." );
382382 return argsParser ;
Original file line number Diff line number Diff line change @@ -160,7 +160,7 @@ public class TypeScriptParser {
160160 /** Metadata requested immediately after starting the TypeScript parser. */
161161 private TypeScriptParserMetadata metadata ;
162162
163- /** Sets the amount of RAM to allocate to the TypeScript compiler.s */
163+ /** Sets the amount of RAM for the Node.js process's V8 old-space limit. */
164164 public void setTypescriptRam (int megabytes ) {
165165 this .typescriptRam = megabytes ;
166166 }
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ SETLOCAL EnableDelayedExpansion
33
44set jvm_args = -Xss16m
55
6- rem If CODEQL_RAM is set, use half for Java and half for TS .
6+ rem If CODEQL_RAM is set, use half for Java and half for Node.js .
77if NOT [%CODEQL_RAM% ] == [] (
88 set /a " half_ram = CODEQL_RAM/ 2"
99 set LGTM_TYPESCRIPT_RAM = !half_ram!
Original file line number Diff line number Diff line change 44
55jvm_args=-Xss16m
66
7- # If CODEQL_RAM is set, use half for Java and half for TS .
7+ # If CODEQL_RAM is set, use half for Java and half for Node.js .
88if [ -n " ${CODEQL_RAM:- } " ] ; then
99 half_ram=" $(( CODEQL_RAM / 2 )) "
1010 LGTM_TYPESCRIPT_RAM=" $half_ram "
You can’t perform that action at this time.
0 commit comments