diff --git a/javascript/extractor/src/com/semmle/js/extractor/ExtractorConfig.java b/javascript/extractor/src/com/semmle/js/extractor/ExtractorConfig.java index 538ac1a43679..69823f85af6f 100644 --- a/javascript/extractor/src/com/semmle/js/extractor/ExtractorConfig.java +++ b/javascript/extractor/src/com/semmle/js/extractor/ExtractorConfig.java @@ -224,7 +224,7 @@ public Set getPredefinedGlobals() { /** Should textual information be extracted into the lines/4 relation? */ private boolean extractLines; - /** Override amount of RAM to allocate to the TypeScript compiler. */ + /** Override the amount of RAM for the Node.js process. */ private int typescriptRam; /** The default character encoding to use for parsing source files. */ diff --git a/javascript/extractor/src/com/semmle/js/extractor/Main.java b/javascript/extractor/src/com/semmle/js/extractor/Main.java index 03ef253f357e..62a061a52158 100644 --- a/javascript/extractor/src/com/semmle/js/extractor/Main.java +++ b/javascript/extractor/src/com/semmle/js/extractor/Main.java @@ -376,7 +376,7 @@ private ArgsParser addArgs(ArgsParser argsParser) { argsParser.addFlag( P_TYPESCRIPT_RAM, 1, - "Amount of memory allocated to the TypeScript compiler process. The default is 1G."); + "Amount of memory assigned to the Node.js process's V8 old-space limit. The default is 1G."); argsParser.addToleratedFlag(P_DEBUG_EXCLUSIONS, 0); argsParser.addTrailingParam("files", "Files and directories to extract."); return argsParser; diff --git a/javascript/extractor/src/com/semmle/ts/extractor/TypeScriptParser.java b/javascript/extractor/src/com/semmle/ts/extractor/TypeScriptParser.java index 17989d859a9c..b54ee7f32332 100644 --- a/javascript/extractor/src/com/semmle/ts/extractor/TypeScriptParser.java +++ b/javascript/extractor/src/com/semmle/ts/extractor/TypeScriptParser.java @@ -160,7 +160,7 @@ public class TypeScriptParser { /** Metadata requested immediately after starting the TypeScript parser. */ private TypeScriptParserMetadata metadata; - /** Sets the amount of RAM to allocate to the TypeScript compiler.s */ + /** Sets the amount of RAM for the Node.js process's V8 old-space limit. */ public void setTypescriptRam(int megabytes) { this.typescriptRam = megabytes; } diff --git a/javascript/resources/tools/autobuild.cmd b/javascript/resources/tools/autobuild.cmd index 72feddeab124..36365b4caade 100644 --- a/javascript/resources/tools/autobuild.cmd +++ b/javascript/resources/tools/autobuild.cmd @@ -3,7 +3,7 @@ SETLOCAL EnableDelayedExpansion set jvm_args=-Xss16m -rem If CODEQL_RAM is set, use half for Java and half for TS. +rem If CODEQL_RAM is set, use half for Java and half for Node.js. if NOT [%CODEQL_RAM%] == [] ( set /a "half_ram=CODEQL_RAM/2" set LGTM_TYPESCRIPT_RAM=!half_ram! diff --git a/javascript/resources/tools/autobuild.sh b/javascript/resources/tools/autobuild.sh index 7aaaf2878284..4f9fc7858fa9 100755 --- a/javascript/resources/tools/autobuild.sh +++ b/javascript/resources/tools/autobuild.sh @@ -4,7 +4,7 @@ set -eu jvm_args=-Xss16m -# If CODEQL_RAM is set, use half for Java and half for TS. +# If CODEQL_RAM is set, use half for Java and half for Node.js. if [ -n "${CODEQL_RAM:-}" ] ; then half_ram="$(( CODEQL_RAM / 2 ))" LGTM_TYPESCRIPT_RAM="$half_ram"