Skip to content

Commit 6c20694

Browse files
committed
JS: Clarify that memory limit is for Node.js process specifically
1 parent 48df730 commit 6c20694

5 files changed

Lines changed: 5 additions & 5 deletions

File tree

‎javascript/extractor/src/com/semmle/js/extractor/ExtractorConfig.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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. */

‎javascript/extractor/src/com/semmle/js/extractor/Main.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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;

‎javascript/extractor/src/com/semmle/ts/extractor/TypeScriptParser.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
}

‎javascript/resources/tools/autobuild.cmd‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ SETLOCAL EnableDelayedExpansion
33

44
set 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.
77
if NOT [%CODEQL_RAM%] == [] (
88
set /a "half_ram=CODEQL_RAM/2"
99
set LGTM_TYPESCRIPT_RAM=!half_ram!

‎javascript/resources/tools/autobuild.sh‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ set -eu
44

55
jvm_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.
88
if [ -n "${CODEQL_RAM:-}" ] ; then
99
half_ram="$(( CODEQL_RAM / 2 ))"
1010
LGTM_TYPESCRIPT_RAM="$half_ram"

0 commit comments

Comments
 (0)