Skip to content

Commit cc19e67

Browse files
committed
Fix typos
Fix typos in documentation, comments, etc.
1 parent a5eb4a5 commit cc19e67

File tree

380 files changed

+1388
-542
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

380 files changed

+1388
-542
lines changed

THIRD_PARTY_LICENSE.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8146,7 +8146,7 @@ under the standard MIT terms.
81468146
All other files which have no copyright comments are original works
81478147
produced specifically for use as part of this library, written either
81488148
by Rich Felker, the main author of the library, or by one or more
8149-
contibutors listed above. Details on authorship of individual files
8149+
contributors listed above. Details on authorship of individual files
81508150
can be found in the git version control history of the project. The
81518151
omission of copyright and license comments in each file is in the
81528152
interest of source tree size.

ci/ci_common/run-spec-impl.libsonnet

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ local std_get = (import "../../ci/ci_common/common-utils.libsonnet").std_get;
215215
local onlyMatrixKeys = union == known_fields;
216216
local noMatrixKeys = inter == [];
217217
if isLeaf then
218-
assert noMatrixKeys: "unexected platform spec keys in build definition %s (context: %s, stack: %s)" % [inter, context, stack];
218+
assert noMatrixKeys: "unexpected platform spec keys in build definition %s (context: %s, stack: %s)" % [inter, context, stack];
219219
obj
220220
else
221221
assert onlyMatrixKeys : "unexpected keys in platform spec %s, expected %s (context: %s, stack: %s)" % [diff, known_fields, context, stack];
@@ -443,7 +443,7 @@ local std_get = (import "../../ci/ci_common/common-utils.libsonnet").std_get;
443443
task_dict[build] +
444444
// add the os/arch/jdk specific spec
445445
_spec +
446-
// provide the task_name/os/arch/jdk definitons to the spec
446+
// provide the task_name/os/arch/jdk definitions to the spec
447447
task_spec({
448448
task_name:: build,
449449
os:: os,
@@ -482,7 +482,7 @@ local std_get = (import "../../ci/ci_common/common-utils.libsonnet").std_get;
482482
,
483483
// Add properties that need to be evaluated late
484484
//
485-
// This works around ordering issues. For example, a platform needs to add a download, which depdends
485+
// This works around ordering issues. For example, a platform needs to add a download, which depends
486486
// on the JDK version. However, the JDK definition might come after the platform definition. To avoid this,
487487
// the definition can be added to the `evaluate_late` field. The content of the `evaluate_late` field
488488
// (if it exists) will be added late when all other properties have been set.

compiler/docs/Debugging.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ obtained with `-XX:+JVMCIPrintProperties`.
7878
The compiler supports metrics in the form of counters, timers and memory trackers.
7979
Each metric has a unique name. Metrics are collected per-compilation.
8080
At shutdown, they are aggregated across all compilations and reported to the console.
81-
This ouput can be redirected to a file via the `-Djdk.graal.AggregatedMetricsFile` option.
81+
This output can be redirected to a file via the `-Djdk.graal.AggregatedMetricsFile` option.
8282

8383
To list the per-compilation metrics, use the `-Djdk.graal.MetricsFile` option. If not specified,
8484
per-compilation metrics are not reported.

compiler/mx.compiler/mx_graal_tools.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def run_netbeans_app(app_name, jdkhome, args=None, dist=None):
6060
mx.abort(app_name + ' binary does not exist: ' + executable)
6161

6262
if mx.get_os() != 'windows':
63-
# Make sure that execution is allowed. The zip file does not always specfiy that correctly
63+
# Make sure that execution is allowed. The zip file does not always specify that correctly
6464
os.chmod(executable, 0o777)
6565

6666
launch = [executable]

compiler/src/jdk.graal.compiler.test/src/jdk/graal/compiler/core/test/ArrayLengthProviderTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public static Object test0Snippet(ArrayList<?> list, boolean a) {
4646
}
4747
if (array[0] instanceof String || a) {
4848
/*
49-
* This code is outside of the loop. Accessing the array reqires a ValueProxyNode.
49+
* This code is outside of the loop. Accessing the array requires a ValueProxyNode.
5050
* When the simplification of the ArrayLengthNode replaces the length access with
5151
* the ArrayList.size used to create the array, then the value needs to have a
5252
* ValueProxyNode too. In addition, the two parts of the if-condition actually lead

compiler/src/jdk.graal.compiler.test/src/jdk/graal/compiler/core/test/ConditionalEliminationStampInversionTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646

4747
/**
4848
* Tests the correctness of conditional elimination when inverting stamps along
49-
* {@link SignExtendNode}. The test artificially creates a graph whith the optimizable pattern:
49+
* {@link SignExtendNode}. The test artificially creates a graph with the optimizable pattern:
5050
* {@code ((val & CONST) == CONST)}, which provides information about the set bits in val, if the
5151
* condition is used in a guard which is assumed to hold. The partial information about bits which
5252
* are set in {@code x} are propagated "upwards". A {@link SignExtendNode} must treat the partial

compiler/src/jdk.graal.compiler.test/src/jdk/graal/compiler/core/test/FloatOptimizationTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929

3030
/**
3131
* Check for incorrect elimination of 0.0 and -0.0 from computations. They can affect the sign of
32-
* the result of an add or substract.
32+
* the result of an add or subtract.
3333
*/
3434
public class FloatOptimizationTest extends GraalCompilerTest {
3535

compiler/src/jdk.graal.compiler.test/src/jdk/graal/compiler/core/test/LoopUnswitchTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ public void test3() {
348348
public static void test4Snippet(int a, int b) {
349349
for (int i = 0; GraalDirectives.injectIterationCount(1000, i < 1000); ++i) {
350350
if (GraalDirectives.injectBranchProbability(0.000001, a < i)) {
351-
// This is an invariant but on average it is exectutes 1000 * 0.000001 = 0.001 < 1
351+
// This is an invariant but on average it executes 1000 * 0.000001 = 0.001 < 1
352352
// time per execution of the whole loop so it should not be unswitched.
353353
if (b > 0) {
354354
GraalDirectives.sideEffect(1);

compiler/src/jdk.graal.compiler.test/src/jdk/graal/compiler/core/test/SubWordInputTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ protected byte[] generateClass(String internalClassName) {
9292
get.visitMaxs(1, 1);
9393
get.visitEnd();
9494

95-
// Genearates a method that compares the return value of the preceding method by passing the
95+
// Generates a method that compares the return value of the preceding method by passing the
9696
// input value, and a manual masking of the input value.
9797
MethodVisitor snippet = cw.visitMethod(ACC_PUBLIC | ACC_STATIC, WRAPPER, "(I)Z", null, null);
9898
snippet.visitCode();

compiler/src/jdk.graal.compiler.test/src/jdk/graal/compiler/core/test/VerifyAssertionUsage.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ boolean canBeCalledWithoutErrorMessage() {
351351
public String toString() {
352352
StringBuilder sb = new StringBuilder();
353353
sb.append("Method info for ").append(method).append(System.lineSeparator());
354-
sb.append("\tValid asserion usage ?").append(correctAssertionMethod).append(System.lineSeparator());
354+
sb.append("\tValid assertion usage ?").append(correctAssertionMethod).append(System.lineSeparator());
355355
sb.append("\troot?").append(root).append(System.lineSeparator());
356356
sb.append("\tcalls assertion(transitively)?").append(callsAssertionTransitively).append(System.lineSeparator());
357357
sb.append("\tValid use as assertion method based on paths?").append(allPathsAssertionDominated).append(System.lineSeparator());

0 commit comments

Comments
 (0)