diff --git a/THIRD_PARTY_LICENSE.txt b/THIRD_PARTY_LICENSE.txt index d847a81199fc..b24da0f8f471 100644 --- a/THIRD_PARTY_LICENSE.txt +++ b/THIRD_PARTY_LICENSE.txt @@ -8146,7 +8146,7 @@ under the standard MIT terms. All other files which have no copyright comments are original works produced specifically for use as part of this library, written either by Rich Felker, the main author of the library, or by one or more -contibutors listed above. Details on authorship of individual files +contributors listed above. Details on authorship of individual files can be found in the git version control history of the project. The omission of copyright and license comments in each file is in the interest of source tree size. diff --git a/ci/ci_common/run-spec-impl.libsonnet b/ci/ci_common/run-spec-impl.libsonnet index 7f514f87a68b..721e329d633f 100644 --- a/ci/ci_common/run-spec-impl.libsonnet +++ b/ci/ci_common/run-spec-impl.libsonnet @@ -215,7 +215,7 @@ local std_get = (import "../../ci/ci_common/common-utils.libsonnet").std_get; local onlyMatrixKeys = union == known_fields; local noMatrixKeys = inter == []; if isLeaf then - assert noMatrixKeys: "unexected platform spec keys in build definition %s (context: %s, stack: %s)" % [inter, context, stack]; + assert noMatrixKeys: "unexpected platform spec keys in build definition %s (context: %s, stack: %s)" % [inter, context, stack]; obj else 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; task_dict[build] + // add the os/arch/jdk specific spec _spec + - // provide the task_name/os/arch/jdk definitons to the spec + // provide the task_name/os/arch/jdk definitions to the spec task_spec({ task_name:: build, os:: os, @@ -482,7 +482,7 @@ local std_get = (import "../../ci/ci_common/common-utils.libsonnet").std_get; , // Add properties that need to be evaluated late // - // This works around ordering issues. For example, a platform needs to add a download, which depdends + // This works around ordering issues. For example, a platform needs to add a download, which depends // on the JDK version. However, the JDK definition might come after the platform definition. To avoid this, // the definition can be added to the `evaluate_late` field. The content of the `evaluate_late` field // (if it exists) will be added late when all other properties have been set. diff --git a/compiler/mx.compiler/mx_graal_tools.py b/compiler/mx.compiler/mx_graal_tools.py index 1c73c4ecab3d..31350aa78521 100644 --- a/compiler/mx.compiler/mx_graal_tools.py +++ b/compiler/mx.compiler/mx_graal_tools.py @@ -60,7 +60,7 @@ def run_netbeans_app(app_name, jdkhome, args=None, dist=None): mx.abort(app_name + ' binary does not exist: ' + executable) if mx.get_os() != 'windows': - # Make sure that execution is allowed. The zip file does not always specfiy that correctly + # Make sure that execution is allowed. The zip file does not always specify that correctly os.chmod(executable, 0o777) launch = [executable] diff --git a/compiler/src/jdk.graal.compiler.test/src/jdk/graal/compiler/core/test/ArrayLengthProviderTest.java b/compiler/src/jdk.graal.compiler.test/src/jdk/graal/compiler/core/test/ArrayLengthProviderTest.java index 546b1ec23aff..7e08c35bf16e 100644 --- a/compiler/src/jdk.graal.compiler.test/src/jdk/graal/compiler/core/test/ArrayLengthProviderTest.java +++ b/compiler/src/jdk.graal.compiler.test/src/jdk/graal/compiler/core/test/ArrayLengthProviderTest.java @@ -46,7 +46,7 @@ public static Object test0Snippet(ArrayList list, boolean a) { } if (array[0] instanceof String || a) { /* - * This code is outside of the loop. Accessing the array reqires a ValueProxyNode. + * This code is outside of the loop. Accessing the array requires a ValueProxyNode. * When the simplification of the ArrayLengthNode replaces the length access with * the ArrayList.size used to create the array, then the value needs to have a * ValueProxyNode too. In addition, the two parts of the if-condition actually lead diff --git a/compiler/src/jdk.graal.compiler.test/src/jdk/graal/compiler/core/test/ConditionalEliminationStampInversionTest.java b/compiler/src/jdk.graal.compiler.test/src/jdk/graal/compiler/core/test/ConditionalEliminationStampInversionTest.java index e85fa469ed2e..e138d11ebc2a 100644 --- a/compiler/src/jdk.graal.compiler.test/src/jdk/graal/compiler/core/test/ConditionalEliminationStampInversionTest.java +++ b/compiler/src/jdk.graal.compiler.test/src/jdk/graal/compiler/core/test/ConditionalEliminationStampInversionTest.java @@ -46,7 +46,7 @@ /** * Tests the correctness of conditional elimination when inverting stamps along - * {@link SignExtendNode}. The test artificially creates a graph whith the optimizable pattern: + * {@link SignExtendNode}. The test artificially creates a graph with the optimizable pattern: * {@code ((val & CONST) == CONST)}, which provides information about the set bits in val, if the * condition is used in a guard which is assumed to hold. The partial information about bits which * are set in {@code x} are propagated "upwards". A {@link SignExtendNode} must treat the partial diff --git a/compiler/src/jdk.graal.compiler.test/src/jdk/graal/compiler/core/test/FloatOptimizationTest.java b/compiler/src/jdk.graal.compiler.test/src/jdk/graal/compiler/core/test/FloatOptimizationTest.java index baa9ee9fbe24..ae4503ac9fb4 100644 --- a/compiler/src/jdk.graal.compiler.test/src/jdk/graal/compiler/core/test/FloatOptimizationTest.java +++ b/compiler/src/jdk.graal.compiler.test/src/jdk/graal/compiler/core/test/FloatOptimizationTest.java @@ -29,7 +29,7 @@ /** * Check for incorrect elimination of 0.0 and -0.0 from computations. They can affect the sign of - * the result of an add or substract. + * the result of an add or subtract. */ public class FloatOptimizationTest extends GraalCompilerTest { diff --git a/compiler/src/jdk.graal.compiler.test/src/jdk/graal/compiler/core/test/LoopUnswitchTest.java b/compiler/src/jdk.graal.compiler.test/src/jdk/graal/compiler/core/test/LoopUnswitchTest.java index 9fba3d037d6b..e1f016d39c09 100644 --- a/compiler/src/jdk.graal.compiler.test/src/jdk/graal/compiler/core/test/LoopUnswitchTest.java +++ b/compiler/src/jdk.graal.compiler.test/src/jdk/graal/compiler/core/test/LoopUnswitchTest.java @@ -348,7 +348,7 @@ public void test3() { public static void test4Snippet(int a, int b) { for (int i = 0; GraalDirectives.injectIterationCount(1000, i < 1000); ++i) { if (GraalDirectives.injectBranchProbability(0.000001, a < i)) { - // This is an invariant but on average it is exectutes 1000 * 0.000001 = 0.001 < 1 + // This is an invariant but on average it executes 1000 * 0.000001 = 0.001 < 1 // time per execution of the whole loop so it should not be unswitched. if (b > 0) { GraalDirectives.sideEffect(1); diff --git a/compiler/src/jdk.graal.compiler.test/src/jdk/graal/compiler/core/test/SubWordInputTest.java b/compiler/src/jdk.graal.compiler.test/src/jdk/graal/compiler/core/test/SubWordInputTest.java index ba1b31f357d7..798516c649ef 100644 --- a/compiler/src/jdk.graal.compiler.test/src/jdk/graal/compiler/core/test/SubWordInputTest.java +++ b/compiler/src/jdk.graal.compiler.test/src/jdk/graal/compiler/core/test/SubWordInputTest.java @@ -92,7 +92,7 @@ protected byte[] generateClass(String internalClassName) { get.visitMaxs(1, 1); get.visitEnd(); - // Genearates a method that compares the return value of the preceding method by passing the + // Generates a method that compares the return value of the preceding method by passing the // input value, and a manual masking of the input value. MethodVisitor snippet = cw.visitMethod(ACC_PUBLIC | ACC_STATIC, WRAPPER, "(I)Z", null, null); snippet.visitCode(); diff --git a/compiler/src/jdk.graal.compiler.test/src/jdk/graal/compiler/core/test/VerifyAssertionUsage.java b/compiler/src/jdk.graal.compiler.test/src/jdk/graal/compiler/core/test/VerifyAssertionUsage.java index c2fa9631600a..817174fc36dd 100644 --- a/compiler/src/jdk.graal.compiler.test/src/jdk/graal/compiler/core/test/VerifyAssertionUsage.java +++ b/compiler/src/jdk.graal.compiler.test/src/jdk/graal/compiler/core/test/VerifyAssertionUsage.java @@ -351,7 +351,7 @@ boolean canBeCalledWithoutErrorMessage() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("Method info for ").append(method).append(System.lineSeparator()); - sb.append("\tValid asserion usage ?").append(correctAssertionMethod).append(System.lineSeparator()); + sb.append("\tValid assertion usage ?").append(correctAssertionMethod).append(System.lineSeparator()); sb.append("\troot?").append(root).append(System.lineSeparator()); sb.append("\tcalls assertion(transitively)?").append(callsAssertionTransitively).append(System.lineSeparator()); sb.append("\tValid use as assertion method based on paths?").append(allPathsAssertionDominated).append(System.lineSeparator()); diff --git a/compiler/src/jdk.graal.compiler.test/src/jdk/graal/compiler/core/test/VerifySnippetProbabilities.java b/compiler/src/jdk.graal.compiler.test/src/jdk/graal/compiler/core/test/VerifySnippetProbabilities.java index 030e446318bb..372fc2fa91c4 100644 --- a/compiler/src/jdk.graal.compiler.test/src/jdk/graal/compiler/core/test/VerifySnippetProbabilities.java +++ b/compiler/src/jdk.graal.compiler.test/src/jdk/graal/compiler/core/test/VerifySnippetProbabilities.java @@ -141,7 +141,7 @@ protected void verify(StructuredGraph graph, CoreProviders context) { } } else { // abstract / interface methods called in a snippet, most likely due - // to overriden snippet logic that folds later, ignore + // to overridden snippet logic that folds later, ignore found = true; break; } diff --git a/compiler/src/jdk.graal.compiler.test/src/jdk/graal/compiler/core/test/ea/EscapeAnalysisTest.java b/compiler/src/jdk.graal.compiler.test/src/jdk/graal/compiler/core/test/ea/EscapeAnalysisTest.java index 82d96706dc3b..f1ff5cc477e8 100644 --- a/compiler/src/jdk.graal.compiler.test/src/jdk/graal/compiler/core/test/ea/EscapeAnalysisTest.java +++ b/compiler/src/jdk.graal.compiler.test/src/jdk/graal/compiler/core/test/ea/EscapeAnalysisTest.java @@ -203,7 +203,7 @@ public void testMergeAllocationsInt2() { public int testMergeAllocationsInt2Snippet(int a) { /* * The initial object in obj exists until the end of the function, but it can still be - * merged with the one allocated in the else block because noone can observe the identity. + * merged with the one allocated in the else block because no one can observe the identity. */ TestClassInt obj = new TestClassInt(1, 2); if (a < 0) { diff --git a/compiler/src/jdk.graal.compiler.test/src/jdk/graal/compiler/core/test/inlining/ImpreciseArgumentStampInliningTest.java b/compiler/src/jdk.graal.compiler.test/src/jdk/graal/compiler/core/test/inlining/ImpreciseArgumentStampInliningTest.java index 798c6cf70f8f..e3dd633928d3 100644 --- a/compiler/src/jdk.graal.compiler.test/src/jdk/graal/compiler/core/test/inlining/ImpreciseArgumentStampInliningTest.java +++ b/compiler/src/jdk.graal.compiler.test/src/jdk/graal/compiler/core/test/inlining/ImpreciseArgumentStampInliningTest.java @@ -176,7 +176,7 @@ private StructuredGraph getGraph(final String snippet, Set initialLoaded loader.resolveableClasses.add(UnresolveableClass.class.getName()); /* * With eager resolving and the set of resolveable classes updated, the inlined - * method will have succesfully resolved UnresolveableClass, but the caller will + * method will have successfully resolved UnresolveableClass, but the caller will * not. */ createInliningPhase(hints, createCanonicalizerPhase()).apply(graph, getEagerHighTierContext()); diff --git a/compiler/src/jdk.graal.compiler.test/src/jdk/graal/compiler/graph/test/graphio/parsing/DataBinarySourceTest.java b/compiler/src/jdk.graal.compiler.test/src/jdk/graal/compiler/graph/test/graphio/parsing/DataBinarySourceTest.java index 1fcc944f22be..68f843cbe015 100644 --- a/compiler/src/jdk.graal.compiler.test/src/jdk/graal/compiler/graph/test/graphio/parsing/DataBinarySourceTest.java +++ b/compiler/src/jdk.graal.compiler.test/src/jdk/graal/compiler/graph/test/graphio/parsing/DataBinarySourceTest.java @@ -47,7 +47,7 @@ protected DataSource createDataSource(URL bigv) throws IOException { FileChannel fch2 = FileChannel.open(f.toPath(), StandardOpenOption.READ); return new BinarySource(null, fch2); } catch (URISyntaxException ex) { - throw new AssertionError("Canot convert " + bigv, ex); + throw new AssertionError("Cannot convert " + bigv, ex); } } } diff --git a/compiler/src/jdk.graal.compiler.test/src/jdk/graal/compiler/hotspot/test/HotSpotMonitorValueTest.java b/compiler/src/jdk.graal.compiler.test/src/jdk/graal/compiler/hotspot/test/HotSpotMonitorValueTest.java index 116e05dbc550..b05476134375 100644 --- a/compiler/src/jdk.graal.compiler.test/src/jdk/graal/compiler/hotspot/test/HotSpotMonitorValueTest.java +++ b/compiler/src/jdk.graal.compiler.test/src/jdk/graal/compiler/hotspot/test/HotSpotMonitorValueTest.java @@ -88,7 +88,7 @@ protected InstalledCode addMethod(DebugContext debug, ResolvedJavaMethod method, @Test public void test() { - // Disable incremental inlining so that the call to Objec.wait(long) in + // Disable incremental inlining so that the call to Object.wait(long) in // locks2 is not inlined. OptionValues options = new OptionValues(getInitialOptions(), HighTier.Options.Inline, false); test(options, "testSnippet", "a", "b"); diff --git a/compiler/src/jdk.graal.compiler.test/src/jdk/graal/compiler/hotspot/test/TestNewInstanceWithException.java b/compiler/src/jdk.graal.compiler.test/src/jdk/graal/compiler/hotspot/test/TestNewInstanceWithException.java index ed89537bd54f..71905a952774 100644 --- a/compiler/src/jdk.graal.compiler.test/src/jdk/graal/compiler/hotspot/test/TestNewInstanceWithException.java +++ b/compiler/src/jdk.graal.compiler.test/src/jdk/graal/compiler/hotspot/test/TestNewInstanceWithException.java @@ -167,7 +167,7 @@ public static int snippet(int limit) { System.gc(); S = 42; if (LOG_OOME_HAPPENED) { - GraalDirectives.log("[1]Out of memory happend all good..\n"); + GraalDirectives.log("[1]Out of memory happened all good..\n"); } if (GraalDirectives.inCompiledCode()) { /* @@ -249,7 +249,7 @@ public static int snippet2(int limit) { head = null; System.gc(); if (LOG_OOME_HAPPENED) { - GraalDirectives.log("[2]Out of memory happend all good..\n"); + GraalDirectives.log("[2]Out of memory happened all good..\n"); } if (GraalDirectives.inCompiledCode()) { /* @@ -312,7 +312,7 @@ public static int snippet3(int limit) throws InstantiationException { ihead = null; System.gc(); if (LOG_OOME_HAPPENED) { - GraalDirectives.log("[3]Out of memory happend all good..\n"); + GraalDirectives.log("[3]Out of memory happened all good..\n"); } if (GraalDirectives.inCompiledCode()) { /* @@ -354,7 +354,7 @@ public static int snippet4(int limit) throws InstantiationException { ihead = null; System.gc(); if (LOG_OOME_HAPPENED) { - GraalDirectives.log("[3]Out of memory happend all good..\n"); + GraalDirectives.log("[3]Out of memory happened all good..\n"); } if (GraalDirectives.inCompiledCode()) { /* @@ -410,7 +410,7 @@ public static int snippet5(int limit) { System.gc(); S = 42; if (LOG_OOME_HAPPENED) { - GraalDirectives.log("[1]Out of memory happend all good..\n"); + GraalDirectives.log("[1]Out of memory happened all good..\n"); } if (GraalDirectives.inCompiledCode()) { /* @@ -451,7 +451,7 @@ public static int snippet6(int limit) { System.gc(); S = 42; if (LOG_OOME_HAPPENED) { - GraalDirectives.log("[1]Out of memory happend all good..\n"); + GraalDirectives.log("[1]Out of memory happened all good..\n"); } if (GraalDirectives.inCompiledCode()) { /* @@ -505,7 +505,7 @@ public static int snippet7(int limit) { System.gc(); S = 42; if (LOG_OOME_HAPPENED) { - GraalDirectives.log("[1]Out of memory happend all good..\n"); + GraalDirectives.log("[1]Out of memory happened all good..\n"); } if (GraalDirectives.inCompiledCode()) { /* diff --git a/compiler/src/jdk.graal.compiler.test/src/jdk/graal/compiler/jtt/bytecode/BC_lshr02.java b/compiler/src/jdk.graal.compiler.test/src/jdk/graal/compiler/jtt/bytecode/BC_lshr02.java index b498c8decb79..9449b20a7a03 100644 --- a/compiler/src/jdk.graal.compiler.test/src/jdk/graal/compiler/jtt/bytecode/BC_lshr02.java +++ b/compiler/src/jdk.graal.compiler.test/src/jdk/graal/compiler/jtt/bytecode/BC_lshr02.java @@ -61,7 +61,7 @@ public void run0e() throws Throwable { runTest("test0", Long.MIN_VALUE); } - /* testcase for a postive stamp */ + /* testcase for a positive stamp */ public static int test1(long[] arg) { int a = arg.length >> 16; return a >> 16; diff --git a/compiler/src/jdk.graal.compiler.test/src/jdk/graal/compiler/jtt/hotspot/Test7005594.java b/compiler/src/jdk.graal.compiler.test/src/jdk/graal/compiler/jtt/hotspot/Test7005594.java index b49fe8266938..7055bfac3442 100644 --- a/compiler/src/jdk.graal.compiler.test/src/jdk/graal/compiler/jtt/hotspot/Test7005594.java +++ b/compiler/src/jdk.graal.compiler.test/src/jdk/graal/compiler/jtt/hotspot/Test7005594.java @@ -27,7 +27,7 @@ //@formatter:off /** - * Array overflow not handled correctly with loop optimzations. + * Array overflow not handled correctly with loop optimizations. * * @test * @bug 7005594 diff --git a/compiler/src/jdk.graal.compiler.test/src/jdk/graal/compiler/jtt/optimize/SwitchHashTableTest.java b/compiler/src/jdk.graal.compiler.test/src/jdk/graal/compiler/jtt/optimize/SwitchHashTableTest.java index 9c0b90088903..c4703366ed56 100644 --- a/compiler/src/jdk.graal.compiler.test/src/jdk/graal/compiler/jtt/optimize/SwitchHashTableTest.java +++ b/compiler/src/jdk.graal.compiler.test/src/jdk/graal/compiler/jtt/optimize/SwitchHashTableTest.java @@ -73,7 +73,7 @@ public static int test1(int arg) { @Test public void run1() throws Throwable { runTest("test1", 0); // zero - runTest("test1", 3080011); // bellow + runTest("test1", 3080011); // below runTest("test1", 3080012); // first runTest("test1", 3080065); // middle runTest("test1", 3080130); // last @@ -121,7 +121,7 @@ public static int test2(int arg) { @Test public void run2() throws Throwable { runTest("test2", 0); // zero - runTest("test2", 718707334); // bellow + runTest("test2", 718707334); // below runTest("test2", 718707335); // first runTest("test2", 718707386); // middle runTest("test2", 718707436); // last @@ -169,7 +169,7 @@ public static int test3(int arg) { @Test public void run3() throws Throwable { runTest("test3", 0); // zero - runTest("test3", 880488711); // bellow + runTest("test3", 880488711); // below runTest("test3", 880488712); // first runTest("test3", 880488777); // middle runTest("test3", 880488831); // last @@ -217,7 +217,7 @@ public static int test4(int arg) { @Test public void run4() throws Throwable { runTest("test4", 0); // zero - runTest("test4", 189404657); // bellow + runTest("test4", 189404657); // below runTest("test4", 189404658); // first runTest("test4", 189404711); // middle runTest("test4", 189404765); // last @@ -265,7 +265,7 @@ public static int test5(int arg) { @Test public void run5() throws Throwable { runTest("test5", 0); // zero - runTest("test5", 527674225); // bellow + runTest("test5", 527674225); // below runTest("test5", 527674226); // first runTest("test5", 527674263); // middle runTest("test5", 527674308); // last @@ -313,7 +313,7 @@ public static int test6(int arg) { @Test public void run6() throws Throwable { runTest("test6", 0); // zero - runTest("test6", 676979120); // bellow + runTest("test6", 676979120); // below runTest("test6", 676979121); // first runTest("test6", 676979169); // middle runTest("test6", 676979219); // last @@ -361,7 +361,7 @@ public static int test7(int arg) { @Test public void run7() throws Throwable { runTest("test7", 0); // zero - runTest("test7", 634218695); // bellow + runTest("test7", 634218695); // below runTest("test7", 634218696); // first runTest("test7", 634218749); // middle runTest("test7", 634218795); // last @@ -409,7 +409,7 @@ public static int test8(int arg) { @Test public void run8() throws Throwable { runTest("test8", 0); // zero - runTest("test8", 473982402); // bellow + runTest("test8", 473982402); // below runTest("test8", 473982403); // first runTest("test8", 473982468); // middle runTest("test8", 473982523); // last @@ -457,7 +457,7 @@ public static int test9(int arg) { @Test public void run9() throws Throwable { runTest("test9", 0); // zero - runTest("test9", 15745089); // bellow + runTest("test9", 15745089); // below runTest("test9", 15745090); // first runTest("test9", 15745146); // middle runTest("test9", 15745207); // last @@ -505,7 +505,7 @@ public static int test10(int arg) { @Test public void run10() throws Throwable { runTest("test10", 0); // zero - runTest("test10", 989358995); // bellow + runTest("test10", 989358995); // below runTest("test10", 989358996); // first runTest("test10", 989359059); // middle runTest("test10", 989359108); // last diff --git a/compiler/src/jdk.graal.compiler.test/src/jdk/graal/compiler/jtt/threads/Thread_join02.java b/compiler/src/jdk.graal.compiler.test/src/jdk/graal/compiler/jtt/threads/Thread_join02.java index 3604cc59fea5..c89e58fe0cc5 100644 --- a/compiler/src/jdk.graal.compiler.test/src/jdk/graal/compiler/jtt/threads/Thread_join02.java +++ b/compiler/src/jdk.graal.compiler.test/src/jdk/graal/compiler/jtt/threads/Thread_join02.java @@ -25,7 +25,7 @@ /* * * This test sleeps the thread that is joined to, which should ensure that the joining thread - * actually does wait for completeion. + * actually does wait for completion. */ package jdk.graal.compiler.jtt.threads; diff --git a/compiler/src/jdk.graal.compiler.test/src/jdk/graal/compiler/replacements/test/PointerTrackingTest.java b/compiler/src/jdk.graal.compiler.test/src/jdk/graal/compiler/replacements/test/PointerTrackingTest.java index 40ca7d348b54..ec980f9f91c1 100644 --- a/compiler/src/jdk.graal.compiler.test/src/jdk/graal/compiler/replacements/test/PointerTrackingTest.java +++ b/compiler/src/jdk.graal.compiler.test/src/jdk/graal/compiler/replacements/test/PointerTrackingTest.java @@ -62,7 +62,7 @@ public static String trackingSnippet() { int i = 0; while (untrackedBeforeGC == getTrackedPointer(obj)) { - // allocate something to increase likelyhood of GC moving the object + // allocate something to increase likelihood of GC moving the object GraalDirectives.blackhole(new Object()); System.gc(); diff --git a/compiler/src/jdk.graal.compiler.test/src/jdk/graal/compiler/replacements/test/StringIntrinsicRangeChecksTest.java b/compiler/src/jdk.graal.compiler.test/src/jdk/graal/compiler/replacements/test/StringIntrinsicRangeChecksTest.java index e1b453c4438e..0a746bc2fc39 100644 --- a/compiler/src/jdk.graal.compiler.test/src/jdk/graal/compiler/replacements/test/StringIntrinsicRangeChecksTest.java +++ b/compiler/src/jdk.graal.compiler.test/src/jdk/graal/compiler/replacements/test/StringIntrinsicRangeChecksTest.java @@ -192,7 +192,7 @@ public void test() throws Exception { for (int srcOff = 0; srcOff < SIZE; ++srcOff) { for (int dstOff = 0; dstOff < SIZE; ++dstOff) { for (int len = 0; len < SIZE; ++len) { - // Check for potential overlows in source or destination array + // Check for potential overflows in source or destination array boolean srcOverflow = (srcOff + len) > SIZE; boolean srcOverflowB = (2 * srcOff + 2 * len) > SIZE; boolean dstOverflow = (dstOff + len) > SIZE; diff --git a/compiler/src/jdk.graal.compiler.test/src/jdk/graal/compiler/truffle/test/ContextLookupCompilationTest.java b/compiler/src/jdk.graal.compiler.test/src/jdk/graal/compiler/truffle/test/ContextLookupCompilationTest.java index d1bea2fa6011..5fca79711721 100644 --- a/compiler/src/jdk.graal.compiler.test/src/jdk/graal/compiler/truffle/test/ContextLookupCompilationTest.java +++ b/compiler/src/jdk.graal.compiler.test/src/jdk/graal/compiler/truffle/test/ContextLookupCompilationTest.java @@ -594,7 +594,7 @@ private void assertBailout(RootNode node) { compileHelper("assertBailout", node, new Object[0]); throw new AssertionError("bailout expected"); } catch (BailoutException e) { - // thats expected. + // that's expected. } } diff --git a/compiler/src/jdk.graal.compiler.test/src/jdk/graal/compiler/truffle/test/ExecutionListenerCompilerTest.java b/compiler/src/jdk.graal.compiler.test/src/jdk/graal/compiler/truffle/test/ExecutionListenerCompilerTest.java index 38d6ee74f8ad..54057990035c 100644 --- a/compiler/src/jdk.graal.compiler.test/src/jdk/graal/compiler/truffle/test/ExecutionListenerCompilerTest.java +++ b/compiler/src/jdk.graal.compiler.test/src/jdk/graal/compiler/truffle/test/ExecutionListenerCompilerTest.java @@ -50,7 +50,7 @@ public class ExecutionListenerCompilerTest extends PartialEvaluationTest { static final SourceSection DUMMY_SECTION = com.oracle.truffle.api.source.Source.newBuilder(ProxyLanguage.ID, "", "").name("").build().createSection(0, 0); - ProxyLanguage langauge; + ProxyLanguage language; static int counter; @@ -190,12 +190,12 @@ protected CallTarget parse(ParsingRequest request) throws Exception { }); setupContext(); getContext().initialize(ProxyLanguage.ID); - langauge = ProxyLanguage.get(null); + language = ProxyLanguage.get(null); counter = 0; } private RootNode createRoot(BaseNode node) { - return new RootNode(langauge) { + return new RootNode(language) { @Child BaseNode child = node; @Override diff --git a/compiler/src/jdk.graal.compiler.test/src/jdk/graal/compiler/truffle/test/OptimizedOSRLoopNodeTest.java b/compiler/src/jdk.graal.compiler.test/src/jdk/graal/compiler/truffle/test/OptimizedOSRLoopNodeTest.java index 749eb5cd6018..c0305c36447a 100644 --- a/compiler/src/jdk.graal.compiler.test/src/jdk/graal/compiler/truffle/test/OptimizedOSRLoopNodeTest.java +++ b/compiler/src/jdk.graal.compiler.test/src/jdk/graal/compiler/truffle/test/OptimizedOSRLoopNodeTest.java @@ -277,7 +277,7 @@ public void testOuterInvalidationTriggersOSR(OSRLoopFactory factory) { } /* - * Test that if a call target is called a min invocation theshold times it is unlikely that it + * Test that if a call target is called a min invocation threshold times it is unlikely that it * needs OSR at all. */ @Theory @@ -425,8 +425,8 @@ private static class ChildLoopRepeatingNode extends TestRepeatingNode { private final Function onBackedge; - protected ChildLoopRepeatingNode(int treshold, OSRLoopFactory factory, TestRepeatingNode child, Function onBackedge) { - this.loopNode2 = factory.createOSRLoop(treshold, child); + protected ChildLoopRepeatingNode(int threshold, OSRLoopFactory factory, TestRepeatingNode child, Function onBackedge) { + this.loopNode2 = factory.createOSRLoop(threshold, child); this.onBackedge = onBackedge; } @@ -493,7 +493,7 @@ private static class CustomInnerLoopRepeatingNode extends TestRepeatingNode { public boolean executeRepeating(VirtualFrame frame) { boolean next = super.executeRepeating(frame); if (next) { - // its like beeing in body + // its like being in body try { int count = frame.getInt(param2); diff --git a/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/asm/aarch64/AArch64ASIMDAssembler.java b/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/asm/aarch64/AArch64ASIMDAssembler.java index 978dabd51cfc..2ac7a51e87d6 100644 --- a/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/asm/aarch64/AArch64ASIMDAssembler.java +++ b/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/asm/aarch64/AArch64ASIMDAssembler.java @@ -3602,7 +3602,7 @@ public void uaddlvSV(ASIMDSize size, ElementSize elementSize, Register dst, Regi } /** - * C7.2.360 Unigned maximum.
+ * C7.2.360 Unsigned maximum.
* * for i in 0..n-1 do dst[i] = uint_max(src1[i], src2[i]) * diff --git a/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/asm/aarch64/AArch64ASIMDMacroAssembler.java b/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/asm/aarch64/AArch64ASIMDMacroAssembler.java index 73d706ccd732..0e8fd4078491 100644 --- a/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/asm/aarch64/AArch64ASIMDMacroAssembler.java +++ b/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/asm/aarch64/AArch64ASIMDMacroAssembler.java @@ -270,7 +270,7 @@ public void moveToIndex(ElementSize eSize, Register dst, Register src, int index } /** - * Reverse the byte-order (endianess) of each element. + * Reverse the byte-order (endianness) of each element. * * @param size register size. * @param eSize element size. diff --git a/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/asm/aarch64/AArch64Assembler.java b/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/asm/aarch64/AArch64Assembler.java index e5fa8ee4aa76..7a82ba4c6ed3 100644 --- a/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/asm/aarch64/AArch64Assembler.java +++ b/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/asm/aarch64/AArch64Assembler.java @@ -1511,7 +1511,7 @@ public void pacia(Register addr, Register mod) { /** * C6.2.211 Pointer Authentication Code (PAC) for Instruction Address, using key A. * - * This variant will compute the pointer authentification code for lr using sp as the modifier. + * This variant will compute the pointer authentication code for lr using sp as the modifier. * On machines where the instruction is not supported it will be a no-op. */ public void paciasp() { diff --git a/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/asm/amd64/AMD64Assembler.java b/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/asm/amd64/AMD64Assembler.java index fd6c6d3df948..48f1ae11cda4 100644 --- a/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/asm/amd64/AMD64Assembler.java +++ b/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/asm/amd64/AMD64Assembler.java @@ -4061,7 +4061,7 @@ private void intelNops(int count) { int i = count; while (i >= 15) { - // For Intel don't generate consecutive addess nops (mix with regular nops) + // For Intel don't generate consecutive address nops (mix with regular nops) i -= 15; emitByte(0x66); // size prefix emitByte(0x66); // size prefix diff --git a/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/bytecode/BytecodeDisassembler.java b/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/bytecode/BytecodeDisassembler.java index e5adffecec85..244635f8b29b 100644 --- a/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/bytecode/BytecodeDisassembler.java +++ b/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/bytecode/BytecodeDisassembler.java @@ -110,7 +110,7 @@ default int apply(int opcode, int cpi) { } /** - * Identitiy function. + * Identity function. */ CPIFunction Identity = new CPIFunction() { }; diff --git a/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/core/amd64/AMD64LIRGenerator.java b/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/core/amd64/AMD64LIRGenerator.java index 11119621d959..4340681b32be 100644 --- a/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/core/amd64/AMD64LIRGenerator.java +++ b/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/core/amd64/AMD64LIRGenerator.java @@ -578,7 +578,7 @@ public Variable emitOpMaskOrTestMove(Value left, Value right, boolean allZeros, emitOpMaskOrTest(left, right); // if (left | right) == 0, the ZF is set // if (left | right) == -1, the CF is set - // allZeros selects the flag we preform the move on by selecting either EQ(ZF) or BT(CF) + // allZeros selects the flag we perform the move on by selecting either EQ(ZF) or BT(CF) return emitCondMoveOp(allZeros ? Condition.EQ : Condition.BT, asAllocatable(trueValue), asAllocatable(falseValue), false, false); } diff --git a/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/debug/ScopeImpl.java b/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/debug/ScopeImpl.java index d64842de023a..625ad16b3645 100644 --- a/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/debug/ScopeImpl.java +++ b/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/debug/ScopeImpl.java @@ -302,7 +302,7 @@ public RuntimeException handle(Throwable e) { // Checks that the action really is undone assert owner.currentScope == this : Assertions.errorMessageContext("owner", owner, "owner.currentScope", owner.currentScope, "this", this); - assert lastClosed == ownerLastClosedScope : Assertions.errorMessageContext("lastClosed", lastClosed, "owener.lastClosedScope", ownerLastClosedScope); + assert lastClosed == ownerLastClosedScope : Assertions.errorMessageContext("lastClosed", lastClosed, "owner.lastClosedScope", ownerLastClosedScope); if (newException == null) { owner.lastExceptionThrown = e; diff --git a/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/graph/Node.java b/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/graph/Node.java index 97e85d4b9aa9..24a8f1caee7b 100644 --- a/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/graph/Node.java +++ b/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/graph/Node.java @@ -471,7 +471,7 @@ public NodeIterable successors() { * Returns an {@link Iterable iterable} which can be used to traverse all successor edge * positions of {@code this}. * - * @return an {@link Iterable iterable} for all successor edge positoins. + * @return an {@link Iterable iterable} for all successor edge positions. */ public Iterable successorPositions() { return nodeClass.getSuccessorEdges().getPositionsIterable(this); diff --git a/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/graphio/GraphLocations.java b/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/graphio/GraphLocations.java index c27b5a2c628b..c3f66b2f6b05 100644 --- a/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/graphio/GraphLocations.java +++ b/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/graphio/GraphLocations.java @@ -36,7 +36,7 @@ * * @param type representing methods * @param

type representing source code location - * @param represeting {@link StackTraceElement stack element} location + * @param representing {@link StackTraceElement stack element} location * * @since 0.33 part of GraalVM 0.33 */ @@ -96,7 +96,7 @@ public interface GraphLocations { int locationLineNumber(L location); /** - * Offset of the location. In certain situations it is preferrable to specify offset rather than + * Offset of the location. In certain situations it is preferable to specify offset rather than * {@link #locationLineNumber(java.lang.Object) line number} of a location in source. In such * case return the start offset from this method and end offset via * {@link #locationOffsetEnd(java.lang.Object)} method. Offsets are counted from {@code 0}. @@ -107,7 +107,7 @@ public interface GraphLocations { int locationOffsetStart(L location); /** - * Offset of the location. In certain situations it is preferrable to specify offset rather than + * Offset of the location. In certain situations it is preferable to specify offset rather than * {@link #locationLineNumber(java.lang.Object) line number} of a location in source. In such * case return the start offset via {@link #locationOffsetStart(java.lang.Object)} method and * end from this method. Offsets are counted from {@code 0}. diff --git a/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/graphio/GraphOutput.java b/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/graphio/GraphOutput.java index 56a02edeb4eb..058b3e0799c7 100644 --- a/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/graphio/GraphOutput.java +++ b/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/graphio/GraphOutput.java @@ -35,7 +35,7 @@ import java.util.Map; /** - * Instance of output to dump informations about a compiler compilations. + * Instance of output to dump information about a compiler compilations. * * @param the type of graph this instance handles * @param the type of methods this instance handles @@ -321,7 +321,7 @@ public GraphOutput build(WritableByteChannel channel) throws IOException { } /** - * Support for nesting heterogenous graphs. The newly created output uses all the interfaces + * Support for nesting heterogeneous graphs. The newly created output uses all the interfaces * currently associated with this builder, but shares with {@code parent} the output * {@code channel}, internal constant pool and {@link #protocolVersion(int, int) protocol * version}. diff --git a/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/graphio/package-info.java b/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/graphio/package-info.java index 35172cc092ea..8f04c9bdaf92 100644 --- a/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/graphio/package-info.java +++ b/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/graphio/package-info.java @@ -51,7 +51,7 @@ * * Now you are ready to dump your graph into IGV. Where to obtain the right channel? One * option is to create a {@link java.nio.channels.FileChannel} and dump the data into a file - * (preferrably with .bgv extension). The other is to open a socket to port + * (preferably with .bgv extension). The other is to open a socket to port * 4445 (the default port IGV listens to) and dump the data there. Here is an * example: * diff --git a/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/hotspot/CompilationTask.java b/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/hotspot/CompilationTask.java index 9d154fc22888..60411d716a8d 100644 --- a/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/hotspot/CompilationTask.java +++ b/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/hotspot/CompilationTask.java @@ -163,7 +163,7 @@ protected HotSpotCompilationRequestResult handleException(Throwable t) { /* * Treat random exceptions from the compiler as indicating a problem compiling this * method. Report the result of toString instead of getMessage to ensure that the - * exception type is included in the output in case there's no detail mesage. + * exception type is included in the output in case there's no detail message. */ return HotSpotCompilationRequestResult.failure(t.toString(), false); } diff --git a/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/hotspot/HotSpotGraalCompiler.java b/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/hotspot/HotSpotGraalCompiler.java index 29a51a2b21f5..accb49a7f0a5 100644 --- a/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/hotspot/HotSpotGraalCompiler.java +++ b/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/hotspot/HotSpotGraalCompiler.java @@ -376,7 +376,7 @@ public boolean notifyCrash(OptionValues options, String crashMessage) { if (HotSpotGraalCompiler.Options.CrashAtThrowsOOME.getValue(options)) { if (OOME_CRASH_DONE.compareAndSet(0L, 1L)) { // The -Djdk.libgraal.Xmx option should also be employed to make - // this allocation fail quicky + // this allocation fail quickly String largeString = Arrays.toString(new int[Integer.MAX_VALUE - 1]); throw new InternalError("Failed to trigger OOME: largeString.length=" + largeString.length()); } else { diff --git a/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/hotspot/meta/DefaultHotSpotLoweringProvider.java b/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/hotspot/meta/DefaultHotSpotLoweringProvider.java index c51b9d5131ab..21f3fb74c905 100644 --- a/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/hotspot/meta/DefaultHotSpotLoweringProvider.java +++ b/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/hotspot/meta/DefaultHotSpotLoweringProvider.java @@ -712,7 +712,7 @@ protected void lowerIntegerDivRem(IntegerDivRemNode n, LoweringTool tool) { } else if (n instanceof SignedRemNode) { divRem = graph.addOrUnique(SignedFloatingIntegerRemNode.create(dividend, divisor, NodeView.DEFAULT, guard, divisionOverflowIsJVMSCompliant)); } else { - throw GraalError.shouldNotReachHere("Unkown division node " + n); // ExcludeFromJacocoGeneratedReport + throw GraalError.shouldNotReachHere("Unknown division node " + n); // ExcludeFromJacocoGeneratedReport } n.replaceAtUsages(divRem); graph.replaceFixedWithFloating(n, divRem); diff --git a/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/hotspot/meta/HotSpotGraphBuilderPlugins.java b/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/hotspot/meta/HotSpotGraphBuilderPlugins.java index 46a753a05829..18d6beaff1e8 100644 --- a/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/hotspot/meta/HotSpotGraphBuilderPlugins.java +++ b/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/hotspot/meta/HotSpotGraphBuilderPlugins.java @@ -411,7 +411,7 @@ public boolean apply(GraphBuilderContext b, ResolvedJavaMethod targetMethod, Rec // Primitive Class case returns null PiNode klassNonNull = helper.emitNullReturnGuard(klass, nullValue, GraalDirectives.UNLIKELY_PROBABILITY); - // if ((Klass::_access_flags & Modifer.INTERCAE) != 0) return null + // if ((Klass::_access_flags & Modifier.INTERCAE) != 0) return null ValueNode accessFlags = helper.readKlassAccessFlags(klassNonNull); LogicNode test = IntegerTestNode.create(accessFlags, ConstantNode.forInt(Modifier.INTERFACE), NodeView.DEFAULT); helper.emitReturnIfNot(test, nullValue, GraalDirectives.UNLIKELY_PROBABILITY); diff --git a/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/lir/alloc/lsra/Interval.java b/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/lir/alloc/lsra/Interval.java index 5f8ea49e791c..e20f21b74078 100644 --- a/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/lir/alloc/lsra/Interval.java +++ b/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/lir/alloc/lsra/Interval.java @@ -631,7 +631,7 @@ public AllocatableValue spillSlot() { public void setSpillSlot(AllocatableValue slot) { assert LIRValueUtil.isStackSlotValue(slot); - assert splitParent().spillSlot == null || (LIRValueUtil.isVirtualStackSlot(splitParent().spillSlot) && isStackSlot(slot)) : "connot overwrite existing spill slot"; + assert splitParent().spillSlot == null || (LIRValueUtil.isVirtualStackSlot(splitParent().spillSlot) && isStackSlot(slot)) : "cannot overwrite existing spill slot"; splitParent().spillSlot = slot; } @@ -810,7 +810,7 @@ public Interval locationHint(boolean searchSplitChild) { } if (locationHint != null) { - assert locationHint.isSplitParent() : "ony split parents are valid hint registers"; + assert locationHint.isSplitParent() : "only split parents are valid hint registers"; if (locationHint.location != null && isRegister(locationHint.location)) { return locationHint; diff --git a/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/lir/alloc/lsra/LinearScanOptimizeSpillPositionPhase.java b/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/lir/alloc/lsra/LinearScanOptimizeSpillPositionPhase.java index ed1c68e0fe65..da6752d495b6 100644 --- a/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/lir/alloc/lsra/LinearScanOptimizeSpillPositionPhase.java +++ b/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/lir/alloc/lsra/LinearScanOptimizeSpillPositionPhase.java @@ -118,7 +118,7 @@ private void optimizeInterval(LIRInsertionBuffer[] insertionBuffers, Interval in if (defBlock.getLoopDepth() < spillBlock.getLoopDepth()) { spillBlock = moveSpillOutOfLoop(defBlock, spillBlock); } - debug.log(DebugContext.VERBOSE_LEVEL, "Spill block candidate (after loop optimizaton): %s", spillBlock); + debug.log(DebugContext.VERBOSE_LEVEL, "Spill block candidate (after loop optimization): %s", spillBlock); /* * The spill block is the begin of the first split child (aka the value is on the diff --git a/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/lir/alloc/lsra/LinearScanResolveDataFlowPhase.java b/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/lir/alloc/lsra/LinearScanResolveDataFlowPhase.java index 84d033bcb0ed..3875ff7eeca7 100644 --- a/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/lir/alloc/lsra/LinearScanResolveDataFlowPhase.java +++ b/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/lir/alloc/lsra/LinearScanResolveDataFlowPhase.java @@ -69,7 +69,7 @@ protected void resolveCollectMappings(BasicBlock fromBlock, BasicBlock toB // visit all variables for which the liveAtEdge bit is set for (int operandNum = liveAtEdge.nextSetBit(0); operandNum >= 0; operandNum = liveAtEdge.nextSetBit(operandNum + 1)) { - assert operandNum < numOperands : "live information set for not exisiting interval"; + assert operandNum < numOperands : "live information set for not existing interval"; assert allocator.getBlockData(fromBlock).liveOut.get(operandNum) && allocator.getBlockData(toBlock).liveIn.get(operandNum) : "interval not live at this edge"; Interval fromInterval = allocator.splitChildAtOpId(allocator.intervalFor(operandNum), fromBlockLastInstructionId, LIRInstruction.OperandMode.DEF); diff --git a/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/lir/alloc/lsra/LinearScanWalker.java b/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/lir/alloc/lsra/LinearScanWalker.java index 872e048ea3b1..7a585ae8a5e5 100644 --- a/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/lir/alloc/lsra/LinearScanWalker.java +++ b/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/lir/alloc/lsra/LinearScanWalker.java @@ -361,7 +361,7 @@ int findOptimalSplitPos(Interval interval, int minSplitPos, int maxSplitPos, boo optimalSplitPos = maxSplitPos; } else { - // seach optimal block boundary between minSplitPos and maxSplitPos + // search optimal block boundary between minSplitPos and maxSplitPos if (debug.isLogEnabled()) { debug.log("moving split pos to optimal block boundary between block B%d and B%d", minBlock.getId(), maxBlock.getId()); } @@ -753,7 +753,7 @@ boolean allocFreeRegister(Interval interval) { // usePos contains the start of the next interval that has this register assigned // (either as a fixed register or a normal allocated register in the past) - // only intervals overlapping with cur are processed, non-overlapping invervals can be + // only intervals overlapping with cur are processed, non-overlapping intervals can be // ignored safely if (debug.isLogEnabled()) { // Enable this logging to see all register states @@ -1036,7 +1036,7 @@ void combineSpilledIntervals(Interval interval) { if (interval.spillState() != SpillState.NoOptimization || registerHint.spillState() != SpillState.NoOptimization) { // combining the stack slots for intervals where spill move optimization is applied - // is not benefitial and would cause problems + // is not beneficial and would cause problems return; } @@ -1065,7 +1065,7 @@ void combineSpilledIntervals(Interval interval) { assert endHint.firstUsage(RegisterPriority.MustHaveRegister) == endPos : "must have use position at begin of interval because of move"; if (isRegister(beginHint.location())) { - // registerHint is not spilled at beginPos : so it would not be benefitial to + // registerHint is not spilled at beginPos : so it would not be beneficial to // immediately spill cur return; } diff --git a/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/lir/amd64/AMD64CounterModeAESCryptOp.java b/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/lir/amd64/AMD64CounterModeAESCryptOp.java index 993ee0486878..0828d0728e21 100644 --- a/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/lir/amd64/AMD64CounterModeAESCryptOp.java +++ b/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/lir/amd64/AMD64CounterModeAESCryptOp.java @@ -239,7 +239,7 @@ public void emitCode(CompilationResultBuilder crb, AMD64MacroAssembler masm) { masm.pshufb(AVXSize.XMM, xmmCurrCounter, xmmCounterShufMask); masm.movq(pos, 0); - // Use the partially used encrpyted counter from last invocation + // Use the partially used encrypted counter from last invocation masm.bind(labelPreLoopStart); masm.cmplAndJcc(used, 16, ConditionFlag.AboveEqual, labelExitPreLoop, false); masm.cmplAndJcc(lenReg, 0, ConditionFlag.LessEqual, labelExitPreLoop, false); diff --git a/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/lir/amd64/AMD64PrefetchOp.java b/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/lir/amd64/AMD64PrefetchOp.java index cc88e7e044b7..264d0b33f610 100644 --- a/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/lir/amd64/AMD64PrefetchOp.java +++ b/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/lir/amd64/AMD64PrefetchOp.java @@ -58,7 +58,7 @@ public void emitCode(CompilationResultBuilder crb, AMD64MacroAssembler masm) { masm.prefetchw(address.toAddress(masm)); break; default: - throw GraalError.shouldNotReachHere("unspported prefetch op " + instr); // ExcludeFromJacocoGeneratedReport + throw GraalError.shouldNotReachHere("unsupported prefetch op " + instr); // ExcludeFromJacocoGeneratedReport } } diff --git a/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/loop/phases/SpeculativeGuardMovementPhase.java b/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/loop/phases/SpeculativeGuardMovementPhase.java index 761391a8ff83..2f42a1ed8e71 100644 --- a/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/loop/phases/SpeculativeGuardMovementPhase.java +++ b/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/loop/phases/SpeculativeGuardMovementPhase.java @@ -875,7 +875,7 @@ private HIRBlock earliestBlockForGuard(GuardNode guard, CFGLoop forced b = newAnchorEarliest; } - debug.log("earliestBlockForGuard(%s) inital anchor : %s, condition : %s condition's earliest %s", guard, anchor, guard.getCondition(), conditionEarliest.getBeginNode()); + debug.log("earliestBlockForGuard(%s) initial anchor : %s, condition : %s condition's earliest %s", guard, anchor, guard.getCondition(), conditionEarliest.getBeginNode()); double minFrequency = anchorEarliest.getRelativeFrequency(); diff --git a/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/nodes/GraphDecoder.java b/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/nodes/GraphDecoder.java index b3244ea63723..274ebb7393e0 100644 --- a/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/nodes/GraphDecoder.java +++ b/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/nodes/GraphDecoder.java @@ -2199,7 +2199,7 @@ private void findLoopExits(Loop loop) { break; } /* - * No next merge was found, this can only mean no immediate unroll happend next, + * No next merge was found, this can only mean no immediate unroll happened next, * i.e., there is no subsequent iteration of any loop exploded directly after, * thus no loop exit possible. */ diff --git a/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/nodes/GraphState.java b/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/nodes/GraphState.java index b493065f2807..551ff9a5d6ac 100644 --- a/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/nodes/GraphState.java +++ b/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/nodes/GraphState.java @@ -602,7 +602,7 @@ public void setAfterFSA() { /** * Different stages of the compilation regarding the status of various graph properties. The - * order used to defined theses stages corresponds to their order in a standard compilation. + * order used to define these stages corresponds to their order in a standard compilation. */ public enum StageFlag { CANONICALIZATION, diff --git a/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/nodes/IfNode.java b/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/nodes/IfNode.java index b1e7a7c9a8b1..8edb92d4529c 100644 --- a/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/nodes/IfNode.java +++ b/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/nodes/IfNode.java @@ -580,7 +580,7 @@ private NodeColor colorUsage(EconomicMap coloredNodes, Node nod } if (color == null) { - // Each of the inputs to the phi are either coming unambigously from + // Each of the inputs to the phi are either coming unambiguously from // true or false branch. color = NodeColor.PHI_MIXED; assert node instanceof PhiNode : Assertions.errorMessage(node); @@ -633,7 +633,7 @@ private static boolean conditionUses(LogicNode condition, PhiNode phi, EconomicM /* * It can be unsafe to simplify a ShortCircuitOr before deopts are fixed because * conversion to guards assumes that all the required conditions are being tested. - * Simplfying the condition based on context before this happens may lose a + * Simplifying the condition based on context before this happens may lose a * condition. */ ShortCircuitOrNode orNode = (ShortCircuitOrNode) condition; @@ -1394,7 +1394,7 @@ private static boolean prepareForSwap(SimplifierTool tool, LogicNode a, LogicNod if (comparableCondition != null) { if (conditionA.trueIsDisjoint(comparableCondition)) { // The truth of the two conditions is disjoint => can reorder. - debug.log("Can swap disjoint coditions on same values: %s and %s", conditionA, comparableCondition); + debug.log("Can swap disjoint conditions on same values: %s and %s", conditionA, comparableCondition); return true; } } else if (conditionA == Condition.EQ && conditionB == Condition.EQ) { diff --git a/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/nodes/OptimizationLogImpl.java b/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/nodes/OptimizationLogImpl.java index ae8b59f348fe..09637884b8b8 100644 --- a/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/nodes/OptimizationLogImpl.java +++ b/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/nodes/OptimizationLogImpl.java @@ -773,7 +773,7 @@ private EconomicMap inliningTreeAsJSONMap(Function callsiteAsJSONMap(InliningLog.Callsite calls } if (callsite.getOverriddenParent() != null) { EconomicMap parentMap = replacements.get(callsite.getOverriddenParent()); - assert parentMap != null : "there must already exist a JSON map for the overriden parent"; + assert parentMap != null : "there must already exist a JSON map for the overridden parent"; List parentInvokesProperty = (List) parentMap.get(INVOKES_PROPERTY); if (parentInvokesProperty == null) { parentInvokesProperty = new ArrayList<>(); diff --git a/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/nodes/calc/FloatingIntegerDivRemNode.java b/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/nodes/calc/FloatingIntegerDivRemNode.java index 84d18aecb7db..56c596b97b95 100644 --- a/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/nodes/calc/FloatingIntegerDivRemNode.java +++ b/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/nodes/calc/FloatingIntegerDivRemNode.java @@ -126,7 +126,7 @@ private boolean overflowVisibleSideEffect() { @Override public boolean verifyNode() { /* - * Special case unconditionally deopting rem operations: Other optimziations can lead to + * Special case unconditionally deopting rem operations: Other optimizations can lead to * graphs where the rem operation will unconditionally deopt. */ boolean guardWillAlwaysDeopt = false; diff --git a/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/nodes/cfg/CFGVerifier.java b/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/nodes/cfg/CFGVerifier.java index a05936559fe3..0db967972bee 100644 --- a/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/nodes/cfg/CFGVerifier.java +++ b/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/nodes/cfg/CFGVerifier.java @@ -138,7 +138,7 @@ public static boolean verify(ControlFlowGraph cfg) { CFGLoop blockLoop = block.getLoop(); while (blockLoop != null) { blockLoop = blockLoop.getParent(); - assert blockLoop != loop : "Parent loop must be different than loop that is exitted " + Assertions.errorMessageContext("blockLoop", blockLoop, "loop", loop); + assert blockLoop != loop : "Parent loop must be different than loop that is exited " + Assertions.errorMessageContext("blockLoop", blockLoop, "loop", loop); } } } diff --git a/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/nodes/cfg/ControlFlowGraph.java b/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/nodes/cfg/ControlFlowGraph.java index 779c7a5b3cf5..bc47399140b4 100644 --- a/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/nodes/cfg/ControlFlowGraph.java +++ b/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/nodes/cfg/ControlFlowGraph.java @@ -817,7 +817,7 @@ private boolean rpoInnerLoopsFirst(Consumer perBasicBlockOption, Consu * inner loop blocks because the granularity of loop ends and exits are not on block boundaries: * a loop exit block can also be a loop end to an outer loop, which makes verification that the * inner loop is fully processed before we process the rest of the outer loop tricky (since we - * already visit a loop end to an outer loop while we should first stricly process all loop + * already visit a loop end to an outer loop while we should first strictly process all loop * ends/exits of inner loops). */ private static boolean predecessorBlockSequentialLoopExit(HIRBlock b) { @@ -1187,7 +1187,7 @@ private void debugLocalLoopFrequencies(LoopBeginNode lb, final double loopFreque } /* * "Endless" looking loops, i.e., loops without exit nodes (only deopt exits) look like - * inifinite loops if we take an exit frequency of "0", which results in max frequency + * infinite loops if we take an exit frequency of "0", which results in max frequency */ final boolean hasLoopExits = lb.loopExits().count() > 0; if (Math.abs(endBasedFrequency - loopFrequency) > CFGOptions.LoopExitVsLoopEndFrequencyDiff.getValue(lb.getOptions()) && hasLoopExits) { diff --git a/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/nodes/loop/CountedLoopInfo.java b/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/nodes/loop/CountedLoopInfo.java index 4398d1e9d040..b627aa60244c 100644 --- a/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/nodes/loop/CountedLoopInfo.java +++ b/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/nodes/loop/CountedLoopInfo.java @@ -324,7 +324,7 @@ protected ValueNode maxTripCountNode(boolean assumeLoopEntered, IntegerHelper in * * THIS VALUE SHOULD BE TREATED AS UNSIGNED. * - * Warning: In order to calculate the max trip count it can be necessary to perform a devision + * Warning: In order to calculate the max trip count it can be necessary to perform a division * operation in the generated code before the loop header. If {@code stride is not a power of 2} * we have to perform an integer division of the range of the induction variable and the stride. * @@ -356,7 +356,7 @@ public ValueNode maxTripCountNode(boolean assumeLoopEntered, IntegerHelper integ if (isLimitIncluded) { range = BinaryArithmeticNode.add(range, one); } - // round-away-from-zero divison: (range + stride -/+ 1) / stride + // round-away-from-zero division: (range + stride -/+ 1) / stride ValueNode denominator = BinaryArithmeticNode.add(graph, range, BinaryArithmeticNode.sub(absStride, one), NodeView.DEFAULT); /* * While the divisor can never be zero because that would mean the direction of the loop is diff --git a/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/nodes/loop/DefaultLoopPolicies.java b/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/nodes/loop/DefaultLoopPolicies.java index 153818749e7b..32189ad70e82 100644 --- a/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/nodes/loop/DefaultLoopPolicies.java +++ b/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/nodes/loop/DefaultLoopPolicies.java @@ -87,9 +87,9 @@ public static class Options { public static final OptionKey LoopUnswitchFrequencyBoost = new OptionKey<>(20.0); @Option(help = "Minimum value for the frequency factor of an invariant.", type = OptionType.Debug) public static final OptionKey LoopUnswitchFrequencyMinFactor = new OptionKey<>(0.05); - @Option(help = "Maximun value for the frequency factor of an invariant.", type = OptionType.Debug) + @Option(help = "Maximum value for the frequency factor of an invariant.", type = OptionType.Debug) public static final OptionKey LoopUnswitchFrequencyMaxFactor = new OptionKey<>(0.95); - @Option(help = "Lower bound for the minimun frequency of an invariant condition to be unswitched.", type = OptionType.Debug) + @Option(help = "Lower bound for the minimum frequency of an invariant condition to be unswitched.", type = OptionType.Debug) public static final OptionKey LoopUnswitchMinSplitFrequency = new OptionKey<>(1.0); @Option(help = "Default frequency for loops with unknown local frequency.", type = OptionType.Debug) public static final OptionKey DefaultLoopFrequency = new OptionKey<>(100.0); @@ -219,7 +219,7 @@ public FullUnrollability canFullUnroll(Loop loop) { /* @formatter:off * The check below should not throw ArithmeticException because: * maxTrips is guaranteed to be >= 1 by the check above - * - maxTrips * size can not overfow because: + * - maxTrips * size can not overflow because: * - maxTrips <= FullUnrollMaxIterations <= Integer.MAX_VALUE * - 1 <= size <= Integer.MAX_VALUE * @formatter:on @@ -600,7 +600,7 @@ public UnswitchingDecision shouldUnswitch(Loop loop, EconomicMap controlSplits) { private final boolean isTrivial; private UnswitchingDecision(List controlSplits, boolean isTrivial) { - assert !isTrivial || controlSplits != null : "An unswitching desision cannot be trivial but have not control split node"; + assert !isTrivial || controlSplits != null : "An unswitching decision cannot be trivial but have not control split node"; this.controlSplits = controlSplits; this.isTrivial = isTrivial; diff --git a/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/nodes/loop/LoopSafepointVerification.java b/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/nodes/loop/LoopSafepointVerification.java index 0975e0dbb720..caafbfea42e2 100644 --- a/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/nodes/loop/LoopSafepointVerification.java +++ b/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/nodes/loop/LoopSafepointVerification.java @@ -321,7 +321,7 @@ public boolean verifyLoopSafepoints(StructuredGraph g) { */ for (LoopBeginNode lb : loopsToVisit) { assert lb.isDeleted() : Assertions.errorMessage("This loop must be deleted since it was not found during iteration", lb); - // lets remove it from the map, either we cant verify and fail or its good and we + // lets remove it from the map, either we can't verify and fail or its good and we // verified correctly, both ways the loop should be removed from the map SafepointData sd = safepointVerificationData.removeKey(lb); if (sd.canHaveSafepoints) { diff --git a/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/nodes/loop/LoopsData.java b/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/nodes/loop/LoopsData.java index c262b4699a80..1e3e060a39bc 100644 --- a/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/nodes/loop/LoopsData.java +++ b/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/nodes/loop/LoopsData.java @@ -66,7 +66,7 @@ static LoopsData compute(final StructuredGraph graph) { /** * Take the given control flow graph and compute all loop data from it. * - * Note: assumes that the control flow graph reflects the current shape of tha graph. If the CFG + * Note: assumes that the control flow graph reflects the current shape of that graph. If the CFG * was computed and aftwards the fixed nodes in the graph have been altered it must not be used * to compute loops data. */ diff --git a/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/nodes/spi/UncheckedInterfaceProvider.java b/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/nodes/spi/UncheckedInterfaceProvider.java index 75ba1a25b715..93507e3a4437 100644 --- a/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/nodes/spi/UncheckedInterfaceProvider.java +++ b/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/nodes/spi/UncheckedInterfaceProvider.java @@ -29,7 +29,7 @@ public interface UncheckedInterfaceProvider { /** * Returns a stamp containing information about interface types that has not been verified or - * null if no such stamp is available. A type check is needed before using informations from + * null if no such stamp is available. A type check is needed before using information from * this stamp. */ Stamp uncheckedStamp(); diff --git a/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/nodes/util/GraphUtil.java b/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/nodes/util/GraphUtil.java index 4b2f28463fc9..20260df342f1 100644 --- a/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/nodes/util/GraphUtil.java +++ b/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/nodes/util/GraphUtil.java @@ -1277,7 +1277,7 @@ public static void virtualizeArrayCopy(VirtualizerTool tool, ValueNode source, V } } if (readLength < newLengthInt) { - /* Pad the copy with the default value of its elment kind. */ + /* Pad the copy with the default value of its element kind. */ ValueNode defaultValue = ConstantNode.defaultForKind(elementKind, graph); for (int i = readLength; i < newLengthInt; i++) { newEntryState[i] = defaultValue; diff --git a/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/phases/common/DominatorBasedGlobalValueNumberingPhase.java b/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/phases/common/DominatorBasedGlobalValueNumberingPhase.java index d6f1e4838d53..3fa0a8658183 100644 --- a/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/phases/common/DominatorBasedGlobalValueNumberingPhase.java +++ b/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/phases/common/DominatorBasedGlobalValueNumberingPhase.java @@ -546,7 +546,7 @@ private void add(Node n) { /** * Equivalence strategy for global value numbering. * - * Determine if two nodes are equal with respect to global value numbering. Tihs means their + * Determine if two nodes are equal with respect to global value numbering. This means their * inputs are equal, their node classes are equal and their data fields. */ diff --git a/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/phases/common/TransplantGraphsPhase.java b/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/phases/common/TransplantGraphsPhase.java index 18eeac33b928..44a1dda08bda 100644 --- a/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/phases/common/TransplantGraphsPhase.java +++ b/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/phases/common/TransplantGraphsPhase.java @@ -556,7 +556,7 @@ private static BlockMap> transplantScheduleResult(StructuredGraph gra } } } else { - throw GraalError.shouldNotReachHere("Unkown block source"); + throw GraalError.shouldNotReachHere("Unknown block source"); } newBlockToNodesMap.put(b, blockNodes); } diff --git a/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/phases/common/UseTrappingOperationPhase.java b/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/phases/common/UseTrappingOperationPhase.java index 6cae8692d744..a6f093a20416 100644 --- a/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/phases/common/UseTrappingOperationPhase.java +++ b/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/phases/common/UseTrappingOperationPhase.java @@ -57,7 +57,7 @@ /** * Abstract base class for phases that try to fold guards (in the form of fixed {@link IfNode}) into - * fixed {@link DeoptimizingFixedWithNextNode} that use implicit expections. + * fixed {@link DeoptimizingFixedWithNextNode} that use implicit exceptions. */ public abstract class UseTrappingOperationPhase extends BasePhase { @@ -130,7 +130,7 @@ protected void tryUseTrappingVersion(MetaAccessProvider metaAccessProvider, Dyna ValueNode thisReason = reasons != null ? reasons.get(index) : reason; ValueNode thisSpeculation = speculations != null ? speculations.get(index) : speculation; if (!merge.isAlive()) { - // When evacuating a merge the last successor simplfies the merge away so it + // When evacuating a merge the last successor simplifies the merge away so it // must be handled specially. assert predecessors.get(predecessors.size() - 1) == end : "must be last end"; endPredecesssor = deopt.predecessor(); diff --git a/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/phases/common/inlining/InliningUtil.java b/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/phases/common/inlining/InliningUtil.java index a1e726802da1..d89ab44090ff 100644 --- a/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/phases/common/inlining/InliningUtil.java +++ b/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/phases/common/inlining/InliningUtil.java @@ -999,9 +999,9 @@ static boolean checkInlineeFrameState(Invoke invoke, ResolvedJavaMethod inlinedM // Normal inlining expects all outermost inlinee frame states to // denote the inlinee method } else if (method.equals(invoke.callTarget().targetMethod())) { - GraalError.shouldNotReachHere("method subsitutions are gone"); // ExcludeFromJacocoGeneratedReport + GraalError.shouldNotReachHere("method substitutions are gone"); // ExcludeFromJacocoGeneratedReport } else if (method.getName().equals(inlinedMethod.getName())) { - GraalError.shouldNotReachHere("method subsitutions are gone"); // ExcludeFromJacocoGeneratedReport + GraalError.shouldNotReachHere("method substitutions are gone"); // ExcludeFromJacocoGeneratedReport } else { throw new AssertionError(String.format("inlinedMethod=%s frameState.method=%s frameState=%s invoke.method=%s", inlinedMethod, method, frameState, invoke.callTarget().targetMethod())); diff --git a/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/phases/common/inlining/policy/InlineMethodSubstitutionsPolicy.java b/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/phases/common/inlining/policy/InlineMethodSubstitutionsPolicy.java index 3ce979537ca5..4827b9ca5505 100644 --- a/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/phases/common/inlining/policy/InlineMethodSubstitutionsPolicy.java +++ b/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/phases/common/inlining/policy/InlineMethodSubstitutionsPolicy.java @@ -47,7 +47,7 @@ public Decision isWorthInlining(Replacements replacements, MethodInvocation invo if (callTarget instanceof MethodCallTargetNode) { ResolvedJavaMethod calleeMethod = callTarget.targetMethod(); if (replacements.hasSubstitution(calleeMethod, options)) { - return Decision.YES.withReason(isTracing, "has a method subtitution"); + return Decision.YES.withReason(isTracing, "has a method substitution"); } } return Decision.NO.withReason(isTracing, "does not have a method substitution"); diff --git a/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/phases/common/inlining/walker/CallsiteHolderExplorable.java b/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/phases/common/inlining/walker/CallsiteHolderExplorable.java index 729e3836d538..2944413fc280 100644 --- a/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/phases/common/inlining/walker/CallsiteHolderExplorable.java +++ b/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/phases/common/inlining/walker/CallsiteHolderExplorable.java @@ -59,7 +59,7 @@ public final class CallsiteHolderExplorable extends CallsiteHolder { /** - * Graph in which inlining may be performed at one or more of the callsites containined in + * Graph in which inlining may be performed at one or more of the callsites contained in * {@link #remainingInvokes}. */ private final StructuredGraph graph; diff --git a/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/printer/CFGPrinter.java b/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/printer/CFGPrinter.java index 6b6d1ed3548b..6963067b3e09 100644 --- a/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/printer/CFGPrinter.java +++ b/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/printer/CFGPrinter.java @@ -237,7 +237,7 @@ private void printNode(Node node, boolean unscheduled) { } out.println("=== Inputs ==="); printNamedNodes(node, node.inputPositions().iterator(), "", "\n", null); - out.println("=== Succesors ==="); + out.println("=== Successors ==="); printNamedNodes(node, node.successorPositions().iterator(), "", "\n", null); out.println("=== Usages ==="); if (!node.hasNoUsages()) { diff --git a/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/replacements/DefaultJavaLoweringProvider.java b/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/replacements/DefaultJavaLoweringProvider.java index 7d51a41efcfb..f81b1f8f1d70 100644 --- a/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/replacements/DefaultJavaLoweringProvider.java +++ b/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/replacements/DefaultJavaLoweringProvider.java @@ -1301,7 +1301,7 @@ protected final ValueNode implicitStoreConvert(StructuredGraph graph, JavaKind k } /** - * @param compressible whether the covert should be compressible + * @param compressible whether the convert should be compressible */ protected ValueNode implicitStoreConvert(JavaKind kind, ValueNode value, boolean compressible) { if (useCompressedOops(kind, compressible)) { diff --git a/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/replacements/arraycopy/ArrayCopyWithDelayedLoweringNode.java b/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/replacements/arraycopy/ArrayCopyWithDelayedLoweringNode.java index 9c6340d01f77..022ce614512d 100644 --- a/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/replacements/arraycopy/ArrayCopyWithDelayedLoweringNode.java +++ b/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/replacements/arraycopy/ArrayCopyWithDelayedLoweringNode.java @@ -108,7 +108,7 @@ public boolean mayExpandToLoop() { // will become a loop return true; default: - throw GraalError.shouldNotReachHere("Unkown snippet type " + snippet); // ExcludeFromJacocoGeneratedReport + throw GraalError.shouldNotReachHere("Unknown snippet type " + snippet); // ExcludeFromJacocoGeneratedReport } } } diff --git a/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/replacements/nodes/arithmetic/IntegerSubExactNode.java b/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/replacements/nodes/arithmetic/IntegerSubExactNode.java index 1131f50420b2..5dffd671082f 100644 --- a/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/replacements/nodes/arithmetic/IntegerSubExactNode.java +++ b/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/replacements/nodes/arithmetic/IntegerSubExactNode.java @@ -45,7 +45,7 @@ import jdk.vm.ci.meta.JavaKind; /** - * Node representing an exact integer substraction that will throw an {@link ArithmeticException} in + * Node representing an exact integer subtraction that will throw an {@link ArithmeticException} in * case the addition would overflow the 32 bit range. */ @NodeInfo(cycles = CYCLES_2, size = SIZE_2) diff --git a/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/truffle/host/HostInliningPhase.java b/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/truffle/host/HostInliningPhase.java index c0a6e7d20130..2deda4ed5a12 100644 --- a/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/truffle/host/HostInliningPhase.java +++ b/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/truffle/host/HostInliningPhase.java @@ -896,7 +896,7 @@ private static boolean isFastPathInvoke(CallTree call) { /** * Returns true if a call tree should get inlined, otherwise false. - * This method does not yet make determine wheter the call site is in budget. See + * This method does not yet make determine whether the call site is in budget. See * {@link #isInBudget(CallTree, int, int)} for that. */ private boolean shouldInline(InliningPhaseContext context, CallTree call) { diff --git a/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/truffle/hotspot/HotSpotTruffleCompilationSupport.java b/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/truffle/hotspot/HotSpotTruffleCompilationSupport.java index 50d0c252c23e..f87bf2b3384d 100644 --- a/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/truffle/hotspot/HotSpotTruffleCompilationSupport.java +++ b/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/truffle/hotspot/HotSpotTruffleCompilationSupport.java @@ -53,7 +53,7 @@ public String getCompilerConfigurationName(TruffleCompilerRuntime truffleRuntime return compilerConfig; } - // compiler not yet intitialized. try to resolve the configuration name without initializing + // compiler not yet initialized. try to resolve the configuration name without initializing // a JVMCI compiler for lazy class loading. return getLazyCompilerConfigurationName(); } diff --git a/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/virtual/phases/ea/EffectsBlockState.java b/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/virtual/phases/ea/EffectsBlockState.java index c4c40535ce2b..96117c2fc0dd 100644 --- a/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/virtual/phases/ea/EffectsBlockState.java +++ b/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/virtual/phases/ea/EffectsBlockState.java @@ -45,7 +45,7 @@ public abstract class EffectsBlockState> { protected EconomicSet exceptionEdgesToKill; public EffectsBlockState() { - // emtpy + // empty } public EffectsBlockState(EffectsBlockState other) { diff --git a/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/virtual/phases/ea/PartialEscapeClosure.java b/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/virtual/phases/ea/PartialEscapeClosure.java index 0b41f16deb04..8e7d13b8e5e9 100644 --- a/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/virtual/phases/ea/PartialEscapeClosure.java +++ b/compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/virtual/phases/ea/PartialEscapeClosure.java @@ -548,7 +548,7 @@ private boolean ensureMaterialized(PartialEscapeBlockState state, int object, * is virtualized because it has the ensure virtualized flag set. * * In this case the algorithm would again become exponential in runtime over the - * loop nest depth, thus we throw a non-permanent bailout excpetion. + * loop nest depth, thus we throw a non-permanent bailout exception. */ throw new RetryableBailoutException( "Materializing an ensureVirtualized marked allocation inside a very deep loop nest, this may lead to exponential " + "runtime of the partial escape analysis."); diff --git a/compiler/src/org.graalvm.micro.benchmarks/src/micro/benchmarks/CryptoBase.java b/compiler/src/org.graalvm.micro.benchmarks/src/micro/benchmarks/CryptoBase.java index 271b7aa12a03..3088ef129e23 100644 --- a/compiler/src/org.graalvm.micro.benchmarks/src/micro/benchmarks/CryptoBase.java +++ b/compiler/src/org.graalvm.micro.benchmarks/src/micro/benchmarks/CryptoBase.java @@ -53,7 +53,7 @@ public void setupProvider() { if (provider != null && !provider.isEmpty()) { prov = Security.getProvider(provider); if (prov == null) { - throw new RuntimeException("Can't find prodiver \"" + provider + "\""); + throw new RuntimeException("Can't find provider \"" + provider + "\""); } } } diff --git a/compiler/src/org.graalvm.profdiff/src/org/graalvm/profdiff/core/CompilationUnit.java b/compiler/src/org.graalvm.profdiff/src/org/graalvm/profdiff/core/CompilationUnit.java index e5fc955a08f7..72041fab2444 100644 --- a/compiler/src/org.graalvm.profdiff/src/org/graalvm/profdiff/core/CompilationUnit.java +++ b/compiler/src/org.graalvm.profdiff/src/org/graalvm/profdiff/core/CompilationUnit.java @@ -194,7 +194,7 @@ protected String getCompilationKind() { * Formats a header identifying this compilation unit. * * Includes the {@link #getCompilationKind() kind}, {@link #getMultiMethodKey() multi-method - * key}, {@link #createExecutionSummary() exeuction summary}, and {@link ExperimentId}. For + * key}, {@link #createExecutionSummary() execution summary}, and {@link ExperimentId}. For * example: * *
diff --git a/docs/reference-manual/native-image/assets/fortunes.u8 b/docs/reference-manual/native-image/assets/fortunes.u8
index a96a72955fec..97d054db4715 100644
--- a/docs/reference-manual/native-image/assets/fortunes.u8
+++ b/docs/reference-manual/native-image/assets/fortunes.u8
@@ -615,7 +615,7 @@ You seek to shield those you love and you like the role of the provider.
 %
 You shall be rewarded for a dastardly deed.
 %
-You should emulate your heros, but don't carry it too far.  Especially
+You should emulate your heroes, but don't carry it too far.  Especially
 if they are dead.
 %
 You should go home.
diff --git a/espresso/src/com.oracle.truffle.espresso.eden/src/eden.c b/espresso/src/com.oracle.truffle.espresso.eden/src/eden.c
index 8909f9cdb832..072c7deec9b7 100644
--- a/espresso/src/com.oracle.truffle.espresso.eden/src/eden.c
+++ b/espresso/src/com.oracle.truffle.espresso.eden/src/eden.c
@@ -143,7 +143,7 @@ void *dlopen(const char *filename, int flags) {
 
     // glibc yields a loading error if the file doesn't exists.
     if (is_absolute_path(filename) && access(filename, R_OK) != 0) {
-        LOG("dlopen(%s, %d): File not accesible\n", filename, flags);
+        LOG("dlopen(%s, %d): File not accessible\n", filename, flags);
         return NULL;
     }
 
@@ -206,7 +206,7 @@ static __attribute__((constructor)) void initialize(void) {
         FATAL("initialize Error obtaining namespace (dlinfo): %s\n", dlerror());
     }
     if (!namespace_id) {
-        FATAL("initialize libeden.so should't be loaded in the default namespace\n");
+        FATAL("initialize libeden.so shouldn't be loaded in the default namespace\n");
     }
     LOG("initialize &__ctype_b_loc: %p\n", &__ctype_b_loc);
     LOG("initialize *__ctype_b_loc() = %p\n", *__ctype_b_loc());
diff --git a/espresso/src/com.oracle.truffle.espresso.jdwp/src/com/oracle/truffle/espresso/jdwp/api/MethodRef.java b/espresso/src/com.oracle.truffle.espresso.jdwp/src/com/oracle/truffle/espresso/jdwp/api/MethodRef.java
index b3b99fb1795e..789d1dafce43 100644
--- a/espresso/src/com.oracle.truffle.espresso.jdwp/src/com/oracle/truffle/espresso/jdwp/api/MethodRef.java
+++ b/espresso/src/com.oracle.truffle.espresso.jdwp/src/com/oracle/truffle/espresso/jdwp/api/MethodRef.java
@@ -30,7 +30,7 @@
 public interface MethodRef {
 
     /**
-     * Returnes the first code index for a given line within the method.
+     * Returns the first code index for a given line within the method.
      *
      * @param line the line number in the source code of the method
      * @return the first bci for the line
diff --git a/espresso/src/com.oracle.truffle.espresso.jdwp/src/com/oracle/truffle/espresso/jdwp/impl/Packet.java b/espresso/src/com.oracle.truffle.espresso.jdwp/src/com/oracle/truffle/espresso/jdwp/impl/Packet.java
index 355a8e6ffbe9..d899b5899555 100644
--- a/espresso/src/com.oracle.truffle.espresso.jdwp/src/com/oracle/truffle/espresso/jdwp/impl/Packet.java
+++ b/espresso/src/com.oracle.truffle.espresso.jdwp/src/com/oracle/truffle/espresso/jdwp/impl/Packet.java
@@ -97,7 +97,7 @@ public static Packet fromByteArray(byte[] b) throws IOException, ConnectionClose
             if (Thread.currentThread().isInterrupted()) {
                 throw new ConnectionClosedException();
             }
-            throw new IOException("length size mis-match");
+            throw new IOException("length size mismatch");
         }
 
         int b4 = b[4] & 0xff;
diff --git a/espresso/src/com.oracle.truffle.espresso.mokapot/include/jvm.h b/espresso/src/com.oracle.truffle.espresso.mokapot/include/jvm.h
index 8362cd5a8457..2d1bcd2dcf30 100644
--- a/espresso/src/com.oracle.truffle.espresso.mokapot/include/jvm.h
+++ b/espresso/src/com.oracle.truffle.espresso.mokapot/include/jvm.h
@@ -1655,7 +1655,7 @@ JNIEXPORT jint JNICALL
 JVM_Close(jint fd);
 
 /*
- * Read data from a file decriptor into a char array.
+ * Read data from a file descriptor into a char array.
  *
  * fd        the file descriptor to read from.
  * buf       the buffer where to put the read data.
@@ -1667,7 +1667,7 @@ JNIEXPORT jint JNICALL
 JVM_Read(jint fd, char *buf, jint nbytes);
 
 /*
- * Write data from a char array to a file decriptor.
+ * Write data from a char array to a file descriptor.
  *
  * fd        the file descriptor to read from.
  * buf       the buffer from which to fetch the data.
@@ -1951,7 +1951,7 @@ JVM_GetResourceLookupCache(JNIEnv *env, jobject loader, const char *resource_nam
  *    HS:   JVM_GetVersionInfo and Abstract_VM_Version class
  *    SDK:  Version class
  *
- * Similary, a private JDK interface JDK_GetVersionInfo0 is defined for
+ * Similarly, a private JDK interface JDK_GetVersionInfo0 is defined for
  * JVM to query for the JDK version and capabilities.
  *
  * When a new bit is added, the following should be updated to provide
diff --git a/espresso/src/com.oracle.truffle.espresso.polyglot/src/com/oracle/truffle/espresso/polyglot/Interop.java b/espresso/src/com.oracle.truffle.espresso.polyglot/src/com/oracle/truffle/espresso/polyglot/Interop.java
index 878969b48e1e..123952e23902 100644
--- a/espresso/src/com.oracle.truffle.espresso.polyglot/src/com/oracle/truffle/espresso/polyglot/Interop.java
+++ b/espresso/src/com.oracle.truffle.espresso.polyglot/src/com/oracle/truffle/espresso/polyglot/Interop.java
@@ -752,7 +752,7 @@ public static boolean isArrayElementExisting(Object receiver, long index) {
 
     /**
      * Converts the receiver to a human readable {@link #isString(Object) string}. Each language may
-     * have special formating conventions - even primitive values may not follow the traditional
+     * have special formatting conventions - even primitive values may not follow the traditional
      * Java rules. The format of the returned string is intended to be interpreted by humans not
      * machines and should therefore not be relied upon by machines. By default the receiver class
      * name and its {@link System#identityHashCode(Object) identity hash code} is used as string
@@ -1314,7 +1314,7 @@ public static boolean isMemberExisting(Object receiver, String member) {
 
     /**
      * Returns true if the receiver represents an instantiable value, else
-     * false. Contructors or {@link #isMetaObject(Object) metaobjects} are typical
+     * false. Constructors or {@link #isMetaObject(Object) metaobjects} are typical
      * examples of instantiable values. Invoking this message does not cause any observable
      * side-effects. Note that receiver values which are {@link #isExecutable(Object) executable}
      * might also be {@link #isInstantiable(Object) instantiable}.
diff --git a/espresso/src/com.oracle.truffle.espresso.polyglot/src/com/oracle/truffle/espresso/polyglot/UnsupportedTypeException.java b/espresso/src/com.oracle.truffle.espresso.polyglot/src/com/oracle/truffle/espresso/polyglot/UnsupportedTypeException.java
index 16c0088eda76..7f921c254f56 100644
--- a/espresso/src/com.oracle.truffle.espresso.polyglot/src/com/oracle/truffle/espresso/polyglot/UnsupportedTypeException.java
+++ b/espresso/src/com.oracle.truffle.espresso.polyglot/src/com/oracle/truffle/espresso/polyglot/UnsupportedTypeException.java
@@ -46,7 +46,7 @@
 import java.io.ObjectOutputStream;
 
 /**
- * An exception thrown if an interop {@link Object} does not support the type of one ore more
+ * An exception thrown if an interop {@link Object} does not support the type of one or more
  * arguments.
  *
  * @since 21.0
diff --git a/espresso/src/com.oracle.truffle.espresso/src/com/oracle/truffle/espresso/EspressoBindings.java b/espresso/src/com.oracle.truffle.espresso/src/com/oracle/truffle/espresso/EspressoBindings.java
index 6c30718e9490..7b0a4fec5660 100644
--- a/espresso/src/com.oracle.truffle.espresso/src/com/oracle/truffle/espresso/EspressoBindings.java
+++ b/espresso/src/com.oracle.truffle.espresso/src/com/oracle/truffle/espresso/EspressoBindings.java
@@ -50,7 +50,7 @@
  *
  * 

* Classes cannot be enumerated; and in this implementation, not even the ones already loaded. e.g. - * {@link InteropLibrary#getMembers(Object) Peeking all memebers} will return an empty interop + * {@link InteropLibrary#getMembers(Object) Peeking all members} will return an empty interop * collection.
* {@link InteropLibrary#readMember(Object, String) Reading a member} will trigger class loading; it * is equivalent to calling {@link Class#forName(String, boolean, ClassLoader)} with the provided diff --git a/espresso/src/com.oracle.truffle.espresso/src/com/oracle/truffle/espresso/bytecode/Bytecodes.java b/espresso/src/com.oracle.truffle.espresso/src/com/oracle/truffle/espresso/bytecode/Bytecodes.java index 51b8784ba241..41a46fcba686 100644 --- a/espresso/src/com.oracle.truffle.espresso/src/com/oracle/truffle/espresso/bytecode/Bytecodes.java +++ b/espresso/src/com.oracle.truffle.espresso/src/com/oracle/truffle/espresso/bytecode/Bytecodes.java @@ -599,7 +599,7 @@ static class Flags { def(ARETURN , "areturn" , "b" , -1, TRAP | STOP); def(RETURN , "return" , "b" , 0, TRAP | STOP); - // The stack effect of put/get bytecodes encodes the the number of slots that are guarantee to be pusehd/popped by a full push/pop operation. + // The stack effect of put/get bytecodes encodes the the number of slots that are guarantee to be pushed/popped by a full push/pop operation. // e.g. getField pops the receiver (-1), but the result size depends on the field, so it's not included in the effect. def(GETSTATIC , "getstatic" , "bjj" , 0, TRAP | FIELD_READ | PRODUCE_FOREIGN); def(PUTSTATIC , "putstatic" , "bjj" , 0, TRAP | FIELD_WRITE); diff --git a/espresso/src/com.oracle.truffle.espresso/src/com/oracle/truffle/espresso/classfile/constantpool/ClassMethodRefConstant.java b/espresso/src/com.oracle.truffle.espresso/src/com/oracle/truffle/espresso/classfile/constantpool/ClassMethodRefConstant.java index db0ef1dc5d34..06a845c32950 100644 --- a/espresso/src/com.oracle.truffle.espresso/src/com/oracle/truffle/espresso/classfile/constantpool/ClassMethodRefConstant.java +++ b/espresso/src/com.oracle.truffle.espresso/src/com/oracle/truffle/espresso/classfile/constantpool/ClassMethodRefConstant.java @@ -149,7 +149,7 @@ final class Indexes extends MethodRefConstant.Indexes implements ClassMethodRefC * Otherwise, the result is nondeterministic. This is not new: The Java® Virtual Machine * Specification has never identified exactly which method is chosen, and how "ties" should * be broken. Prior to Java SE 8, this was mostly an unobservable distinction. However, - * beginning with Java SE 8, the set of interface methods is more heterogenous, so care must + * beginning with Java SE 8, the set of interface methods is more heterogeneous, so care must * be taken to avoid problems with nondeterministic behavior. Thus: * *

    diff --git a/espresso/src/com.oracle.truffle.espresso/src/com/oracle/truffle/espresso/classfile/constantpool/FieldRefConstant.java b/espresso/src/com.oracle.truffle.espresso/src/com/oracle/truffle/espresso/classfile/constantpool/FieldRefConstant.java index 6103308fd5eb..812227a80ddb 100644 --- a/espresso/src/com.oracle.truffle.espresso/src/com/oracle/truffle/espresso/classfile/constantpool/FieldRefConstant.java +++ b/espresso/src/com.oracle.truffle.espresso/src/com/oracle/truffle/espresso/classfile/constantpool/FieldRefConstant.java @@ -60,7 +60,7 @@ default Tag tag() { return Tag.FIELD_REF; } - @SuppressWarnings("uncheked") + @SuppressWarnings("unchecked") default Symbol getType(ConstantPool pool) { // TODO(peterssen): Validate type descriptor. return Types.fromDescriptor(getDescriptor(pool)); diff --git a/espresso/src/com.oracle.truffle.espresso/src/com/oracle/truffle/espresso/impl/Klass.java b/espresso/src/com.oracle.truffle.espresso/src/com/oracle/truffle/espresso/impl/Klass.java index a85461d850f7..6a08c6d7cdaa 100644 --- a/espresso/src/com.oracle.truffle.espresso/src/com/oracle/truffle/espresso/impl/Klass.java +++ b/espresso/src/com.oracle.truffle.espresso/src/com/oracle/truffle/espresso/impl/Klass.java @@ -1038,7 +1038,7 @@ public boolean hasNoSubtypes() { public final boolean isFinalFlagSet() { /* * HotSpot's Class Hierarchy Analysis does not allow inlining invoke interface pointing to - * never overriden default interface methods. We cirumvent this CHA limitation here by using + * never overridden default interface methods. We circumvent this CHA limitation here by using * an invokespecial, which is inlinable. */ return ModifiersProvider.super.isFinalFlagSet() /* || isLeafAssumption() */; diff --git a/espresso/src/com.oracle.truffle.espresso/src/com/oracle/truffle/espresso/jni/JniEnv.java b/espresso/src/com.oracle.truffle.espresso/src/com/oracle/truffle/espresso/jni/JniEnv.java index aa780e840c86..99e14d0727ac 100644 --- a/espresso/src/com.oracle.truffle.espresso/src/com/oracle/truffle/espresso/jni/JniEnv.java +++ b/espresso/src/com.oracle.truffle.espresso/src/com/oracle/truffle/espresso/jni/JniEnv.java @@ -2262,7 +2262,7 @@ public int RegisterNative(@JavaType(Class.class) StaticObject clazz, @Pointer Tr } Substitutions.EspressoRootNodeFactory factory = null; - // Lookup known VM methods to shortcut native boudaries. + // Lookup known VM methods to shortcut native boundaries. factory = lookupKnownVmMethods(closure, targetMethod); if (factory == null) { diff --git a/espresso/src/com.oracle.truffle.espresso/src/com/oracle/truffle/espresso/meta/Meta.java b/espresso/src/com.oracle.truffle.espresso/src/com/oracle/truffle/espresso/meta/Meta.java index 165220e22014..c8753072031c 100644 --- a/espresso/src/com.oracle.truffle.espresso/src/com/oracle/truffle/espresso/meta/Meta.java +++ b/espresso/src/com.oracle.truffle.espresso/src/com/oracle/truffle/espresso/meta/Meta.java @@ -2376,7 +2376,7 @@ public Klass loadKlassOrFail(Symbol type, @JavaType(ClassLoader.class) Sta /** * Same as {@link #loadKlassOrFail(Symbol, StaticObject, StaticObject)}, except this method - * returns null instead of throwing if class is not found. Note that this mthod can still throw + * returns null instead of throwing if class is not found. Note that this method can still throw * due to other errors (class file malformed, etc...) * * @see #loadKlassOrFail(Symbol, StaticObject, StaticObject) diff --git a/espresso/src/com.oracle.truffle.espresso/src/com/oracle/truffle/espresso/nodes/methodhandle/MHLinkToNode.java b/espresso/src/com.oracle.truffle.espresso/src/com/oracle/truffle/espresso/nodes/methodhandle/MHLinkToNode.java index df22627d8f43..2da61124d0b8 100644 --- a/espresso/src/com.oracle.truffle.espresso/src/com/oracle/truffle/espresso/nodes/methodhandle/MHLinkToNode.java +++ b/espresso/src/com.oracle.truffle.espresso/src/com/oracle/truffle/espresso/nodes/methodhandle/MHLinkToNode.java @@ -129,7 +129,7 @@ static Object[] unbasic(Object[] args, Symbol[] targetSig, int from, int l return res; } - // Tranform sub-words to int + // Transform sub-words to int public static Object rebasic(Object obj, JavaKind rKind) { switch (rKind) { case Boolean: diff --git a/espresso/src/com.oracle.truffle.espresso/src/com/oracle/truffle/espresso/runtime/GuestAllocator.java b/espresso/src/com.oracle.truffle.espresso/src/com/oracle/truffle/espresso/runtime/GuestAllocator.java index b133d3f2cb39..320bceedf25d 100644 --- a/espresso/src/com.oracle.truffle.espresso/src/com/oracle/truffle/espresso/runtime/GuestAllocator.java +++ b/espresso/src/com.oracle.truffle.espresso/src/com/oracle/truffle/espresso/runtime/GuestAllocator.java @@ -71,7 +71,7 @@ * to simplify the profiling in the caller (for example, {@code BytecodeNode#allocateMultiArray()}). *

    *

    - * Methods in this class wil exploit as much as possible the constant-ness of arguments, exploding + * Methods in this class will exploit as much as possible the constant-ness of arguments, exploding * initialization loops whenever possible. Note that performance will be impacted if {@code this} is * not PE constant. */ @@ -163,7 +163,7 @@ public StaticObject createClass(Klass klass) { if (klass.isArray() && klass.getMeta().java_lang_Class_componentType != null) { klass.getMeta().java_lang_Class_componentType.setObject(newObj, ((ArrayKlass) klass).getComponentType().initializeEspressoClass()); } - // Will be overriden if necessary, but should be initialized to non-host null. + // Will be overridden if necessary, but should be initialized to non-host null. klass.getMeta().HIDDEN_PROTECTION_DOMAIN.setHiddenObject(newObj, StaticObject.NULL); // Final hidden field assignment klass.getMeta().HIDDEN_MIRROR_KLASS.setHiddenObject(newObj, klass); diff --git a/espresso/src/com.oracle.truffle.espresso/src/com/oracle/truffle/espresso/runtime/JImageLibrary.java b/espresso/src/com.oracle.truffle.espresso/src/com/oracle/truffle/espresso/runtime/JImageLibrary.java index d48551cfc706..76ad189f6a86 100644 --- a/espresso/src/com.oracle.truffle.espresso/src/com/oracle/truffle/espresso/runtime/JImageLibrary.java +++ b/espresso/src/com.oracle.truffle.espresso/src/com/oracle/truffle/espresso/runtime/JImageLibrary.java @@ -72,7 +72,7 @@ final class JImageLibrary extends ContextAccessImpl { // Cache "java.base" native module name private final RawBuffer javaBaseBuffer; - // Cache the version sting. + // Cache the version string. private final RawBuffer versionBuffer; // Cache the empty string private final RawBuffer emptyStringBuffer; diff --git a/espresso/src/com.oracle.truffle.espresso/src/com/oracle/truffle/espresso/substitutions/Target_com_oracle_truffle_espresso_polyglot_Interop.java b/espresso/src/com.oracle.truffle.espresso/src/com/oracle/truffle/espresso/substitutions/Target_com_oracle_truffle_espresso_polyglot_Interop.java index 29d13e7cd3d0..a4d0d82d7cb9 100644 --- a/espresso/src/com.oracle.truffle.espresso/src/com/oracle/truffle/espresso/substitutions/Target_com_oracle_truffle_espresso_polyglot_Interop.java +++ b/espresso/src/com.oracle.truffle.espresso/src/com/oracle/truffle/espresso/substitutions/Target_com_oracle_truffle_espresso_polyglot_Interop.java @@ -1436,7 +1436,7 @@ static StaticObject doCached( /** * Converts the receiver to a human readable {@link InteropLibrary#isString(Object) string}. - * Each language may have special formating conventions - even primitive values may not follow + * Each language may have special formatting conventions - even primitive values may not follow * the traditional Java rules. The format of the returned string is intended to be interpreted * by humans not machines and should therefore not be relied upon by machines. By default the * receiver class name and its {@link System#identityHashCode(Object) identity hash code} is @@ -2451,7 +2451,7 @@ static StaticObject doCached( /** * Returns true if the receiver represents an instantiable value, else - * false. Contructors or {@link InteropLibrary#isMetaObject(Object) metaobjects} + * false. Constructors or {@link InteropLibrary#isMetaObject(Object) metaobjects} * are typical examples of instantiable values. Invoking this message does not cause any * observable side-effects. Note that receiver values which are * {@link InteropLibrary#isExecutable(Object) executable} might also be diff --git a/espresso/src/com.oracle.truffle.espresso/src/com/oracle/truffle/espresso/substitutions/Target_java_lang_invoke_MethodHandleNatives.java b/espresso/src/com.oracle.truffle.espresso/src/com/oracle/truffle/espresso/substitutions/Target_java_lang_invoke_MethodHandleNatives.java index 093bb246b067..156dc4420493 100644 --- a/espresso/src/com.oracle.truffle.espresso/src/com/oracle/truffle/espresso/substitutions/Target_java_lang_invoke_MethodHandleNatives.java +++ b/espresso/src/com.oracle.truffle.espresso/src/com/oracle/truffle/espresso/substitutions/Target_java_lang_invoke_MethodHandleNatives.java @@ -91,7 +91,7 @@ public final class Target_java_lang_invoke_MethodHandleNatives { * Plants an already resolved target into a memberName. * * @param self the memberName - * @param ref the target. Can be either a mathod or a field. + * @param ref the target. Can be either a method or a field. */ @Substitution public static void init(@JavaType(internalName = "Ljava/lang/invoke/MemberName;") StaticObject self, @JavaType(Object.class) StaticObject ref, diff --git a/espresso/src/com.oracle.truffle.espresso/src/com/oracle/truffle/espresso/substitutions/UnsafeSupport.java b/espresso/src/com.oracle.truffle.espresso/src/com/oracle/truffle/espresso/substitutions/UnsafeSupport.java index 6dcc9d4a0dc0..95bc77d728c6 100644 --- a/espresso/src/com.oracle.truffle.espresso/src/com/oracle/truffle/espresso/substitutions/UnsafeSupport.java +++ b/espresso/src/com.oracle.truffle.espresso/src/com/oracle/truffle/espresso/substitutions/UnsafeSupport.java @@ -33,7 +33,7 @@ /** * Class to enable support for compare and swap/exchange for sub-word fields. *

    - * This class will be overlayed, in favor of overlay classes: one for version <=8 and >= 9. This + * This class will be overlaid, in favor of overlay classes: one for version <=8 and >= 9. This * class implements the <=8 version, which works for 9+, but is far from optimal. *

    * The version for >=9 should be able to call directly into host internal Unsafe methods to get diff --git a/espresso/src/com.oracle.truffle.espresso/src/com/oracle/truffle/espresso/threads/EspressoThreadRegistry.java b/espresso/src/com.oracle.truffle.espresso/src/com/oracle/truffle/espresso/threads/EspressoThreadRegistry.java index 0e8ad4b678e8..6d0f2c9e2355 100644 --- a/espresso/src/com.oracle.truffle.espresso/src/com/oracle/truffle/espresso/threads/EspressoThreadRegistry.java +++ b/espresso/src/com.oracle.truffle.espresso/src/com/oracle/truffle/espresso/threads/EspressoThreadRegistry.java @@ -60,7 +60,7 @@ public EspressoThreadRegistry(EspressoContext context) { /** * Contains a mapping from host thread ID to guest thread object. The object at index 0 is an - * Integer which corresponds to the offset we need to substract to the thread ID to get the + * Integer which corresponds to the offset we need to subtract to the thread ID to get the * index of the corresponding guest thread. The referenced array might change, but its contents * will not. Obtaining the reference locally and working with the local variable storing it thus * corresponds to obtaining a snapshot of the state. diff --git a/espresso/src/com.oracle.truffle.espresso/src/com/oracle/truffle/espresso/verifier/MethodVerifier.java b/espresso/src/com.oracle.truffle.espresso/src/com/oracle/truffle/espresso/verifier/MethodVerifier.java index c39024e4a899..4783011035c7 100644 --- a/espresso/src/com.oracle.truffle.espresso/src/com/oracle/truffle/espresso/verifier/MethodVerifier.java +++ b/espresso/src/com.oracle.truffle.espresso/src/com/oracle/truffle/espresso/verifier/MethodVerifier.java @@ -491,7 +491,7 @@ Operand getComponent() { // of this BCI is successful. private static final int DONE = 2; // Indicates that a particular BCI is the target of a jump, therefore requiring a stack map to - // be provided fo this BCI. + // be provided for this BCI. private static final int JUMP_TARGET = 4; // Exception handler target states diff --git a/espresso/src/com.oracle.truffle.espresso/src/com/oracle/truffle/espresso/verifier/StackFrame.java b/espresso/src/com.oracle.truffle.espresso/src/com/oracle/truffle/espresso/verifier/StackFrame.java index 6c3dbc71c009..c6f0a69f9c1c 100644 --- a/espresso/src/com.oracle.truffle.espresso/src/com/oracle/truffle/espresso/verifier/StackFrame.java +++ b/espresso/src/com.oracle.truffle.espresso/src/com/oracle/truffle/espresso/verifier/StackFrame.java @@ -181,7 +181,7 @@ public Operand[] extract() { void procSize(int modif) { size += modif; - verifyGuarantee(size <= stack.length, "insufficent stack size: " + stack.length); + verifyGuarantee(size <= stack.length, "insufficient stack size: " + stack.length); verifyGuarantee(size >= 0, "invalid stack access: " + size); } diff --git a/espresso/src/com.oracle.truffle.espresso/src/com/oracle/truffle/espresso/vm/VM.java b/espresso/src/com.oracle.truffle.espresso/src/com/oracle/truffle/espresso/vm/VM.java index 085a3ca3f4be..f38dfe7d436b 100644 --- a/espresso/src/com.oracle.truffle.espresso/src/com/oracle/truffle/espresso/vm/VM.java +++ b/espresso/src/com.oracle.truffle.espresso/src/com/oracle/truffle/espresso/vm/VM.java @@ -1031,7 +1031,7 @@ public StaticObject apply(int i) { // before attempting to find the class. Symbol outerDescriptor = pool.classAt(entry.outerClassIndex).getName(pool); - // Check decriptors/names before resolving. + // Check descriptors/names before resolving. if (outerDescriptor.equals(instanceKlass.getName())) { Klass outerKlass = pool.resolvedKlassAt(instanceKlass, entry.outerClassIndex); if (outerKlass == instanceKlass) { @@ -1074,7 +1074,7 @@ private static Klass computeEnclosingClass(ObjectKlass klass) { if (entry.innerClassIndex != 0) { Symbol innerDescriptor = pool.classAt(entry.innerClassIndex).getName(pool); - // Check decriptors/names before resolving. + // Check descriptors/names before resolving. if (innerDescriptor.equals(klass.getName())) { Klass innerKlass = pool.resolvedKlassAt(klass, entry.innerClassIndex); found = (innerKlass == klass); @@ -3431,7 +3431,7 @@ public int JNI_GetCreatedJavaVMs(@Pointer TruffleObject vmBufPtr, int bufLen, @P StaticObject guestName = meta.java_lang_Module_name.getObject(module); if (StaticObject.isNull(guestName)) { profiler.profile(4); - throw meta.throwExceptionWithMessage(meta.java_lang_IllegalArgumentException, "modue name cannot be null"); + throw meta.throwExceptionWithMessage(meta.java_lang_IllegalArgumentException, "module name cannot be null"); } String hostName = meta.toHostString(guestName); diff --git a/regex/src/com.oracle.truffle.regex/src/com/oracle/truffle/regex/tregex/nodes/nfa/TRegexBacktrackingNFAExecutorNode.java b/regex/src/com.oracle.truffle.regex/src/com/oracle/truffle/regex/tregex/nodes/nfa/TRegexBacktrackingNFAExecutorNode.java index d672910fb7de..8d5590ad988e 100644 --- a/regex/src/com.oracle.truffle.regex/src/com/oracle/truffle/regex/tregex/nodes/nfa/TRegexBacktrackingNFAExecutorNode.java +++ b/regex/src/com.oracle.truffle.regex/src/com/oracle/truffle/regex/tregex/nodes/nfa/TRegexBacktrackingNFAExecutorNode.java @@ -387,7 +387,7 @@ private void runMergeExplode(VirtualFrame frame, TRegexBacktrackingNFAExecutorLo CompilerAsserts.partialEvaluationConstant(ip); if (ip == IP_BEGIN) { /* - * Begin of the regex match. Here, we select the inital state based on "^". + * Begin of the regex match. Here, we select the initial state based on "^". */ if (nfa.getAnchoredInitialState() != nfa.getUnAnchoredInitialState() && inputAtBegin(locals)) { ip = nfa.getAnchoredInitialState().getId(); diff --git a/regex/src/com.oracle.truffle.regex/src/com/oracle/truffle/regex/tregex/parser/ast/visitors/NFATraversalRegexASTVisitor.java b/regex/src/com.oracle.truffle.regex/src/com/oracle/truffle/regex/tregex/parser/ast/visitors/NFATraversalRegexASTVisitor.java index 48b26bddbe8e..4cb4fe86a702 100644 --- a/regex/src/com.oracle.truffle.regex/src/com/oracle/truffle/regex/tregex/parser/ast/visitors/NFATraversalRegexASTVisitor.java +++ b/regex/src/com.oracle.truffle.regex/src/com/oracle/truffle/regex/tregex/parser/ast/visitors/NFATraversalRegexASTVisitor.java @@ -720,7 +720,7 @@ private boolean deduplicatePath(boolean internal) { if (shouldRetreat) { return retreat(); } - // interal == true means that this is being called during traversal, before reaching a + // internal == true means that this is being called during traversal, before reaching a // successor node (these calls are made in regular intervals, whenever a new Sequence is // entered). // This method is also called for every successor we have found (internal == false). In diff --git a/regex/src/com.oracle.truffle.regex/src/com/oracle/truffle/regex/tregex/parser/flavors/RubyRegexParser.java b/regex/src/com.oracle.truffle.regex/src/com/oracle/truffle/regex/tregex/parser/flavors/RubyRegexParser.java index af3a7df40664..d5bb5c067434 100644 --- a/regex/src/com.oracle.truffle.regex/src/com/oracle/truffle/regex/tregex/parser/flavors/RubyRegexParser.java +++ b/regex/src/com.oracle.truffle.regex/src/com/oracle/truffle/regex/tregex/parser/flavors/RubyRegexParser.java @@ -1666,11 +1666,11 @@ private Optional characterEscape() { int byteValue = Integer.parseInt(code, 16); if (byteValue > 0x7F) { // This is a non-ASCII byte escape. The escaped character might be part of a - // multibyte sequece. These sequences are encoding specific and supporting + // multibyte sequence. These sequences are encoding specific and supporting // them would mean having to include decoders for all of Ruby's encodings. // Fortunately, TruffleRuby decodes these for us and replaces them with // verbatim characters or other forms of escape. Therefore, this can be - // trigerred by either: + // triggered by either: // *) TruffleRuby's ClassicRegexp#preprocess was not called on the input // *) TruffleRuby's ClassicRegexp#preprocess emitted a non-ASCII \\x escape bailOut("unsupported multibyte escape"); @@ -2251,7 +2251,7 @@ private void group(boolean capturing) { } /** - * Parses a lookahead assertion, assuming that the opening parantheses and special characters + * Parses a lookahead assertion, assuming that the opening parentheses and special characters * (either '(?=' or '(?!') have already been parsed. * * @param negate {@code true} if the assertion to be pushed is a negative lookahead assertion @@ -2284,7 +2284,7 @@ private void lookbehind(boolean negate) { } /** - * Parses an atomic group, assuming that the opening parantheses and '(?>' prefix have already + * Parses an atomic group, assuming that the opening parentheses and '(?>' prefix have already * been parsed. */ private void atomicGroup() { diff --git a/regex/src/com.oracle.truffle.regex/src/com/oracle/truffle/regex/tregex/util/NFAExport.java b/regex/src/com.oracle.truffle.regex/src/com/oracle/truffle/regex/tregex/util/NFAExport.java index fb9c81730947..6f897dd4401b 100644 --- a/regex/src/com.oracle.truffle.regex/src/com/oracle/truffle/regex/tregex/util/NFAExport.java +++ b/regex/src/com.oracle.truffle.regex/src/com/oracle/truffle/regex/tregex/util/NFAExport.java @@ -175,7 +175,7 @@ private void exportLaTex() throws IOException { "\t\t\tfont=\\footnotesize\\ttfamily,\n" + "\t\t},\n" + "\t\tdouble distance=1.5pt, % Adjust appearance of accept states\n" + - "\t\tinitial text={start}, % label on inital state arrow\n" + + "\t\tinitial text={start}, % label on initial state arrow\n" + "\t\tevery edge/.style={\n" + "\t\t\tdraw,\n" + "\t\t\tfont=\\footnotesize\\ttfamily,\n" + diff --git a/sdk/mx.sdk/mx_sdk.py b/sdk/mx.sdk/mx_sdk.py index 677669bc82a9..61475c2a90da 100644 --- a/sdk/mx.sdk/mx_sdk.py +++ b/sdk/mx.sdk/mx_sdk.py @@ -333,7 +333,7 @@ def maven_deploy_public_repo_dir(): @mx.command(_suite.name, 'maven-deploy-public') def maven_deploy_public(args, licenses=None, deploy_snapshots=True): - """Helper to simplify deploying all public Maven dependendencies into the mxbuild directory""" + """Helper to simplify deploying all public Maven dependencies into the mxbuild directory""" if deploy_snapshots: artifact_version = f'{mx_sdk_vm_impl.graalvm_version("graalvm")}-SNAPSHOT' else: diff --git a/sdk/mx.sdk/mx_sdk_benchmark.py b/sdk/mx.sdk/mx_sdk_benchmark.py index aaf48de97b3d..d9849dd841aa 100644 --- a/sdk/mx.sdk/mx_sdk_benchmark.py +++ b/sdk/mx.sdk/mx_sdk_benchmark.py @@ -2176,7 +2176,7 @@ def run(self, benchmarks, bm_suite_args: List[str]) -> DataPoints: return self.intercept_run(super(), benchmarks, bm_suite_args) It is fine if this implemented in a common (Native Image-specific) superclass of multiple benchmark suites, as - long as the method is not overriden in a subclass in an incompatible way. + long as the method is not overridden in a subclass in an incompatible way. :param super_delegate: A reference to the caller class' superclass in method-resolution order (MRO). :param benchmarks: Passed to :meth:`BenchmarkSuite.run` diff --git a/sdk/mx.sdk/suite.py b/sdk/mx.sdk/suite.py index bb484eb7bbce..3142c8743912 100644 --- a/sdk/mx.sdk/suite.py +++ b/sdk/mx.sdk/suite.py @@ -1211,7 +1211,7 @@ class UniversalDetector { "libexec", "lib/objects-Release", "include/mlir*", - # Windows libarary excludes + # Windows library excludes "lib/*.lib", ] }, diff --git a/sdk/src/org.graalvm.collections/src/org/graalvm/collections/LockFreePrefixTree.java b/sdk/src/org.graalvm.collections/src/org/graalvm/collections/LockFreePrefixTree.java index 69ae68815964..bbad8de1ea1a 100644 --- a/sdk/src/org.graalvm.collections/src/org/graalvm/collections/LockFreePrefixTree.java +++ b/sdk/src/org.graalvm.collections/src/org/graalvm/collections/LockFreePrefixTree.java @@ -577,7 +577,7 @@ public void shutdown() { * To ensure that the internal pools have sufficiently many preallocated objects, this allocator * has a housekeeping thread that periodically wakes up, allocates objects and inserts them into * the pools. This allocator tracks the requests that failed since the last housekeeping - * session, and the housekeeping thread will strive to accomodate requests that have not been + * session, and the housekeeping thread will strive to accommodate requests that have not been * fulfilled since the last housekeeping session (i.e. it will preallocate those types of * additional objects whose allocation request previously failed, and it will allocate at least * as many objects as there were previous failed allocation requests). diff --git a/sdk/src/org.graalvm.jniutils/src/org/graalvm/jniutils/JNIExceptionWrapper.java b/sdk/src/org.graalvm.jniutils/src/org/graalvm/jniutils/JNIExceptionWrapper.java index 79d7934831ef..48bf74fe068e 100644 --- a/sdk/src/org.graalvm.jniutils/src/org/graalvm/jniutils/JNIExceptionWrapper.java +++ b/sdk/src/org.graalvm.jniutils/src/org/graalvm/jniutils/JNIExceptionWrapper.java @@ -592,7 +592,7 @@ private static JNI.JClass getEntryPoints(JNIEnv env) { } if (entryPoints.isNull()) { // Here we cannot use JNIExceptionWrapper. - // We failed to load HostSpot entry points for it. + // We failed to load HotSpot entry points for it. ExceptionClear(env); throw new InternalError("Failed to load " + HS_ENTRYPOINTS_CLASS); } diff --git a/sdk/src/org.graalvm.jniutils/src/org/graalvm/jniutils/JNIUtil.java b/sdk/src/org.graalvm.jniutils/src/org/graalvm/jniutils/JNIUtil.java index bc09cf84c21e..81d8323e82b7 100644 --- a/sdk/src/org.graalvm.jniutils/src/org/graalvm/jniutils/JNIUtil.java +++ b/sdk/src/org.graalvm.jniutils/src/org/graalvm/jniutils/JNIUtil.java @@ -1164,7 +1164,7 @@ public static JFieldID findField(JNIEnv env, JClass clazz, boolean staticField, * * @param vm the {@link JavaVM} pointer. * @param daemon if true attaches the thread as a daemon thread. - * @param name the name of the Java tread or {@code null}. + * @param name the name of the Java thread or {@code null}. * @param threadGroup the thread group to add the thread into or C {@code NULL} pointer. * @return the current thread {@link JNIEnv} or C {@code NULL} pointer in case of error. */ diff --git a/sdk/src/org.graalvm.launcher.native/src/launcher.cc b/sdk/src/org.graalvm.launcher.native/src/launcher.cc index 5c45c5f13464..216cd0b53134 100644 --- a/sdk/src/org.graalvm.launcher.native/src/launcher.cc +++ b/sdk/src/org.graalvm.launcher.native/src/launcher.cc @@ -176,7 +176,7 @@ static int setenv(std::string key, std::string value) { } #else if (value.empty()) { - /* on posix, unsetenv cleares the env variable */ + /* on posix, unsetenv clears the env variable */ if (unsetenv(key.c_str()) == -1) { perror("unsetenv failed"); return -1; diff --git a/sdk/src/org.graalvm.nativebridge/src/org/graalvm/nativebridge/JNIConfig.java b/sdk/src/org.graalvm.nativebridge/src/org/graalvm/nativebridge/JNIConfig.java index e919200840c3..554afcd6989c 100644 --- a/sdk/src/org.graalvm.nativebridge/src/org/graalvm/nativebridge/JNIConfig.java +++ b/sdk/src/org.graalvm.nativebridge/src/org/graalvm/nativebridge/JNIConfig.java @@ -384,7 +384,7 @@ public Builder setReleaseNativeObjectAction(LongBinaryOperator action) { /** * Registers a thread local factory whenever the default thread local handling should be - * overriden. This can be useful to install a terminating thread local using JVMCI services + * overridden. This can be useful to install a terminating thread local using JVMCI services * when needed. * * @see NativeObject diff --git a/sdk/src/org.graalvm.nativeimage/src/org/graalvm/nativeimage/impl/clinit/ClassInitializationTracking.java b/sdk/src/org.graalvm.nativeimage/src/org/graalvm/nativeimage/impl/clinit/ClassInitializationTracking.java index 79fe21dcc11a..fc2b6fded2fc 100644 --- a/sdk/src/org.graalvm.nativeimage/src/org/graalvm/nativeimage/impl/clinit/ClassInitializationTracking.java +++ b/sdk/src/org.graalvm.nativeimage/src/org/graalvm/nativeimage/impl/clinit/ClassInitializationTracking.java @@ -75,7 +75,7 @@ public static void reportObjectInstantiated(Object o, StackTraceElement[] stackT } /** - * If the stack trace contains class initializaiton, returns the stack frames up to the last + * If the stack trace contains class initialization, returns the stack frames up to the last * initialization. Otherwise returns the whole stack trace. The method never returns the stack * from the instrumented part. * diff --git a/sdk/src/org.graalvm.polyglot/src/org/graalvm/polyglot/HostAccess.java b/sdk/src/org.graalvm.polyglot/src/org/graalvm/polyglot/HostAccess.java index f93886830679..f843ec8a08b3 100644 --- a/sdk/src/org.graalvm.polyglot/src/org/graalvm/polyglot/HostAccess.java +++ b/sdk/src/org.graalvm.polyglot/src/org/graalvm/polyglot/HostAccess.java @@ -510,7 +510,7 @@ public static Builder newBuilder() { /** * Creates a new builder that allows to create a custom host access policy based of a preset * configuration. The preset configuration is copied and used as a template for the returned - * buidler. The builder configuration needs to be completed using the {@link Builder#build() + * builder. The builder configuration needs to be completed using the {@link Builder#build() * method}. * * @since 19.0 diff --git a/sdk/src/org.graalvm.polyglot/src/org/graalvm/polyglot/PolyglotAccess.java b/sdk/src/org.graalvm.polyglot/src/org/graalvm/polyglot/PolyglotAccess.java index 3063c1ea8ce2..1120b3edb019 100644 --- a/sdk/src/org.graalvm.polyglot/src/org/graalvm/polyglot/PolyglotAccess.java +++ b/sdk/src/org.graalvm.polyglot/src/org/graalvm/polyglot/PolyglotAccess.java @@ -305,7 +305,7 @@ public Builder denyEvalBetween(String... languages) { /** * Allows evaluation of code by one language of another. This method only allows one-way * evaluation access. Every language always has implicitly access to itself. If a language - * has access to one ore more different languages then the guest application will have + * has access to one or more different languages then the guest application will have * access to polyglot evaluation builtins. If a language has no access granted to another * language then access to polyglot evaluation builtins is denied. * diff --git a/sdk/src/org.graalvm.polyglot/src/org/graalvm/polyglot/PolyglotException.java b/sdk/src/org.graalvm.polyglot/src/org/graalvm/polyglot/PolyglotException.java index dbaef991e9ae..f35db38f1cc5 100644 --- a/sdk/src/org.graalvm.polyglot/src/org/graalvm/polyglot/PolyglotException.java +++ b/sdk/src/org.graalvm.polyglot/src/org/graalvm/polyglot/PolyglotException.java @@ -209,7 +209,7 @@ public int hashCode() { */ @Override public void setStackTrace(StackTraceElement[] stackTrace) { - // validate arguments to fullfil contract + // validate arguments to fullfill contract for (int i = 0; i < stackTrace.length; i++) { if (stackTrace[i] == null) { throw new NullPointerException("stackTrace[" + i + "]"); diff --git a/sdk/src/org.graalvm.polyglot/src/org/graalvm/polyglot/SandboxPolicy.java b/sdk/src/org.graalvm.polyglot/src/org/graalvm/polyglot/SandboxPolicy.java index ced4388e23f5..3f9ea1a9e421 100644 --- a/sdk/src/org.graalvm.polyglot/src/org/graalvm/polyglot/SandboxPolicy.java +++ b/sdk/src/org.graalvm.polyglot/src/org/graalvm/polyglot/SandboxPolicy.java @@ -135,7 +135,7 @@ public enum SandboxPolicy { * {@link org.graalvm.polyglot.io.IOAccess.Builder#fileSystem(FileSystem) custom file * system}. *

  • If a custom filesystem is used, it must not be the - * {@link FileSystem#newDefaultFileSystem() default filesystem} or a filesytem wrapping the + * {@link FileSystem#newDefaultFileSystem() default filesystem} or a filesytsem wrapping the * default file system.
  • *
  • Only languages with a sandbox policy of at least {@code CONSTRAINED} can be used.
  • *
  • Only instruments with a sandbox policy of at least {@code CONSTRAINED} can be used.
  • diff --git a/sdk/src/org.graalvm.polyglot/src/org/graalvm/polyglot/Value.java b/sdk/src/org.graalvm.polyglot/src/org/graalvm/polyglot/Value.java index a440a24087a5..3054ee0ee506 100644 --- a/sdk/src/org.graalvm.polyglot/src/org/graalvm/polyglot/Value.java +++ b/sdk/src/org.graalvm.polyglot/src/org/graalvm/polyglot/Value.java @@ -1679,8 +1679,8 @@ public T as(TypeLiteral targetType) { } /** - * Converts this value to a human readable string. Each language may have special formating - * conventions - even primitive values may not follow the traditional Java formating rules. The + * Converts this value to a human readable string. Each language may have special formatting + * conventions - even primitive values may not follow the traditional Java formatting rules. The * format of the returned string is intended to be interpreted by humans not machines and should * therefore not be relied upon by machines. By default this value class name and its * {@link System#identityHashCode(Object) identity hash code} is used as string representation. diff --git a/sdk/src/org.graalvm.polyglot/src/org/graalvm/polyglot/io/ProcessHandler.java b/sdk/src/org.graalvm.polyglot/src/org/graalvm/polyglot/io/ProcessHandler.java index 80baf8a627bf..c52396afcbcc 100644 --- a/sdk/src/org.graalvm.polyglot/src/org/graalvm/polyglot/io/ProcessHandler.java +++ b/sdk/src/org.graalvm.polyglot/src/org/graalvm/polyglot/io/ProcessHandler.java @@ -64,7 +64,7 @@ public interface ProcessHandler { *

    * The default implementation uses {@link ProcessBuilder} to create the new subprocess. The * subprocess current working directory is set to {@link ProcessCommand#getDirectory()}. The - * {@link ProcessCommand#getDirectory()} value was either explicitely set by the guest language + * {@link ProcessCommand#getDirectory()} value was either explicitly set by the guest language * or the {@link FileSystem}'s current working directory is used. The subprocess environment is * set to {@link ProcessCommand#getEnvironment()}, the initial value of * {@link ProcessBuilder#environment()} is cleaned. The {@link ProcessCommand#getEnvironment()} diff --git a/substratevm/mx.substratevm/gdb_utils.py b/substratevm/mx.substratevm/gdb_utils.py index 1499bf28678f..54301c83d3d5 100644 --- a/substratevm/mx.substratevm/gdb_utils.py +++ b/substratevm/mx.substratevm/gdb_utils.py @@ -94,7 +94,7 @@ def __init__(self, name, regexps): # Check that successive lines of a gdb command's output text # match the corresponding regexp patterns provided when this # Checker was created. - # text - the full output of a gdb comand run by calling + # text - the full output of a gdb command run by calling # gdb.execute and passing to_string = True. # Exits with status 1 if there are less lines in the text # than regexp patterns or if any line fails to match the diff --git a/substratevm/mx.substratevm/suite.py b/substratevm/mx.substratevm/suite.py index 677ef89796ce..6898e270b5b1 100644 --- a/substratevm/mx.substratevm/suite.py +++ b/substratevm/mx.substratevm/suite.py @@ -1712,7 +1712,7 @@ "JUNIT_SUPPORT": { "subDir": "src", - "description" : "SubstrateVM suppoprt for building JUnit test into image", + "description" : "SubstrateVM support for building JUnit test into image", "dependencies": [ "com.oracle.svm.junit", ], diff --git a/substratevm/mx.substratevm/testhello.py b/substratevm/mx.substratevm/testhello.py index c81fc7c4e560..89a2d33fe0e2 100644 --- a/substratevm/mx.substratevm/testhello.py +++ b/substratevm/mx.substratevm/testhello.py @@ -116,7 +116,7 @@ def test(): rexp = fr"{digits_pattern}:{spaces_pattern}int com.oracle.svm.core.code.IsolateEnterStub::(JavaMainWrapper_run_{wildcard_pattern})\({wildcard_pattern}\);" checker = Checker('info func JavaMainWrapper_run_', rexp) matches = checker.check(exec_string) - # n.b can ony get here with one match + # n.b can only get here with one match match = matches[0] method_name = match.group(1) print(f"method_name = {method_name}") @@ -127,7 +127,7 @@ def test(): rexp = fr"{wildcard_pattern}0x({hex_digits_pattern}){wildcard_pattern}com.oracle.svm.core.code.IsolateEnterStub::JavaMainWrapper_run_{wildcard_pattern}" checker = Checker(f'x/i IsolateEnterStub::{method_name}', rexp) matches = checker.check(exec_string) - # n.b can ony get here with one match + # n.b can only get here with one match match = matches[0] bp_address = int(match.group(1), 16) @@ -481,8 +481,13 @@ def test(): checker = Checker("info args println", rexp) checker.check(exec_string) +<<<<<<< HEAD exec_string = execute("ptype this") # the debugger shoudl still know the type of "this" +======= + exec_string = execute("ptype this"); + # the debugger should still know the type of "this" +>>>>>>> 1735e2b8ca9 (Fix typos) rexp = [r"type = class java\.io\.PrintStream : public java\.io\.FilterOutputStream {"] checker = Checker("ptype this", rexp) checker.check(exec_string) @@ -538,7 +543,7 @@ def test(): rexp = [fr"103{spaces_pattern}inlineA\(\);"] checker = Checker('list inlineIs', rexp) checker.check(execute("list inlineIs")) - # List inlineA may actually return more locations dependening on inlining decisions, but noInlineTest + # List inlineA may actually return more locations depending on inlining decisions, but noInlineTest # always needs to be listed rexp = [fr"108{spaces_pattern}noInlineTest\(\);"] checker = Checker('list inlineA', rexp) @@ -547,8 +552,13 @@ def test(): execute("delete breakpoints") # Set breakpoint at inlined method and step through its nested inline methods exec_string = execute("break hello.Hello::inlineIs") +<<<<<<< HEAD # Dependening on inlining decisions, there are either two or one locations rexp = fr"Breakpoint {digits_pattern} at {address_pattern}: (hello\.Hello::inlineIs\. \(2 locations\)|file hello/Hello\.java, line 103\.)" +======= + # Depending on inlining decisions, there are either two or one locations + rexp = r"Breakpoint %s at %s: (hello\.Hello::inlineIs\. \(2 locations\)|file hello/Hello\.java, line 103\.)"%(digits_pattern, address_pattern) +>>>>>>> 1735e2b8ca9 (Fix typos) checker = Checker('break inlineIs', rexp) checker.check(exec_string, skip_fails=False) @@ -698,7 +708,7 @@ def test(): rexp = fr"{spaces_pattern}0x({hex_digits_pattern}){wildcard_pattern}hello.Hello::noInlineManyArgs{wildcard_pattern}" checker = Checker('x/i hello.Hello::noInlineManyArgs', rexp) matches = checker.check(exec_string) - # n.b can ony get here with one match + # n.b can only get here with one match match = matches[0] bp_address = int(match.group(1), 16) print(f"bp = {match.group(1)} {bp_address:x}") @@ -987,7 +997,7 @@ def test(): rexp = fr"{spaces_pattern}0x({hex_digits_pattern}){wildcard_pattern}com.oracle.svm.test.debug.CStructTests::testMixedArguments{wildcard_pattern}" checker = Checker('x/i CStructTests::testMixedArguments', rexp) matches = checker.check(exec_string) - # n.b can ony get here with one match + # n.b can only get here with one match match = matches[0] bp_address = int(match.group(1), 16) print(f"bp = {match.group(1)} {bp_address:x}") diff --git a/substratevm/src/com.oracle.graal.pointsto/src/com/oracle/graal/pointsto/ReachabilityAnalysis.java b/substratevm/src/com.oracle.graal.pointsto/src/com/oracle/graal/pointsto/ReachabilityAnalysis.java index a24b6ffa9fb7..19c4c6a320f6 100644 --- a/substratevm/src/com.oracle.graal.pointsto/src/com/oracle/graal/pointsto/ReachabilityAnalysis.java +++ b/substratevm/src/com.oracle.graal.pointsto/src/com/oracle/graal/pointsto/ReachabilityAnalysis.java @@ -46,7 +46,7 @@ public interface ReachabilityAnalysis { * Marks given class and all its superclasses as reachable. * * @param clazz class to be marked - * @param addFields if true, all instance fiels are marked as accessed + * @param addFields if true, all instance fields are marked as accessed * @param addArrayClass if true, the array class is registered as well */ AnalysisType addRootClass(Class clazz, boolean addFields, boolean addArrayClass); diff --git a/substratevm/src/com.oracle.graal.pointsto/src/com/oracle/graal/pointsto/flow/FieldTypeFlow.java b/substratevm/src/com.oracle.graal.pointsto/src/com/oracle/graal/pointsto/flow/FieldTypeFlow.java index f56aaa40790a..64a12d6d40c2 100644 --- a/substratevm/src/com.oracle.graal.pointsto/src/com/oracle/graal/pointsto/flow/FieldTypeFlow.java +++ b/substratevm/src/com.oracle.graal.pointsto/src/com/oracle/graal/pointsto/flow/FieldTypeFlow.java @@ -87,7 +87,7 @@ public FieldFilterTypeFlow filterFlow(PointsToAnalysis bb) { /* * The newly installed FieldFilterTypeFlow can be used by other threads before * addUse() is called / done. This is not a problem. The filterFlow stores its own - * state and after the use is actually linked the state, if any, is transfered to + * state and after the use is actually linked the state, if any, is transferred to * the use. */ filterFlow.addUse(bb, this); diff --git a/substratevm/src/com.oracle.graal.pointsto/src/com/oracle/graal/pointsto/flow/MethodFlowsGraph.java b/substratevm/src/com.oracle.graal.pointsto/src/com/oracle/graal/pointsto/flow/MethodFlowsGraph.java index e3e3819e3f2f..130f14fe40c7 100644 --- a/substratevm/src/com.oracle.graal.pointsto/src/com/oracle/graal/pointsto/flow/MethodFlowsGraph.java +++ b/substratevm/src/com.oracle.graal.pointsto/src/com/oracle/graal/pointsto/flow/MethodFlowsGraph.java @@ -354,7 +354,7 @@ public List allNonStubCallers(PointsToAnalysis bb) { } for (MethodFlowsGraph calleeFlowGraph : invoke.getAllNonStubCalleesFlows(bb)) { // 'this' method graph was found among the callees of an invoke flow in one - // of the clones of the caller methods, hence we regiter that clone as a + // of the clones of the caller methods, hence we register that clone as a // caller for 'this' method clone if (calleeFlowGraph.equals(this)) { callers.add(callerFlowGraph); diff --git a/substratevm/src/com.oracle.graal.pointsto/src/com/oracle/graal/pointsto/flow/MethodTypeFlowBuilder.java b/substratevm/src/com.oracle.graal.pointsto/src/com/oracle/graal/pointsto/flow/MethodTypeFlowBuilder.java index 4b4089a54d53..227346f6ea72 100644 --- a/substratevm/src/com.oracle.graal.pointsto/src/com/oracle/graal/pointsto/flow/MethodTypeFlowBuilder.java +++ b/substratevm/src/com.oracle.graal.pointsto/src/com/oracle/graal/pointsto/flow/MethodTypeFlowBuilder.java @@ -1880,7 +1880,7 @@ protected void processMethodInvocation(TypeFlowsOfNodes state, ValueNode invoke, * nodes when more concrete stamp information can be inferred for example from * parameter types. In that case the Graal graph optimizations may decide to * remove a checkcast that would normally follow the invoke, so we need to - * introduce the filter to avoid loosing precision. + * introduce the filter to avoid losing precision. */ TypeFlowBuilder filterBuilder = TypeFlowBuilder.create(bb, method, state.getPredicate(), invoke, FilterTypeFlow.class, () -> { FilterTypeFlow filterFlow = new FilterTypeFlow(invokeLocation, stampType, stamp.isExactType(), true, true); diff --git a/substratevm/src/com.oracle.graal.pointsto/src/com/oracle/graal/pointsto/flow/OffsetStoreTypeFlow.java b/substratevm/src/com.oracle.graal.pointsto/src/com/oracle/graal/pointsto/flow/OffsetStoreTypeFlow.java index b01f8da156ec..24e85153098c 100644 --- a/substratevm/src/com.oracle.graal.pointsto/src/com/oracle/graal/pointsto/flow/OffsetStoreTypeFlow.java +++ b/substratevm/src/com.oracle.graal.pointsto/src/com/oracle/graal/pointsto/flow/OffsetStoreTypeFlow.java @@ -49,7 +49,7 @@ public abstract class OffsetStoreTypeFlow extends TypeFlow { /* * The type of the receiver object of the offset store operation. Can be approximated by Object - * or Object[] when it cannot be infered from stamps. + * or Object[] when it cannot be inferred from stamps. */ protected final AnalysisType objectType; diff --git a/substratevm/src/com.oracle.graal.pointsto/src/com/oracle/graal/pointsto/flow/TypeFlow.java b/substratevm/src/com.oracle.graal.pointsto/src/com/oracle/graal/pointsto/flow/TypeFlow.java index 41981c8bcee8..85f8a0c219dc 100644 --- a/substratevm/src/com.oracle.graal.pointsto/src/com/oracle/graal/pointsto/flow/TypeFlow.java +++ b/substratevm/src/com.oracle.graal.pointsto/src/com/oracle/graal/pointsto/flow/TypeFlow.java @@ -860,7 +860,7 @@ protected void onSaturated(PointsToAnalysis bb) { * work correctly. When the receiver object of an array load/store operation is saturated, * i.e., it will stop sending updates, the load/store needs to subscribe for updates * directly to the type flow of the receiver object declared type. However, the declared - * type cannot always be statically infered from the graphs, thus a conservative + * type cannot always be statically inferred from the graphs, thus a conservative * approximation such as the Object type can be used. Therefore, all array type flows need * to be modeled using a unique elements type flow abstraction. */ diff --git a/substratevm/src/com.oracle.graal.pointsto/src/com/oracle/graal/pointsto/typestate/PointsToStats.java b/substratevm/src/com.oracle.graal.pointsto/src/com/oracle/graal/pointsto/typestate/PointsToStats.java index 13fc569cdea7..4e148e9fe881 100644 --- a/substratevm/src/com.oracle.graal.pointsto/src/com/oracle/graal/pointsto/typestate/PointsToStats.java +++ b/substratevm/src/com.oracle.graal.pointsto/src/com/oracle/graal/pointsto/typestate/PointsToStats.java @@ -578,7 +578,7 @@ public static String asString(TypeState s) { /** * Wrapper for BufferedWriter.out to deal with checked exception. Useful for avoiding catching - * exceptions in lamdas. + * exceptions in lambdas. * * @param out the writer * @param str the string to write diff --git a/substratevm/src/com.oracle.graal.pointsto/src/com/oracle/graal/pointsto/typestate/TypeStateUtils.java b/substratevm/src/com.oracle.graal.pointsto/src/com/oracle/graal/pointsto/typestate/TypeStateUtils.java index ab2a88321383..e063fa1a880b 100644 --- a/substratevm/src/com.oracle.graal.pointsto/src/com/oracle/graal/pointsto/typestate/TypeStateUtils.java +++ b/substratevm/src/com.oracle.graal.pointsto/src/com/oracle/graal/pointsto/typestate/TypeStateUtils.java @@ -165,7 +165,7 @@ private static AnalysisObject[] arraysUnion(PointsToAnalysis bb, AnalysisObject[ assert a1.length > 1 || !bb.analysisPolicy().isSummaryObject(a1[0]) : a1; assert a2.length > 1 || !bb.analysisPolicy().isSummaryObject(a2[0]) : a2; - // TOOD check same type + // TODO check same type // assert !bb.options().extendedAsserts() || (a1.checkState(bb.options()) && // a2.checkState(bb.options())); diff --git a/substratevm/src/com.oracle.objectfile/src/com/oracle/objectfile/DynamicLinkBehaviour.java b/substratevm/src/com.oracle.objectfile/src/com/oracle/objectfile/DynamicLinkBehaviour.java index 86f12c3fc640..3da01ae07722 100644 --- a/substratevm/src/com.oracle.objectfile/src/com/oracle/objectfile/DynamicLinkBehaviour.java +++ b/substratevm/src/com.oracle.objectfile/src/com/oracle/objectfile/DynamicLinkBehaviour.java @@ -53,7 +53,7 @@ public interface DynamicLinkBehaviour { * Add a linker path to the list of libraries on which this dynamic object is declared to * depend. * - * @param linkPath the directory which is to be added to the run-time libary search path. + * @param linkPath the directory which is to be added to the run-time library search path. */ void addRuntimeLinkPath(String linkPath); } diff --git a/substratevm/src/com.oracle.objectfile/src/com/oracle/objectfile/debugentry/DebugInfoBase.java b/substratevm/src/com.oracle.objectfile/src/com/oracle/objectfile/debugentry/DebugInfoBase.java index f012843e1910..8f7462d47966 100644 --- a/substratevm/src/com.oracle.objectfile/src/com/oracle/objectfile/debugentry/DebugInfoBase.java +++ b/substratevm/src/com.oracle.objectfile/src/com/oracle/objectfile/debugentry/DebugInfoBase.java @@ -83,7 +83,7 @@ * n.b. methods of a given class do not always appear in a single continuous address range. The * compiler choose to interleave intervening code from other classes or data values in order to get * better cache locality. It may also choose to generate deoptimized variants of methods in a - * separate range from normal, optimized compiled code. This out of (code addess) order sorting may + * separate range from normal, optimized compiled code. This out of (code address) order sorting may * make it difficult to use a class by class traversal to generate debug info in separate per-class * units. */ diff --git a/substratevm/src/com.oracle.objectfile/src/com/oracle/objectfile/debugentry/MethodEntry.java b/substratevm/src/com.oracle.objectfile/src/com/oracle/objectfile/debugentry/MethodEntry.java index d583784898ad..86aad23d8e8b 100644 --- a/substratevm/src/com.oracle.objectfile/src/com/oracle/objectfile/debugentry/MethodEntry.java +++ b/substratevm/src/com.oracle.objectfile/src/com/oracle/objectfile/debugentry/MethodEntry.java @@ -238,7 +238,7 @@ public String getSymbolName() { * with existing recorded parameter or local variables. Values with invalid (negative) slots * always fail. Values whose slot is associated with a parameter only conform if their name and * type equal those of the parameter. Values whose slot is in the local range will always - * succeed,. either by matchign the slot and name of an existing local or by being recorded as a + * succeed,. either by matching the slot and name of an existing local or by being recorded as a * new local variable. * * @param localValueInfo diff --git a/substratevm/src/com.oracle.objectfile/src/com/oracle/objectfile/debugentry/TypeEntry.java b/substratevm/src/com.oracle.objectfile/src/com/oracle/objectfile/debugentry/TypeEntry.java index b6e870ee3d69..e03100cf957c 100644 --- a/substratevm/src/com.oracle.objectfile/src/com/oracle/objectfile/debugentry/TypeEntry.java +++ b/substratevm/src/com.oracle.objectfile/src/com/oracle/objectfile/debugentry/TypeEntry.java @@ -112,7 +112,7 @@ public boolean isForeign() { * properties of the java type. This also allows them to be decorated with properties that * record details of the generated debug info. When it comes to encoding the model type as DWARF * or PECOFF method {@link #isForeign()} may need to be called in order to allow foreign types - * ot be special cased. + * to be special cased. * * @return true if this entry is a class type otherwise false. */ diff --git a/substratevm/src/com.oracle.objectfile/src/com/oracle/objectfile/elf/dwarf/DwarfAbbrevSectionImpl.java b/substratevm/src/com.oracle.objectfile/src/com/oracle/objectfile/elf/dwarf/DwarfAbbrevSectionImpl.java index d6ba23b7f019..eaa37e6783eb 100644 --- a/substratevm/src/com.oracle.objectfile/src/com/oracle/objectfile/elf/dwarf/DwarfAbbrevSectionImpl.java +++ b/substratevm/src/com.oracle.objectfile/src/com/oracle/objectfile/elf/dwarf/DwarfAbbrevSectionImpl.java @@ -689,7 +689,7 @@ * type is typed (via a later level 1 DIE) as a DWARF array, i.e. it is a data block embedded * directly in the layout, with a nominal element count of 0. The elements of this DWARF array are * typed using the DWARF type corresponding to the Java array's element type. It is either a Java - * primitive type or a Java reference type (i.e. the pointer type ot the underlying layout type). A + * primitive type or a Java reference type (i.e. the pointer type of the underlying layout type). A * nominal array length of zero means that this second data field does not actually add any extra * size to the array layout. So, all array types have the same length. *

    diff --git a/substratevm/src/com.oracle.objectfile/src/com/oracle/objectfile/elf/dwarf/DwarfInfoSectionImpl.java b/substratevm/src/com.oracle.objectfile/src/com/oracle/objectfile/elf/dwarf/DwarfInfoSectionImpl.java index e38565863930..682bf3c334fe 100644 --- a/substratevm/src/com.oracle.objectfile/src/com/oracle/objectfile/elf/dwarf/DwarfInfoSectionImpl.java +++ b/substratevm/src/com.oracle.objectfile/src/com/oracle/objectfile/elf/dwarf/DwarfInfoSectionImpl.java @@ -408,7 +408,7 @@ private int writeInstanceClassInfo(DebugContext context, ClassEntry classEntry, int codeRangesIndex = getCodeRangesIndex(classEntry); log(context, " [0x%08x] ranges 0x%x", pos, codeRangesIndex); pos = writeRangesSectionOffset(codeRangesIndex, buffer, pos); - // write low_pc as well as ranges so that lcoation lists can default the base address + // write low_pc as well as ranges so that location lists can default the base address int lo = classEntry.lowpc(); log(context, " [0x%08x] low_pc 0x%x", pos, codeRangesIndex); pos = writeAttrAddress(lo, buffer, pos); diff --git a/substratevm/src/com.oracle.objectfile/src/com/oracle/objectfile/elf/dwarf/DwarfLocSectionImpl.java b/substratevm/src/com.oracle.objectfile/src/com/oracle/objectfile/elf/dwarf/DwarfLocSectionImpl.java index c348cc2dd2ed..6d24c2fc99a8 100644 --- a/substratevm/src/com.oracle.objectfile/src/com/oracle/objectfile/elf/dwarf/DwarfLocSectionImpl.java +++ b/substratevm/src/com.oracle.objectfile/src/com/oracle/objectfile/elf/dwarf/DwarfLocSectionImpl.java @@ -203,7 +203,7 @@ private int writeVarLocations(DebugContext context, DebugLocalInfo local, int ba List extents = LocalValueExtent.coalesce(local, rangeList); // write start of primary range as base address - see comment above for reasons why - // we choose ot do this rather than use the relevant compile unit low_pc + // we choose to do this rather than use the relevant compile unit low_pc pos = writeAttrData8(-1L, buffer, pos); pos = writeAttrAddress(base, buffer, pos); // write ranges as offsets from base diff --git a/substratevm/src/com.oracle.objectfile/src/com/oracle/objectfile/pecoff/PECoffSymtab.java b/substratevm/src/com.oracle.objectfile/src/com/oracle/objectfile/pecoff/PECoffSymtab.java index 5505341e4ce1..bcb68da14563 100644 --- a/substratevm/src/com.oracle.objectfile/src/com/oracle/objectfile/pecoff/PECoffSymtab.java +++ b/substratevm/src/com.oracle.objectfile/src/com/oracle/objectfile/pecoff/PECoffSymtab.java @@ -192,7 +192,7 @@ private static int compareEntries(Entry a, Entry b) { private PECoffSymtabStruct symtabStruct; /** - * PECoffSymtab Element encompases the Symbol table array and the String table. The String table + * PECoffSymtab Element encompasses the Symbol table array and the String table. The String table * immediately follows the Symbol table. */ public PECoffSymtab(PECoffObjectFile owner, String name) { diff --git a/substratevm/src/com.oracle.objectfile/src/com/oracle/objectfile/pecoff/cv/CVLineRecord.java b/substratevm/src/com.oracle.objectfile/src/com/oracle/objectfile/pecoff/cv/CVLineRecord.java index ad8ac25fecb0..da72952d5cf1 100644 --- a/substratevm/src/com.oracle.objectfile/src/com/oracle/objectfile/pecoff/cv/CVLineRecord.java +++ b/substratevm/src/com.oracle.objectfile/src/com/oracle/objectfile/pecoff/cv/CVLineRecord.java @@ -34,7 +34,7 @@ */ final class CVLineRecord extends CVSymbolRecord { - /* Header: addr (4 bytes):section (2 bytes) flags (2 bytes) chunck length (4 bytes). */ + /* Header: addr (4 bytes):section (2 bytes) flags (2 bytes) chunk length (4 bytes). */ private static final int LINE_RECORD_HEADER_SIZE = Integer.BYTES + Short.BYTES * 2 + Integer.BYTES; private static final int DEFAULT_LINE_BLOCK_COUNT = 100; diff --git a/substratevm/src/com.oracle.objectfile/src/com/oracle/objectfile/pecoff/cv/CVSymbolSubsectionBuilder.java b/substratevm/src/com.oracle.objectfile/src/com/oracle/objectfile/pecoff/cv/CVSymbolSubsectionBuilder.java index 3d4722d384ac..bfda50d55669 100644 --- a/substratevm/src/com.oracle.objectfile/src/com/oracle/objectfile/pecoff/cv/CVSymbolSubsectionBuilder.java +++ b/substratevm/src/com.oracle.objectfile/src/com/oracle/objectfile/pecoff/cv/CVSymbolSubsectionBuilder.java @@ -194,7 +194,7 @@ private void addTypeRecords(TypeEntry typeEntry) { /** * Add type records for a class and all its members. * - * @param entry compiled method containing entities whos type records must be added + * @param entry compiled method containing entities who's type records must be added * @return type index of function type */ private int addTypeRecords(CompiledMethodEntry entry) { diff --git a/substratevm/src/com.oracle.svm.agent/src/com/oracle/svm/agent/BreakpointInterceptor.java b/substratevm/src/com.oracle.svm.agent/src/com/oracle/svm/agent/BreakpointInterceptor.java index d5f365b33912..5b1ec9996bb4 100644 --- a/substratevm/src/com.oracle.svm.agent/src/com/oracle/svm/agent/BreakpointInterceptor.java +++ b/substratevm/src/com.oracle.svm.agent/src/com/oracle/svm/agent/BreakpointInterceptor.java @@ -1015,7 +1015,7 @@ private static boolean methodTypeFromDescriptor(JNIEnvironment jni, JNIObjectHan * This method should be intercepted when we are predefining a lambda class. This is the only * spot in the lambda-class creation pipeline where we can get lambda-class bytecode so the * class can be predefined. We do not want to predefine all lambda classes, but only the ones - * that are actually created at runtime, so we have a method that checks wheter the lambda + * that are actually created at runtime, so we have a method that checks whether the lambda * should be predefined or not. */ private static boolean onMethodHandleClassFileInit(JNIEnvironment jni, JNIObjectHandle thread, @SuppressWarnings("unused") Breakpoint bp, InterceptedState state) { diff --git a/substratevm/src/com.oracle.svm.configure/src/com/oracle/svm/configure/config/ParserConfigurationAdapter.java b/substratevm/src/com.oracle.svm.configure/src/com/oracle/svm/configure/config/ParserConfigurationAdapter.java index 39657123cec2..235755cbc4c9 100644 --- a/substratevm/src/com.oracle.svm.configure/src/com/oracle/svm/configure/config/ParserConfigurationAdapter.java +++ b/substratevm/src/com.oracle.svm.configure/src/com/oracle/svm/configure/config/ParserConfigurationAdapter.java @@ -48,7 +48,7 @@ public TypeResult resolveType(UnresolvedConfigurationConditio ConfigurationType type = configuration.get(condition, typeDescriptor); /* * The type is not immediately set with all elements included. These are added afterwards - * when parsing the correspondind fields to check for overriding values + * when parsing the corresponding fields to check for overriding values */ ConfigurationType result = type != null ? type : new ConfigurationType(condition, typeDescriptor, false); return TypeResult.forType(typeDescriptor.toString(), result); diff --git a/substratevm/src/com.oracle.svm.core.graal.llvm/src/com/oracle/svm/core/graal/llvm/util/LLVMTargetSpecific.java b/substratevm/src/com.oracle.svm.core.graal.llvm/src/com/oracle/svm/core/graal/llvm/util/LLVMTargetSpecific.java index 691dd8f055cb..e1ad1098c089 100644 --- a/substratevm/src/com.oracle.svm.core.graal.llvm/src/com/oracle/svm/core/graal/llvm/util/LLVMTargetSpecific.java +++ b/substratevm/src/com.oracle.svm.core.graal.llvm/src/com/oracle/svm/core/graal/llvm/util/LLVMTargetSpecific.java @@ -321,7 +321,7 @@ public String getLLVMArchName() { /* * The return address is not saved on the stack on ARM, so the stack frames have no - * space inbetween them. + * space in between them. */ @Override public int getCallFrameSeparation() { diff --git a/substratevm/src/com.oracle.svm.core/src/com/oracle/svm/core/JavaMainWrapper.java b/substratevm/src/com.oracle.svm.core/src/com/oracle/svm/core/JavaMainWrapper.java index 6df39db9fd5d..e82f0abf4623 100644 --- a/substratevm/src/com.oracle.svm.core/src/com/oracle/svm/core/JavaMainWrapper.java +++ b/substratevm/src/com.oracle.svm.core/src/com/oracle/svm/core/JavaMainWrapper.java @@ -192,7 +192,7 @@ public static void invokeMain(String[] args) throws Throwable { } /** - * Determines whether instance main methodes are enabled. See JDK-8306112: Implementation of JEP + * Determines whether instance main methods are enabled. See JDK-8306112: Implementation of JEP * 445: Unnamed Classes and Instance Main Methods (Preview). */ public static boolean instanceMainMethodSupported() { diff --git a/substratevm/src/com.oracle.svm.core/src/com/oracle/svm/core/SubstrateUtil.java b/substratevm/src/com.oracle.svm.core/src/com/oracle/svm/core/SubstrateUtil.java index b599275f0287..fe772598a4ec 100644 --- a/substratevm/src/com.oracle.svm.core/src/com/oracle/svm/core/SubstrateUtil.java +++ b/substratevm/src/com.oracle.svm.core/src/com/oracle/svm/core/SubstrateUtil.java @@ -489,7 +489,7 @@ private static String shortenClassName(String className) { /* * Lambda classes have a 32-byte digest (because hex encoding is required), so with the * prefix just the Lambda part is already longer than our desired maximum name. We keep only - * the first part of the digest, which is sufficent to distinguish multiple lambdas defined + * the first part of the digest, which is sufficient to distinguish multiple lambdas defined * by the same holder class. */ int lambdaStart = result.indexOf(LambdaUtils.LAMBDA_CLASS_NAME_SUBSTRING); diff --git a/substratevm/src/com.oracle.svm.core/src/com/oracle/svm/core/TypeResult.java b/substratevm/src/com.oracle.svm.core/src/com/oracle/svm/core/TypeResult.java index ce4271736f8e..f7ecf3d54e2f 100644 --- a/substratevm/src/com.oracle.svm.core/src/com/oracle/svm/core/TypeResult.java +++ b/substratevm/src/com.oracle.svm.core/src/com/oracle/svm/core/TypeResult.java @@ -31,7 +31,7 @@ /** * Encode the result of loading a class. It contains either a type object, if the loading is - * succesful, or a Throwable object encoding the reason why the loading failed. + * successful, or a Throwable object encoding the reason why the loading failed. */ public final class TypeResult { diff --git a/substratevm/src/com.oracle.svm.core/src/com/oracle/svm/core/Uninterruptible.java b/substratevm/src/com.oracle.svm.core/src/com/oracle/svm/core/Uninterruptible.java index 80f7139777aa..7aab00457e4f 100644 --- a/substratevm/src/com.oracle.svm.core/src/com/oracle/svm/core/Uninterruptible.java +++ b/substratevm/src/com.oracle.svm.core/src/com/oracle/svm/core/Uninterruptible.java @@ -67,7 +67,7 @@ * semantics. Covariant return types are not allowed when overriding a method, i.e., the base method * and the override must have the exact same declared return type. Covariant return types require a * synthetic bridge method that is generated automatically by the Java compiler, and not all Java - * compilers put the {@link Uninterruptible} annotation on the bridge metod too (for example ECJ). + * compilers put the {@link Uninterruptible} annotation on the bridge method too (for example ECJ). * For consistency reasons, synthetic methods are therefore never treated as uninterruptible. *

    * Annotated methods give a terse {@link #reason} why they are annotated. Often the reason is that diff --git a/substratevm/src/com.oracle.svm.core/src/com/oracle/svm/core/graal/phases/CollectDeoptimizationSourcePositionsPhase.java b/substratevm/src/com.oracle.svm.core/src/com/oracle/svm/core/graal/phases/CollectDeoptimizationSourcePositionsPhase.java index b7b667b32e22..2da4d23bef53 100644 --- a/substratevm/src/com.oracle.svm.core/src/com/oracle/svm/core/graal/phases/CollectDeoptimizationSourcePositionsPhase.java +++ b/substratevm/src/com.oracle.svm.core/src/com/oracle/svm/core/graal/phases/CollectDeoptimizationSourcePositionsPhase.java @@ -38,7 +38,7 @@ /** * This phase collects {@link NodeSourcePosition} for deoptimizations. The source information is - * printed during deoptimization to help indentifying deoptimization issues like repeated + * printed during deoptimization to help identifying deoptimization issues like repeated * deoptimizations. *

    * The program counter of the call to the deoptimization in the compiled code is not unique to diff --git a/substratevm/src/com.oracle.svm.core/src/com/oracle/svm/core/jdk/CalendarSubstitutions.java b/substratevm/src/com.oracle.svm.core/src/com/oracle/svm/core/jdk/CalendarSubstitutions.java index b4956ba337eb..eb5c89f002e4 100644 --- a/substratevm/src/com.oracle.svm.core/src/com/oracle/svm/core/jdk/CalendarSubstitutions.java +++ b/substratevm/src/com.oracle.svm.core/src/com/oracle/svm/core/jdk/CalendarSubstitutions.java @@ -38,7 +38,7 @@ /* * The JDK performs dynamic lookup of calendar systems by name, which leads to dynamic class * loading. We cannot do that, because we need to know all classes ahead of time to perform our - * static analysis. Therefore, we limited ourselfs to the basic calendars for now, and create them + * static analysis. Therefore, we limited ourselves to the basic calendars for now, and create them * statically. */ diff --git a/substratevm/src/com.oracle.svm.core/src/com/oracle/svm/core/jdk/FileSystemProviderSupport.java b/substratevm/src/com.oracle.svm.core/src/com/oracle/svm/core/jdk/FileSystemProviderSupport.java index 85b0dc32eb18..a5e838633682 100644 --- a/substratevm/src/com.oracle.svm.core/src/com/oracle/svm/core/jdk/FileSystemProviderSupport.java +++ b/substratevm/src/com.oracle.svm.core/src/com/oracle/svm/core/jdk/FileSystemProviderSupport.java @@ -165,7 +165,7 @@ public static List installedProviders() { * instance is reachable from many places, for example UnixPath. Disallowing Path instances is a * severe restriction because relative Path instances are often stored in static final fields. * - * c) Allow UnixFileSystem in the image heap and recompute state at run time on first acccess. This + * c) Allow UnixFileSystem in the image heap and recompute state at run time on first access. This * approach is implemented here. */ @TargetClass(className = "sun.nio.fs.UnixFileSystem") diff --git a/substratevm/src/com.oracle.svm.core/src/com/oracle/svm/core/jdk/Resources.java b/substratevm/src/com.oracle.svm.core/src/com/oracle/svm/core/jdk/Resources.java index f20a1dc22b77..8a7d8c85a9ec 100644 --- a/substratevm/src/com.oracle.svm.core/src/com/oracle/svm/core/jdk/Resources.java +++ b/substratevm/src/com.oracle.svm.core/src/com/oracle/svm/core/jdk/Resources.java @@ -289,7 +289,7 @@ public void registerIncludePattern(ConfigurationCondition condition, String modu /* * This handles generated include patterns which start and end with \Q and \E. The actual - * resource name is located inbetween those tags. + * resource name is located in between those tags. */ @Platforms(Platform.HOSTED_ONLY.class) private static String handleEscapedCharacters(String pattern) { diff --git a/substratevm/src/com.oracle.svm.core/src/com/oracle/svm/core/jdk/SplittableRandomAccessors.java b/substratevm/src/com.oracle.svm.core/src/com/oracle/svm/core/jdk/SplittableRandomAccessors.java index bca11412dbe4..f81c73a13d8c 100644 --- a/substratevm/src/com.oracle.svm.core/src/com/oracle/svm/core/jdk/SplittableRandomAccessors.java +++ b/substratevm/src/com.oracle.svm.core/src/com/oracle/svm/core/jdk/SplittableRandomAccessors.java @@ -54,7 +54,7 @@ public static AtomicLong getDefaultGen() { return SINGLETON.getOrInitializeSeeder(); } - /** The setter is necessary if SplittableRandom is initilized at run time. */ + /** The setter is necessary if SplittableRandom is initialized at run time. */ public static void setDefaultGen(AtomicLong value) { SINGLETON.seeder = value; } diff --git a/substratevm/src/com.oracle.svm.core/src/com/oracle/svm/core/jdk/StackTraceUtils.java b/substratevm/src/com.oracle.svm.core/src/com/oracle/svm/core/jdk/StackTraceUtils.java index 071671a3e5b8..299b9d82a3d6 100644 --- a/substratevm/src/com.oracle.svm.core/src/com/oracle/svm/core/jdk/StackTraceUtils.java +++ b/substratevm/src/com.oracle.svm.core/src/com/oracle/svm/core/jdk/StackTraceUtils.java @@ -512,7 +512,7 @@ static void writeSourceReference(long[] backtrace, int pos, int sourceLineNumber long sourceClassOop = assertNonZero(ReferenceAccess.singleton().getCompressedRepresentation(sourceClass).rawValue()); long sourceMethodNameOop = assertNonZero(ReferenceAccess.singleton().getCompressedRepresentation(sourceMethodName).rawValue()); VMError.guarantee((0xffffffff_00000000L & sourceClassOop) == 0L, "Compressed source class reference with high bits"); - VMError.guarantee((0xffffffff_00000000L & sourceMethodNameOop) == 0L, "Compressed source methode name reference with high bits"); + VMError.guarantee((0xffffffff_00000000L & sourceMethodNameOop) == 0L, "Compressed source method name reference with high bits"); backtrace[pos + 1] = (sourceClassOop << 32) | sourceMethodNameOop; } else { backtrace[pos + 1] = assertNonZero(Word.objectToUntrackedPointer(sourceClass).rawValue()); diff --git a/substratevm/src/com.oracle.svm.core/src/com/oracle/svm/core/jdk/resources/CompressedGlobTrie/CompressedGlobTrie.java b/substratevm/src/com.oracle.svm.core/src/com/oracle/svm/core/jdk/resources/CompressedGlobTrie/CompressedGlobTrie.java index 6dc93f7c95b5..3332e9a3e105 100644 --- a/substratevm/src/com.oracle.svm.core/src/com/oracle/svm/core/jdk/resources/CompressedGlobTrie/CompressedGlobTrie.java +++ b/substratevm/src/com.oracle.svm.core/src/com/oracle/svm/core/jdk/resources/CompressedGlobTrie/CompressedGlobTrie.java @@ -287,7 +287,7 @@ private static int comparePatterns(GlobWithInfo n1, GlobWithInfo n2) { * means either we have same words with different numbers of * (we are favouring * pattern with more *) or same/different words with stars on different places * (we don't care because they will end up in separate branches, but we will - * favour shorter patters) + * favour shorter patterns) */ if (len1 == len2) { /* patterns have same number of letters */ diff --git a/substratevm/src/com.oracle.svm.core/src/com/oracle/svm/core/monitor/MultiThreadedMonitorSupport.java b/substratevm/src/com.oracle.svm.core/src/com/oracle/svm/core/monitor/MultiThreadedMonitorSupport.java index 7a458f0a0c65..b86dcfd0819b 100644 --- a/substratevm/src/com.oracle.svm.core/src/com/oracle/svm/core/monitor/MultiThreadedMonitorSupport.java +++ b/substratevm/src/com.oracle.svm.core/src/com/oracle/svm/core/monitor/MultiThreadedMonitorSupport.java @@ -166,7 +166,7 @@ public class MultiThreadedMonitorSupport extends MonitorSupport { /* * When a thread exits, it locks its own thread mutex and changes its state to - * TERMINATED. Without an explict monitor slot, the thread could get parked when + * TERMINATED. Without an explicit monitor slot, the thread could get parked when * unlocking its own mutex (because we need to lock the shared monitor map). If the * thread gets blocked during unlocking, its thread state would change unexpectedly. */ diff --git a/substratevm/src/com.oracle.svm.hosted/src/com/oracle/svm/hosted/ProgressReporterJsonHelper.java b/substratevm/src/com.oracle.svm.hosted/src/com/oracle/svm/hosted/ProgressReporterJsonHelper.java index ba3b991571cd..86c16b66214e 100644 --- a/substratevm/src/com.oracle.svm.hosted/src/com/oracle/svm/hosted/ProgressReporterJsonHelper.java +++ b/substratevm/src/com.oracle.svm.hosted/src/com/oracle/svm/hosted/ProgressReporterJsonHelper.java @@ -210,7 +210,7 @@ public void record(ProgressReporterJsonHelper helper, Object value) { } else if (value instanceof Long v) { helper.putAnalysisResults(this, v); } else { - VMError.shouldNotReachHere("Imcompatible type of 'value': " + value.getClass()); + VMError.shouldNotReachHere("Incompatible type of 'value': " + value.getClass()); } } } @@ -243,7 +243,7 @@ public void record(ProgressReporterJsonHelper helper, Object value) { if (value instanceof String || value instanceof Boolean || value instanceof List || value == null) { helper.putGeneralInfo(this, value); } else { - VMError.shouldNotReachHere("Imcompatible type of 'value': " + value.getClass()); + VMError.shouldNotReachHere("Incompatible type of 'value': " + value.getClass()); } } } diff --git a/substratevm/src/com.oracle.svm.hosted/src/com/oracle/svm/hosted/annotation/SubstrateAnnotationExtractor.java b/substratevm/src/com.oracle.svm.hosted/src/com/oracle/svm/hosted/annotation/SubstrateAnnotationExtractor.java index 349bcf22fa06..d41302f04370 100644 --- a/substratevm/src/com.oracle.svm.hosted/src/com/oracle/svm/hosted/annotation/SubstrateAnnotationExtractor.java +++ b/substratevm/src/com.oracle.svm.hosted/src/com/oracle/svm/hosted/annotation/SubstrateAnnotationExtractor.java @@ -319,7 +319,7 @@ private TypeAnnotationValue[] getTypeAnnotationDataFromRoot(AnnotatedElement roo return typeAnnotationValues; } catch (IllegalArgumentException | BufferUnderflowException ex) { /* - * The byte[] arrrays in the TypeAnnotationValue are structurally correct, but have + * The byte[] arrays in the TypeAnnotationValue are structurally correct, but have * an illegal first targetInfo byte that will throw an AnnotationFormatException * during parsing. */ diff --git a/substratevm/src/com.oracle.svm.hosted/src/com/oracle/svm/hosted/c/info/ElementInfo.java b/substratevm/src/com.oracle.svm.hosted/src/com/oracle/svm/hosted/c/info/ElementInfo.java index 88e4206d0e3b..c06cf06efb2a 100644 --- a/substratevm/src/com.oracle.svm.hosted/src/com/oracle/svm/hosted/c/info/ElementInfo.java +++ b/substratevm/src/com.oracle.svm.hosted/src/com/oracle/svm/hosted/c/info/ElementInfo.java @@ -79,7 +79,7 @@ public void mergeChildrenAndDelete(ElementInfo target) { } /** - * Returns a unique identifier string for this element iif this element is a leaf node. + * Returns a unique identifier string for this element if this element is a leaf node. *

    *

    * Note: This identifier is not unique for intermediate nodes. For example the following enum diff --git a/substratevm/src/com.oracle.svm.hosted/src/com/oracle/svm/hosted/image/NativeImageBFDNameProvider.java b/substratevm/src/com.oracle.svm.hosted/src/com/oracle/svm/hosted/image/NativeImageBFDNameProvider.java index 8b6b69841020..2c6e10a96069 100644 --- a/substratevm/src/com.oracle.svm.hosted/src/com/oracle/svm/hosted/image/NativeImageBFDNameProvider.java +++ b/substratevm/src/com.oracle.svm.hosted/src/com/oracle/svm/hosted/image/NativeImageBFDNameProvider.java @@ -389,7 +389,7 @@ public String bfdMangle(String loaderName, ResolvedJavaType declaringClass, Stri * first parameter type name symbol 16java.lang.Object binds $2_ to java.lang.Object. * * Indexed symbol references are encoded as "S_", "S0_", ... "S9_", "SA_", ... "SZ_", "S10_", ... - * i.e. after "$_" for index 0, successive encodings for index i embded the base 36 digits for + * i.e. after "$_" for index 0, successive encodings for index i embed the base 36 digits for * (i - 1) between "S" and "_". */ return new BFDMangler(this).mangle(loaderName, declaringClass, memberName, methodSignature, isConstructor); @@ -617,7 +617,7 @@ private void mangleWriteSubstitutablePrefixedName(String prefix, String name) { // // However, gdb will barf on the $_ and refuse to translate the symbol // So, in order to keep gdb happy we have to avoid translating this - // final name ane emit it as a simple name e.g. with the above example + // final name and emit it as a simple name e.g. with the above example // we would generate _ZN3foo3bar3fooE. mangleWriteSimpleName(name); diff --git a/substratevm/src/com.oracle.svm.hosted/src/com/oracle/svm/hosted/image/NativeImageHeap.java b/substratevm/src/com.oracle.svm.hosted/src/com/oracle/svm/hosted/image/NativeImageHeap.java index 5e0b4651ba11..fc398c3806f5 100644 --- a/substratevm/src/com.oracle.svm.hosted/src/com/oracle/svm/hosted/image/NativeImageHeap.java +++ b/substratevm/src/com.oracle.svm.hosted/src/com/oracle/svm/hosted/image/NativeImageHeap.java @@ -761,7 +761,7 @@ private boolean addConstantArrayElements(JavaConstant array, int length, boolean boolean relocatable = otherFieldsRelocatable; for (int idx = 0; idx < length; idx++) { JavaConstant value = hConstantReflection.readArrayElement(array, idx); - /* Object replacement is done as part as constant refection. */ + /* Object replacement is done as part as constant reflection. */ if (spawnIsolates()) { relocatable = relocatable || value instanceof RelocatableConstant; } diff --git a/substratevm/src/com.oracle.svm.hosted/src/com/oracle/svm/hosted/image/sources/SourceManager.java b/substratevm/src/com.oracle.svm.hosted/src/com/oracle/svm/hosted/image/sources/SourceManager.java index a07904a260f8..b6a3704f2a7d 100644 --- a/substratevm/src/com.oracle.svm.hosted/src/com/oracle/svm/hosted/image/sources/SourceManager.java +++ b/substratevm/src/com.oracle.svm.hosted/src/com/oracle/svm/hosted/image/sources/SourceManager.java @@ -146,7 +146,7 @@ private static String computePackageName(ResolvedJavaType javaType) { * * @param fileName the base file name for the source file * @param packageName the name of the package for the associated Java class - * @return a protoype name for the source file + * @return a prototype name for the source file */ private static Path computePrototypeName(String fileName, String packageName) { if (packageName.length() == 0) { diff --git a/substratevm/src/com.oracle.svm.hosted/src/com/oracle/svm/hosted/imagelayer/LoadImageSingletonFeature.java b/substratevm/src/com.oracle.svm.hosted/src/com/oracle/svm/hosted/imagelayer/LoadImageSingletonFeature.java index 7f76723acf0a..7cc554229560 100644 --- a/substratevm/src/com.oracle.svm.hosted/src/com/oracle/svm/hosted/imagelayer/LoadImageSingletonFeature.java +++ b/substratevm/src/com.oracle.svm.hosted/src/com/oracle/svm/hosted/imagelayer/LoadImageSingletonFeature.java @@ -87,7 +87,7 @@ import jdk.vm.ci.meta.ResolvedJavaMethod; /** - * Tracks metdata {@link MultiLayeredImageSingleton} and {@link ApplicationLayerOnlyImageSingleton} + * Tracks metadata {@link MultiLayeredImageSingleton} and {@link ApplicationLayerOnlyImageSingleton} * singletons so that they can be properly referenced as needed. */ @AutomaticallyRegisteredFeature diff --git a/substratevm/src/com.oracle.svm.hosted/src/com/oracle/svm/hosted/jdk/JDKInitializationFeature.java b/substratevm/src/com.oracle.svm.hosted/src/com/oracle/svm/hosted/jdk/JDKInitializationFeature.java index 36d623b93fa4..592baf6c841d 100644 --- a/substratevm/src/com.oracle.svm.hosted/src/com/oracle/svm/hosted/jdk/JDKInitializationFeature.java +++ b/substratevm/src/com.oracle.svm.hosted/src/com/oracle/svm/hosted/jdk/JDKInitializationFeature.java @@ -80,7 +80,7 @@ public void afterRegistration(AfterRegistrationAccess access) { * deadlock/fail when initialization is started at the "wrong part" of the cycle. * Force-initializing the correct class of the cycle here, in addition to the * "whole package" initialization above, breaks the cycle because it triggers immediate - * initilalization here before the static analysis is started. + * initialization here before the static analysis is started. */ rci.initializeAtBuildTime("jdk.xml.internal.JdkXmlUtils", JDK_CLASS_REASON); diff --git a/substratevm/src/com.oracle.svm.hosted/src/com/oracle/svm/hosted/jni/JNIAccessFeature.java b/substratevm/src/com.oracle.svm.hosted/src/com/oracle/svm/hosted/jni/JNIAccessFeature.java index 1faf781e3323..fc4ae830f0d3 100644 --- a/substratevm/src/com.oracle.svm.hosted/src/com/oracle/svm/hosted/jni/JNIAccessFeature.java +++ b/substratevm/src/com.oracle.svm.hosted/src/com/oracle/svm/hosted/jni/JNIAccessFeature.java @@ -483,7 +483,7 @@ private JNIJavaCallVariantWrapperGroup createJavaCallVariantWrappers(DuringAnaly CEntryPointData unpublished = CEntryPointData.createCustomUnpublished(); wrappers.forEach(wrapper -> { AnalysisMethod analysisWrapper = access.getUniverse().lookup(wrapper); - access.getBigBang().addRootMethod(analysisWrapper, true, "Registerd in " + JNIAccessFeature.class); + access.getBigBang().addRootMethod(analysisWrapper, true, "Registered in " + JNIAccessFeature.class); analysisWrapper.registerAsEntryPoint(unpublished); // ensures C calling convention }); return new JNIJavaCallVariantWrapperGroup(varargs, array, valist); diff --git a/substratevm/src/com.oracle.svm.hosted/src/com/oracle/svm/hosted/phases/SharedGraphBuilderPhase.java b/substratevm/src/com.oracle.svm.hosted/src/com/oracle/svm/hosted/phases/SharedGraphBuilderPhase.java index 2f95858e9d75..e444713d1374 100644 --- a/substratevm/src/com.oracle.svm.hosted/src/com/oracle/svm/hosted/phases/SharedGraphBuilderPhase.java +++ b/substratevm/src/com.oracle.svm.hosted/src/com/oracle/svm/hosted/phases/SharedGraphBuilderPhase.java @@ -1083,7 +1083,7 @@ private Object loadConstantDynamic(int cpi, int opcode) { * invoking class. Unfortunately, it also force-initializes the invoking class. * Therefore, we cannot just treat it as "safe at build time". The class * initialization is also completely useless because the invoking class must be - * already initialized by the time the boostrap method is executed. + * already initialized by the time the bootstrap method is executed. * * We replicate the implementation of the bootstrap method here without doing * the class initialization. @@ -1372,7 +1372,7 @@ protected Object resolveLinkedObject(int bci, int cpi, int opcode, BootstrapMeth private void addArgument(boolean isVarargs, ValueNode[] arguments, int i, ValueNode currentNode) { if (isVarargs && i >= arguments.length - 1) { - VMError.guarantee(currentNode.getStackKind() == JavaKind.Object, "Must have an Object value to store into an Objet[] array: %s at index %s", currentNode, i); + VMError.guarantee(currentNode.getStackKind() == JavaKind.Object, "Must have an Object value to store into an Object[] array: %s at index %s", currentNode, i); StoreIndexedNode storeIndexedNode = append(new StoreIndexedNode(arguments[arguments.length - 1], ConstantNode.forInt(i + 1 - arguments.length, getGraph()), null, null, JavaKind.Object, currentNode)); storeIndexedNode.setStateAfter(createFrameState(stream.nextBCI(), storeIndexedNode)); diff --git a/substratevm/src/com.oracle.svm.hosted/src/com/oracle/svm/hosted/substitute/AnnotationSubstitutionProcessor.java b/substratevm/src/com.oracle.svm.hosted/src/com/oracle/svm/hosted/substitute/AnnotationSubstitutionProcessor.java index 053253ff5f74..b102d2f9a8f8 100644 --- a/substratevm/src/com.oracle.svm.hosted/src/com/oracle/svm/hosted/substitute/AnnotationSubstitutionProcessor.java +++ b/substratevm/src/com.oracle.svm.hosted/src/com/oracle/svm/hosted/substitute/AnnotationSubstitutionProcessor.java @@ -444,7 +444,7 @@ private void handleMethodInAliasClass(Executable annotatedMethod, Class origi int modifiers = original.getModifiers(); if (Modifier.isProtected(modifiers) || Modifier.isPublic(modifiers)) { String format = "Detected a public or protected method annotated with @Delete: %s. " + - "Such usages of @Delete are not permited since these methods can be called " + + "Such usages of @Delete are not permitted since these methods can be called " + "from third party code and can lead to unsupported features. " + "Instead the method should be replaced with a @Substitute method and `throw VMError.unsupportedFeature()`."; throw UserError.abort(format, annotatedMethod); @@ -943,12 +943,12 @@ private static boolean isIncluded(TargetElement targetElementAnnotation, Class void register(Map substitutions, T annotated, T original, T target) { if (annotated != null) { guarantee(!substitutions.containsKey(annotated) || substitutions.get(annotated).equals(original) || substitutions.get(annotated).equals(target), - "Substition: %s -> %s conflicts with previously registered: %s", annotated, target, substitutions.get(annotated)); + "Substitution: %s -> %s conflicts with previously registered: %s", annotated, target, substitutions.get(annotated)); substitutions.put(annotated, target); } if (original != null) { guarantee(!substitutions.containsKey(original) || substitutions.get(original).equals(original) || substitutions.get(original).equals(target), - "Substition: %s -> %s conflicts with previously registered: %s", original, target, substitutions.get(original)); + "Substitution: %s -> %s conflicts with previously registered: %s", original, target, substitutions.get(original)); substitutions.put(original, target); } } diff --git a/substratevm/src/com.oracle.svm.hosted/src/com/oracle/svm/hosted/substitute/AutomaticUnsafeTransformationSupport.java b/substratevm/src/com.oracle.svm.hosted/src/com/oracle/svm/hosted/substitute/AutomaticUnsafeTransformationSupport.java index 5d6e5d705dd3..585f27b0eb5e 100644 --- a/substratevm/src/com.oracle.svm.hosted/src/com/oracle/svm/hosted/substitute/AutomaticUnsafeTransformationSupport.java +++ b/substratevm/src/com.oracle.svm.hosted/src/com/oracle/svm/hosted/substitute/AutomaticUnsafeTransformationSupport.java @@ -843,7 +843,7 @@ private boolean isAllowedUnsafeValueSink(Node valueNodeUsage) { /* * Passing the value as a parameter to certain methods, like Unsafe methods that read * and write memory based on it, is allowed. Passing an unsafe value as a parameter is - * sound as long as the called method doesn't propagate the value to a dissalowed usage, + * sound as long as the called method doesn't propagate the value to a disallowed usage, * e.g., like a store to a field that we would then miss. */ MethodCallTargetNode methodCallTarget = (MethodCallTargetNode) valueNodeUsage; diff --git a/substratevm/src/com.oracle.svm.hosted/src/com/oracle/svm/hosted/substitute/DeletedMethod.java b/substratevm/src/com.oracle.svm.hosted/src/com/oracle/svm/hosted/substitute/DeletedMethod.java index 8c698dacf7b2..302b4f62ad4e 100644 --- a/substratevm/src/com.oracle.svm.hosted/src/com/oracle/svm/hosted/substitute/DeletedMethod.java +++ b/substratevm/src/com.oracle.svm.hosted/src/com/oracle/svm/hosted/substitute/DeletedMethod.java @@ -71,7 +71,7 @@ public AnnotationValue[] getInjectedAnnotations() { @Override public int getModifiers() { /* - * We remove the synchonized modifier because our manually constructed graph does not need + * We remove the synchronized modifier because our manually constructed graph does not need * to do synchronization (since it is reporting a fatal error anyway). */ return original.getModifiers() & ~Modifier.SYNCHRONIZED; diff --git a/substratevm/src/com.oracle.svm.hosted/src/com/oracle/svm/hosted/substitute/PolymorphicSignatureWrapperMethod.java b/substratevm/src/com.oracle.svm.hosted/src/com/oracle/svm/hosted/substitute/PolymorphicSignatureWrapperMethod.java index 51dfc32641c1..3d1ce3d01bfb 100644 --- a/substratevm/src/com.oracle.svm.hosted/src/com/oracle/svm/hosted/substitute/PolymorphicSignatureWrapperMethod.java +++ b/substratevm/src/com.oracle.svm.hosted/src/com/oracle/svm/hosted/substitute/PolymorphicSignatureWrapperMethod.java @@ -137,7 +137,7 @@ public StructuredGraph buildGraph(DebugContext debug, AnalysisMethod method, Hos * bits of the Integer are not guaranteed to be zero. * * The only return types worth considering are Short, Int and Long. A Long return - * type will always be wide enough to accomodate the full original value. In the + * type will always be wide enough to accommodate the full original value. In the * case of a Byte return type, there is no need to worry about this since the result * can only be truncated. In the Char case, the method handle invocation will return * a WrongMethodTypeException when trying to call a method handle with a boolean or diff --git a/substratevm/src/com.oracle.svm.hosted/src/com/oracle/svm/hosted/thread/VMThreadFeature.java b/substratevm/src/com.oracle.svm.hosted/src/com/oracle/svm/hosted/thread/VMThreadFeature.java index 30efae276d8b..f5bae6b46320 100644 --- a/substratevm/src/com.oracle.svm.hosted/src/com/oracle/svm/hosted/thread/VMThreadFeature.java +++ b/substratevm/src/com.oracle.svm.hosted/src/com/oracle/svm/hosted/thread/VMThreadFeature.java @@ -103,7 +103,7 @@ public void duringSetup(DuringSetupAccess config) { *

    * When the {@link IsolateThread} is not passed in as a parameter, we use the * {@link LoadVMThreadLocalNode current thread}. We do not need read/write barriers since we - * access memory that we manage ourselfs. + * access memory that we manage ourselves. */ @Override public void registerInvocationPlugins(Providers providers, Plugins plugins, ParsingReason reason) { diff --git a/substratevm/src/com.oracle.svm.jvmtiagentbase/src/com/oracle/svm/jvmtiagentbase/JvmtiAgentBase.java b/substratevm/src/com.oracle.svm.jvmtiagentbase/src/com/oracle/svm/jvmtiagentbase/JvmtiAgentBase.java index 2d1352d9be65..160e2e28e358 100644 --- a/substratevm/src/com.oracle.svm.jvmtiagentbase/src/com/oracle/svm/jvmtiagentbase/JvmtiAgentBase.java +++ b/substratevm/src/com.oracle.svm.jvmtiagentbase/src/com/oracle/svm/jvmtiagentbase/JvmtiAgentBase.java @@ -83,7 +83,7 @@ * * Only one agent can be created in a single native image. * - * @param The class or subclass of {@link JNIHandleSet} containg the JNI handles this agent + * @param The class or subclass of {@link JNIHandleSet} containing the JNI handles this agent * requires. */ @SuppressWarnings({"JavadocReference", "try"}) @@ -235,7 +235,7 @@ public static int onLoad(JNIJavaVM vm, CCharPointer options, @SuppressWarnings(" } /** - * Releases all global JNI references and resources aquired by the framework. + * Releases all global JNI references and resources acquired by the framework. * * This function may only be called once and must be called from the {@link #onUnloadCallback}. * During the call to unload some JVMTI event handlers may still be running. As such, it is diff --git a/substratevm/src/com.oracle.svm.native.libchelper/src/getEnviron.c b/substratevm/src/com.oracle.svm.native.libchelper/src/getEnviron.c index ae3af0c968df..7b4bc0594b7e 100644 --- a/substratevm/src/com.oracle.svm.native.libchelper/src/getEnviron.c +++ b/substratevm/src/com.oracle.svm.native.libchelper/src/getEnviron.c @@ -70,7 +70,7 @@ char **getEnviron() { numChars++; } - // Duplcate the env strings + // Duplicate the env strings p = envptr = malloc((numStrings+1)*sizeof(char *)); env = malloc(numChars); memcpy(env, lpvEnv, numChars); diff --git a/substratevm/src/com.oracle.svm.native.libcontainer/src/hotspot/os/linux/cgroupSubsystem_linux.hpp b/substratevm/src/com.oracle.svm.native.libcontainer/src/hotspot/os/linux/cgroupSubsystem_linux.hpp index b3dba40f0fbd..4f505536ef4c 100644 --- a/substratevm/src/com.oracle.svm.native.libcontainer/src/hotspot/os/linux/cgroupSubsystem_linux.hpp +++ b/substratevm/src/com.oracle.svm.native.libcontainer/src/hotspot/os/linux/cgroupSubsystem_linux.hpp @@ -138,7 +138,7 @@ class CgroupController: public CHeapObj { * for the null terminating character. Callers must ensure that the buffer * is appropriately in-scope and of sufficient size. * - * returns: false if any error occured. true otherwise and the passed + * returns: false if any error occurred. true otherwise and the passed * in buffer will contain the first buf_size - 1 characters of the string * or up to the first new line character ('\n') whichever comes first. */ diff --git a/substratevm/src/com.oracle.svm.native.libcontainer/src/hotspot/os/linux/osContainer_linux.cpp b/substratevm/src/com.oracle.svm.native.libcontainer/src/hotspot/os/linux/osContainer_linux.cpp index 3dbafec1edf8..2dcfca39e405 100644 --- a/substratevm/src/com.oracle.svm.native.libcontainer/src/hotspot/os/linux/osContainer_linux.cpp +++ b/substratevm/src/com.oracle.svm.native.libcontainer/src/hotspot/os/linux/osContainer_linux.cpp @@ -65,7 +65,7 @@ void OSContainer::init() { /* * In order to avoid a false positive on is_containerized() on * Linux systems outside a container *and* to ensure compatibility - * with in-container usage, we detemine is_containerized() by two + * with in-container usage, we determine is_containerized() by two * steps: * 1.) Determine if all the cgroup controllers are mounted read only. * If yes, is_containerized() == true. Otherwise, do the fallback diff --git a/substratevm/src/com.oracle.svm.native.libcontainer/src/hotspot/os/linux/os_linux.cpp b/substratevm/src/com.oracle.svm.native.libcontainer/src/hotspot/os/linux/os_linux.cpp index bd3f1956e551..e9de111d490d 100644 --- a/substratevm/src/com.oracle.svm.native.libcontainer/src/hotspot/os/linux/os_linux.cpp +++ b/substratevm/src/com.oracle.svm.native.libcontainer/src/hotspot/os/linux/os_linux.cpp @@ -3335,7 +3335,7 @@ size_t os::Linux::default_guard_size(os::ThreadType thr_type) { // The result of that sequence are thread stacks that are fully paged-in even though the // threads did not even start yet. // We prevent that by letting the glibc allocate a guard page, which causes a VMA with different - // permission bits to separate two ajacent thread stacks and therefore prevent merging stacks + // permission bits to separate two adjacent thread stacks and therefore prevent merging stacks // into one VMA. // // Yes, this means we have two guard sections - the glibc and the JVM one - per thread. But the @@ -3573,7 +3573,7 @@ static address get_stack_commited_bottom(address bottom, size_t size) { // We only need this for stacks that are growable: at the time of // writing thread stacks don't use growable mappings (i.e. those -// creeated with MAP_GROWSDOWN), and aren't marked "[stack]", so this +// created with MAP_GROWSDOWN), and aren't marked "[stack]", so this // only applies to the main thread. // If the (growable) stack mapping already extends beyond the point diff --git a/substratevm/src/com.oracle.svm.native.libcontainer/src/hotspot/share/runtime/os.cpp b/substratevm/src/com.oracle.svm.native.libcontainer/src/hotspot/share/runtime/os.cpp index 8413073a301b..4a7cd9429886 100644 --- a/substratevm/src/com.oracle.svm.native.libcontainer/src/hotspot/share/runtime/os.cpp +++ b/substratevm/src/com.oracle.svm.native.libcontainer/src/hotspot/share/runtime/os.cpp @@ -1990,7 +1990,7 @@ char* os::attempt_reserve_memory_between(char* min, char* max, size_t bytes, siz // Please keep the following constants in sync with the companion gtests: - // Number of mmap attemts we will undertake. + // Number of mmap attempts we will undertake. constexpr unsigned max_attempts = 32; // In randomization mode: We require a minimum number of possible attach points for @@ -2086,7 +2086,7 @@ char* os::attempt_reserve_memory_between(char* min, char* max, size_t bytes, siz if (num_attach_points < total_shuffle_threshold) { // 3: - // The numeber of possible attach points is too low for the "wiggle" from + // The number of possible attach points is too low for the "wiggle" from // point 2 to be enough to provide randomization. In that case, shuffle // all attach points at the cost of possible fragmentation (e.g. if we // end up mapping into the middle of the range). @@ -2097,7 +2097,7 @@ char* os::attempt_reserve_memory_between(char* min, char* max, size_t bytes, siz // goal without. In that case, we optimize probing by sorting the attach // points: We attempt outermost points first, then work ourselves up to // the middle. That reduces address space fragmentation. We also alternate - // hemispheres, which increases the chance of successfull mappings if the + // hemispheres, which increases the chance of successful mappings if the // previous mapping had been blocked by large maps. hemi_split(points, num_attempts); } @@ -2143,7 +2143,7 @@ char* os::attempt_reserve_memory_between(char* min, char* max, size_t bytes, siz assert((result + bytes) <= absolute_max, "OOB vm.map max (" ERRFMT ")", ERRFMTARGS); assert(is_aligned(result, alignment), "alignment invalid (" ERRFMT ")", ERRFMTARGS); log_trace(os, map)(ERRFMT, ERRFMTARGS); - log_debug(os, map)("successfully attached at " PTR_FORMAT, p2i(result)); + log_debug(os, map)("successfuly attached at " PTR_FORMAT, p2i(result)); MemTracker::record_virtual_memory_reserve((address)result, bytes, CALLER_PC); } else { log_debug(os, map)("failed to attach anywhere in [" PTR_FORMAT "-" PTR_FORMAT ")", p2i(min), p2i(max)); diff --git a/substratevm/src/com.oracle.svm.test/src/com/oracle/svm/test/NativeImageResourceFileSystemProviderTest.java b/substratevm/src/com.oracle.svm.test/src/com/oracle/svm/test/NativeImageResourceFileSystemProviderTest.java index 022782f493fa..46ba66bccd97 100644 --- a/substratevm/src/com.oracle.svm.test/src/com/oracle/svm/test/NativeImageResourceFileSystemProviderTest.java +++ b/substratevm/src/com.oracle.svm.test/src/com/oracle/svm/test/NativeImageResourceFileSystemProviderTest.java @@ -535,8 +535,8 @@ public void writingNewFileOutputStream() { // 3. Reading in the new file. try (InputStream inputStream = Files.newInputStream(newResource, StandardOpenOption.READ)) { String content = new String(inputStream.readAllBytes()); - Assert.assertTrue("Nothing has been writen into file!", content.length() > 0); - Assert.assertTrue("Content has been writen into file improperly!", content.startsWith("test string#")); + Assert.assertTrue("Nothing has been written into file!", content.length() > 0); + Assert.assertTrue("Content has been written into file improperly!", content.startsWith("test string#")); } catch (IOException ioException) { Assert.fail("Exception occurs during writing into file!"); } @@ -559,8 +559,8 @@ private static void writeInChannelAndCheck(SeekableByteChannel channel) throws I channel.position(0); channel.read(byteBuffer2); String content = new String(byteBuffer2.array()); - Assert.assertTrue("Nothing has been writen into file!", content.length() > 0); - Assert.assertTrue("Content has been writen into file improperly!", content.startsWith("test string#")); + Assert.assertTrue("Nothing has been written into file!", content.length() > 0); + Assert.assertTrue("Content has been written into file improperly!", content.startsWith("test string#")); } private Path copyFile(Path resourceFile1, Path newDirectory) { diff --git a/substratevm/src/com.oracle.svm.truffle.tck/src/com/oracle/svm/truffle/tck/resources/jre.json b/substratevm/src/com.oracle.svm.truffle.tck/src/com/oracle/svm/truffle/tck/resources/jre.json index cbd731ad5a85..d85e2c886351 100644 --- a/substratevm/src/com.oracle.svm.truffle.tck/src/com/oracle/svm/truffle/tck/resources/jre.json +++ b/substratevm/src/com.oracle.svm.truffle.tck/src/com/oracle/svm/truffle/tck/resources/jre.json @@ -89,7 +89,7 @@ "name" : "java.util.concurrent.FutureTask", "methods" : [ { "name" : "cancel" , - "justification" : "Interrups the executor threads to cancel execution of FutureTask.", + "justification" : "Interrupts the executor threads to cancel execution of FutureTask.", "parameterTypes" : [ "boolean" ]} diff --git a/substratevm/src/com.oracle.svm.truffle/src/com/oracle/svm/truffle/api/SubstrateThreadLocalHandshake.java b/substratevm/src/com.oracle.svm.truffle/src/com/oracle/svm/truffle/api/SubstrateThreadLocalHandshake.java index a6437c397ff1..95cabdd41618 100644 --- a/substratevm/src/com.oracle.svm.truffle/src/com/oracle/svm/truffle/api/SubstrateThreadLocalHandshake.java +++ b/substratevm/src/com.oracle.svm.truffle/src/com/oracle/svm/truffle/api/SubstrateThreadLocalHandshake.java @@ -122,7 +122,7 @@ private static void pollStub(Object location) throws Throwable { } } - @Uninterruptible(reason = "Used both from uninterruptable stub.", calleeMustBe = false) + @Uninterruptible(reason = "Used both from uninterruptible stub.", calleeMustBe = false) @RestrictHeapAccess(reason = "Callee may allocate", access = RestrictHeapAccess.Access.UNRESTRICTED) private static void invokeProcessHandshake(Object enclosingNode) { SINGLETON.processHandshake((Node) enclosingNode); diff --git a/substratevm/src/com.oracle.svm.truffle/src/com/oracle/svm/truffle/isolated/BinaryInput.java b/substratevm/src/com.oracle.svm.truffle/src/com/oracle/svm/truffle/isolated/BinaryInput.java index f5ca95856086..c3f10248c8de 100644 --- a/substratevm/src/com.oracle.svm.truffle/src/com/oracle/svm/truffle/isolated/BinaryInput.java +++ b/substratevm/src/com.oracle.svm.truffle/src/com/oracle/svm/truffle/isolated/BinaryInput.java @@ -45,7 +45,7 @@ import org.graalvm.nativeimage.c.type.CTypeConversion; /** - * Copy from native-bridge to avoid depenency from now. Keep in sync with native-bridge. + * Copy from native-bridge to avoid dependency from now. Keep in sync with native-bridge. */ abstract class BinaryInput { diff --git a/substratevm/src/com.oracle.svm.truffle/src/com/oracle/svm/truffle/isolated/BinaryOutput.java b/substratevm/src/com.oracle.svm.truffle/src/com/oracle/svm/truffle/isolated/BinaryOutput.java index fa12e30c4b82..88ff8a252215 100644 --- a/substratevm/src/com.oracle.svm.truffle/src/com/oracle/svm/truffle/isolated/BinaryOutput.java +++ b/substratevm/src/com.oracle.svm.truffle/src/com/oracle/svm/truffle/isolated/BinaryOutput.java @@ -35,7 +35,7 @@ import org.graalvm.word.WordFactory; /** - * Copy from native-bridge to avoid depenency from now. Keep in sync with native-bridge. + * Copy from native-bridge to avoid dependency from now. Keep in sync with native-bridge. */ abstract class BinaryOutput { diff --git a/sulong/THIRD_PARTY_LICENSE.txt b/sulong/THIRD_PARTY_LICENSE.txt index ec260e853180..fc4d71e9a3d5 100644 --- a/sulong/THIRD_PARTY_LICENSE.txt +++ b/sulong/THIRD_PARTY_LICENSE.txt @@ -713,7 +713,7 @@ under the standard MIT terms. All other files which have no copyright comments are original works produced specifically for use as part of this library, written either by Rich Felker, the main author of the library, or by one or more -contibutors listed above. Details on authorship of individual files +contributors listed above. Details on authorship of individual files can be found in the git version control history of the project. The omission of copyright and license comments in each file is in the interest of source tree size. diff --git a/sulong/mx.sulong/suite.py b/sulong/mx.sulong/suite.py index d991920b5d13..8c1420ca7906 100644 --- a/sulong/mx.sulong/suite.py +++ b/sulong/mx.sulong/suite.py @@ -1145,7 +1145,7 @@ # tests in the project (difference in behavior between O0 and # O1). This issue is related to the vstore.ll.ignored test in # that we should fix it once we have a solution for the general - # issue in exeuction mistmatches. Until then the Sulong behavior + # issue in execution mismatches. Until then the Sulong behavior # is the more accurate one. "variants" : ["bitcode-O0"], "fileExts" : [".ll"], diff --git a/sulong/projects/com.oracle.truffle.llvm.libraries.bitcode/CMakeLists.txt b/sulong/projects/com.oracle.truffle.llvm.libraries.bitcode/CMakeLists.txt index 6b74ef800bde..45bb96c47ba7 100644 --- a/sulong/projects/com.oracle.truffle.llvm.libraries.bitcode/CMakeLists.txt +++ b/sulong/projects/com.oracle.truffle.llvm.libraries.bitcode/CMakeLists.txt @@ -41,7 +41,7 @@ function(check_var var) require_var(${var}) endfunction() -# set variable from environement variable if the latter exists +# set variable from environment variable if the latter exists function(setFromEnv varname envname) if(DEFINED ENV{${envname}}) set(${varname} $ENV{${envname}} PARENT_SCOPE) diff --git a/sulong/projects/com.oracle.truffle.llvm.libraries.graalvm.llvm/include/graalvm/llvm/polyglot.h b/sulong/projects/com.oracle.truffle.llvm.libraries.graalvm.llvm/include/graalvm/llvm/polyglot.h index 673a50eb0726..5f52a64576fc 100644 --- a/sulong/projects/com.oracle.truffle.llvm.libraries.graalvm.llvm/include/graalvm/llvm/polyglot.h +++ b/sulong/projects/com.oracle.truffle.llvm.libraries.graalvm.llvm/include/graalvm/llvm/polyglot.h @@ -398,7 +398,7 @@ bool polyglot_has_members(const polyglot_value value); * Check whether a polyglot value contains a given named member. * * @param object the polyglot value to test - * @param name the name of the member to be checked for existance + * @param name the name of the member to be checked for existence * @return true if the member exists, false otherwise */ bool polyglot_has_member(const polyglot_value value, const char *name); diff --git a/sulong/projects/com.oracle.truffle.llvm.parser/src/com/oracle/truffle/llvm/parser/macho/MachOFile.java b/sulong/projects/com.oracle.truffle.llvm.parser/src/com/oracle/truffle/llvm/parser/macho/MachOFile.java index 65e1c5344ca6..c9f57e0ad416 100644 --- a/sulong/projects/com.oracle.truffle.llvm.parser/src/com/oracle/truffle/llvm/parser/macho/MachOFile.java +++ b/sulong/projects/com.oracle.truffle.llvm.parser/src/com/oracle/truffle/llvm/parser/macho/MachOFile.java @@ -50,7 +50,7 @@ public final class MachOFile { private static final int MH_OBJECT = 0x1; /* relocatable object file */ private static final int MH_EXECUTE = 0x2; /* demand paged executable file */ private static final int MH_DYLIB = 0x6; /* dynamically bound shared library */ - private static final int MH_BUNDLE = 0x8; /* dynamicly bound bundle file */ + private static final int MH_BUNDLE = 0x8; /* dynamiclly bound bundle file */ // currently unused types: @SuppressWarnings("unused") private static final int MH_FVMLIB = 0x3; diff --git a/sulong/projects/com.oracle.truffle.llvm.parser/src/com/oracle/truffle/llvm/parser/model/enums/UnaryOperator.java b/sulong/projects/com.oracle.truffle.llvm.parser/src/com/oracle/truffle/llvm/parser/model/enums/UnaryOperator.java index 564f76e75ebc..6d45198dfb3a 100644 --- a/sulong/projects/com.oracle.truffle.llvm.parser/src/com/oracle/truffle/llvm/parser/model/enums/UnaryOperator.java +++ b/sulong/projects/com.oracle.truffle.llvm.parser/src/com/oracle/truffle/llvm/parser/model/enums/UnaryOperator.java @@ -39,7 +39,7 @@ public static UnaryOperator decode(int opcode) { if (opcode < VALUES.length) { return VALUES[opcode]; } else { - throw new UnsupportedOperationException("Unknow scalar unary opcode: " + opcode); + throw new UnsupportedOperationException("Unknown scalar unary opcode: " + opcode); } } diff --git a/sulong/projects/com.oracle.truffle.llvm.runtime/src/com/oracle/truffle/llvm/runtime/LLVMSymbol.java b/sulong/projects/com.oracle.truffle.llvm.runtime/src/com/oracle/truffle/llvm/runtime/LLVMSymbol.java index db740353174d..6c16f74ccf73 100644 --- a/sulong/projects/com.oracle.truffle.llvm.runtime/src/com/oracle/truffle/llvm/runtime/LLVMSymbol.java +++ b/sulong/projects/com.oracle.truffle.llvm.runtime/src/com/oracle/truffle/llvm/runtime/LLVMSymbol.java @@ -108,7 +108,7 @@ public final int getSymbolIndexUncached() throws LLVMIllegalSymbolIndexException /** * Get the unique module ID for the symbol. The ID is assigned during parsing. The module ID is - * unqiue per bitcode file. Symbols that are not created from parsing or that are alias have the + * unique per bitcode file. Symbols that are not created from parsing or that are alias have the * value of null. */ public final BitcodeID getBitcodeIDIllegalOk() { @@ -117,7 +117,7 @@ public final BitcodeID getBitcodeIDIllegalOk() { /** * Get the unique module ID for the symbol. The ID is assigned during parsing. The module ID is - * unqiue per bitcode file. Symbols that are not created from parsing or that are alias throw an + * unique per bitcode file. Symbols that are not created from parsing or that are alias throw an * {@link LLVMIllegalSymbolIndexException}. * * @param exception a {@link BranchProfile} for the exception case @@ -132,7 +132,7 @@ public final BitcodeID getBitcodeID(BranchProfile exception) throws LLVMIllegalS /** * Get the unique module ID for the symbol. The ID is assigned during parsing. The module ID is - * unqiue per bitcode file. Symbols that are not created from parsing or that are alias throw an + * unique per bitcode file. Symbols that are not created from parsing or that are alias throw an * {@link LLVMIllegalSymbolIndexException}. * * This function does not profile the exception case, and can not be used from compiled code. diff --git a/sulong/projects/com.oracle.truffle.llvm.runtime/src/com/oracle/truffle/llvm/runtime/interop/access/LLVMInteropAccessNode.java b/sulong/projects/com.oracle.truffle.llvm.runtime/src/com/oracle/truffle/llvm/runtime/interop/access/LLVMInteropAccessNode.java index 84f8f5db9448..321ca586e403 100644 --- a/sulong/projects/com.oracle.truffle.llvm.runtime/src/com/oracle/truffle/llvm/runtime/interop/access/LLVMInteropAccessNode.java +++ b/sulong/projects/com.oracle.truffle.llvm.runtime/src/com/oracle/truffle/llvm/runtime/interop/access/LLVMInteropAccessNode.java @@ -181,7 +181,7 @@ AccessLocation doRecursiveArray(Object foreign, long index, LLVMInteropType.Stru throw new LLVMPolyglotException(this, "Invalid array index %d", index); } catch (UnsupportedMessageException ex) { notFound.enter(); - throw new LLVMPolyglotException(this, "Cannot acess array element %d", index); + throw new LLVMPolyglotException(this, "Cannot access array element %d", index); } return recursive.execute(type, inner, restOffset); diff --git a/sulong/projects/com.oracle.truffle.llvm.runtime/src/com/oracle/truffle/llvm/runtime/nodes/control/LLVMDispatchBasicBlockNode.java b/sulong/projects/com.oracle.truffle.llvm.runtime/src/com/oracle/truffle/llvm/runtime/nodes/control/LLVMDispatchBasicBlockNode.java index 1491c5f33aab..0095f17f256d 100644 --- a/sulong/projects/com.oracle.truffle.llvm.runtime/src/com/oracle/truffle/llvm/runtime/nodes/control/LLVMDispatchBasicBlockNode.java +++ b/sulong/projects/com.oracle.truffle.llvm.runtime/src/com/oracle/truffle/llvm/runtime/nodes/control/LLVMDispatchBasicBlockNode.java @@ -371,7 +371,7 @@ public final Object executeOSR(VirtualFrame osrFrame, int target, Object interpr @Override public final Object[] storeParentFrameInArguments(VirtualFrame parentFrame) { /* - * We need to forward the argumnts array since it might be used by va_start. + * We need to forward the arguments array since it might be used by va_start. */ Object[] args = parentFrame.getArguments(); /* diff --git a/sulong/projects/com.oracle.truffle.llvm.runtime/src/com/oracle/truffle/llvm/runtime/nodes/op/LLVMPointerMaskNode.java b/sulong/projects/com.oracle.truffle.llvm.runtime/src/com/oracle/truffle/llvm/runtime/nodes/op/LLVMPointerMaskNode.java index a4b9305fc92c..eab70e1a2274 100644 --- a/sulong/projects/com.oracle.truffle.llvm.runtime/src/com/oracle/truffle/llvm/runtime/nodes/op/LLVMPointerMaskNode.java +++ b/sulong/projects/com.oracle.truffle.llvm.runtime/src/com/oracle/truffle/llvm/runtime/nodes/op/LLVMPointerMaskNode.java @@ -50,7 +50,7 @@ LLVMNativePointer doNative(LLVMNativePointer ptr, long mask) { @Specialization LLVMManagedPointer doManaged(LLVMManagedPointer ptr, long mask) { /* - * Managed pointer are assumed to be "inifinitely aligned", so we only mask the offset part + * Managed pointer are assumed to be "infinitely aligned", so we only mask the offset part * of the pointer. */ return LLVMManagedPointer.create(ptr.getObject(), ptr.getOffset() & mask); diff --git a/sulong/projects/com.oracle.truffle.llvm.toolchain.launchers/src/com/oracle/truffle/llvm/toolchain/launchers/darwin/DarwinLinker.java b/sulong/projects/com.oracle.truffle.llvm.toolchain.launchers/src/com/oracle/truffle/llvm/toolchain/launchers/darwin/DarwinLinker.java index 30e2122e3b16..237db6fed0eb 100644 --- a/sulong/projects/com.oracle.truffle.llvm.toolchain.launchers/src/com/oracle/truffle/llvm/toolchain/launchers/darwin/DarwinLinker.java +++ b/sulong/projects/com.oracle.truffle.llvm.toolchain.launchers/src/com/oracle/truffle/llvm/toolchain/launchers/darwin/DarwinLinker.java @@ -115,7 +115,7 @@ static void runDriverWithSaveTemps(Driver driver, List sulongArgs, List< } } } - // Do not call System.exit from withing the try block, otherwise finally is not executed + // Do not call System.exit from within the try block, otherwise finally is not executed System.exit(returnCode); } diff --git a/sulong/projects/com.oracle.truffle.llvm/src/com/oracle/truffle/llvm/initialization/InitializeExternalNode.java b/sulong/projects/com.oracle.truffle.llvm/src/com/oracle/truffle/llvm/initialization/InitializeExternalNode.java index af2fa6aded35..5cd4415b8744 100644 --- a/sulong/projects/com.oracle.truffle.llvm/src/com/oracle/truffle/llvm/initialization/InitializeExternalNode.java +++ b/sulong/projects/com.oracle.truffle.llvm/src/com/oracle/truffle/llvm/initialization/InitializeExternalNode.java @@ -62,8 +62,8 @@ * symbols of a given bitcode file. *

    * External bitcode functions will have their entry into the symbol table be replaced with the entry - * of it's corresponding defined function in the local scope, or the gloabl scope if the function is - * loaded in a previous parsing phase. Otherwise an instrinic or native function will be created if + * of it's corresponding defined function in the local scope, or the global scope if the function is + * loaded in a previous parsing phase. Otherwise an intrinsic or native function will be created if * they are available. Similarly, external global will have their entry into the symbol table be * that of the corresponding defined global symbol in the local scope. If no global of such name * exists, a native global is created if it exists in the NFI context. diff --git a/sulong/projects/com.oracle.truffle.llvm/src/com/oracle/truffle/llvm/initialization/LoadModulesNode.java b/sulong/projects/com.oracle.truffle.llvm/src/com/oracle/truffle/llvm/initialization/LoadModulesNode.java index 7a6661ce8b82..a76e09a47fec 100644 --- a/sulong/projects/com.oracle.truffle.llvm/src/com/oracle/truffle/llvm/initialization/LoadModulesNode.java +++ b/sulong/projects/com.oracle.truffle.llvm/src/com/oracle/truffle/llvm/initialization/LoadModulesNode.java @@ -314,7 +314,7 @@ private LLVMScopeChain loadModule(VirtualFrame frame, LLVMContext context) { if (LLVMLoadingPhase.ALL.isActive(phase)) { while (!que.isEmpty()) { - // Foward the tail scope chain to the latest scope chain. + // Forward the tail scope chain to the latest scope chain. while (tailLocalScopeChain != null && tailLocalScopeChain.getNext() != null) { tailLocalScopeChain = tailLocalScopeChain.getNext(); } diff --git a/sulong/tests/com.oracle.truffle.llvm.tests.cmake/SulongCommon.cmake b/sulong/tests/com.oracle.truffle.llvm.tests.cmake/SulongCommon.cmake index c3f2f6c6c823..d7f9f7392f03 100644 --- a/sulong/tests/com.oracle.truffle.llvm.tests.cmake/SulongCommon.cmake +++ b/sulong/tests/com.oracle.truffle.llvm.tests.cmake/SulongCommon.cmake @@ -37,7 +37,7 @@ function(requireVariable varname) endif() endfunction() -# set variable from environement variable if the latter exists +# set variable from environment variable if the latter exists function(setFromEnv varname envname) if(DEFINED ENV{${envname}}) set(${varname} $ENV{${envname}} PARENT_SCOPE) @@ -46,7 +46,7 @@ endfunction() # set compiler from environment variable if the latter exists # If the environment variable consists of the command + flags, -# the command will be sotred in ${compiler_var} and the rest in +# the command will be stored in ${compiler_var} and the rest in # ${flag_var}. function(setCompilerFromEnv compiler_var flag_var envname) if(DEFINED ENV{${envname}}) diff --git a/sulong/tests/com.oracle.truffle.llvm.tests.cmake/SulongTestSuite.cmake b/sulong/tests/com.oracle.truffle.llvm.tests.cmake/SulongTestSuite.cmake index 6bf09b3e15b9..fcaf389f2e93 100644 --- a/sulong/tests/com.oracle.truffle.llvm.tests.cmake/SulongTestSuite.cmake +++ b/sulong/tests/com.oracle.truffle.llvm.tests.cmake/SulongTestSuite.cmake @@ -132,7 +132,7 @@ setCompilerFromEnv(CLANGXX CMAKE_CXX_FLAGS CLANG_CXX) # Given on the current variant, the test and the dependency might be linked via different tools, # e.g., `llvm-link` for the bitcode variant or the toolchain linker for the toolchain variant. # Not all combinations of test and dependency types will work. Known to work combinations are -# *.ll tests linked with *.c files. For non-standard file extentions, the languange of the +# *.ll tests linked with *.c files. For non-standard file extensions, the language of the # dependency might need to be set manually: # set_source_files_properties(mytests/common.cmain PROPERTIES LANGUAGE C) # diff --git a/sulong/tests/com.oracle.truffle.llvm.tests.cmake/SulongTestSuiteImpl.cmake b/sulong/tests/com.oracle.truffle.llvm.tests.cmake/SulongTestSuiteImpl.cmake index 67f92db54a72..ccfa0cbbdbb2 100644 --- a/sulong/tests/com.oracle.truffle.llvm.tests.cmake/SulongTestSuiteImpl.cmake +++ b/sulong/tests/com.oracle.truffle.llvm.tests.cmake/SulongTestSuiteImpl.cmake @@ -36,7 +36,7 @@ # - `setupCompiler()`: This is called before `enableLanguage`. It should be used perform compiler setup like # setting `CMAKE_C_COMPILER` or check whether required tools are available. # - `setupOptions()`: This is called after `enableLanguage`. It is supposed to set flags that might conflict with -# `enableLanguage` (e.g. because the linked executable is not an exectable but a bitcode file). +# `enableLanguage` (e.g. because the linked executable is not an executable but a bitcode file). # # In addition, a variant configuration might define the following: # - `targetPostProcess(SOURCE TARGET OUTPUT_DIR OUTPUT)`: this can be used to post-process the build or to set source @@ -58,14 +58,14 @@ set(SULONG_MODULE_PATH "" CACHE STRING "Path for looking up cmake modules") set(CMAKE_C_FLAGS "${SULONG_C_FLAGS} ${CMAKE_C_FLAGS}") set(CMAKE_CXX_FLAGS "${SULONG_CXX_FLAGS} ${CMAKE_CXX_FLAGS}") -# ensure that LDFLAGS environement variable is respected +# ensure that LDFLAGS environment variable is respected if(DEFINED CMAKE_EXE_LINKER_FLAGS AND DEFINED ENV{LDFLAGS}) # If CMAKE_EXE_LINKER_FLAGS are set in the suite.py, the LDFLAGS environment variable is no longer used automatically. # Thus, we add it manually. string(APPEND CMAKE_EXE_LINKER_FLAGS " $ENV{LDFLAGS}") endif() -# ensure that CPPFLAGS environement variable is respected +# ensure that CPPFLAGS environment variable is respected if(DEFINED ENV{CPPFLAGS}) string(APPEND CMAKE_C_FLAGS " $ENV{CPPFLAGS}") string(APPEND CMAKE_CXX_FLAGS " $ENV{CPPFLAGS}") diff --git a/sulong/tests/com.oracle.truffle.llvm.tests.cmake/SulongTestSuiteVariantExecutable.cmake b/sulong/tests/com.oracle.truffle.llvm.tests.cmake/SulongTestSuiteVariantExecutable.cmake index 51f2c4f647a4..6aa63890a1e4 100644 --- a/sulong/tests/com.oracle.truffle.llvm.tests.cmake/SulongTestSuiteVariantExecutable.cmake +++ b/sulong/tests/com.oracle.truffle.llvm.tests.cmake/SulongTestSuiteVariantExecutable.cmake @@ -82,7 +82,7 @@ macro(setupOptions) string(APPEND CMAKE_CXX_FLAGS " -${SULONG_CURRENT_OPT_LEVEL}") elseif(SULONG_CURRENT_OPT_LEVEL) # non-empty but not in the known list - message(FATAL_ERROR "Unknonw opt-level: ${SULONG_CURRENT_OPT_LEVEL}") + message(FATAL_ERROR "Unknown opt-level: ${SULONG_CURRENT_OPT_LEVEL}") endif() if(SULONG_CURRENT_POST_OPT) diff --git a/sulong/tests/com.oracle.truffle.llvm.tests.cmake/SulongTestSuiteVariantGcc.cmake b/sulong/tests/com.oracle.truffle.llvm.tests.cmake/SulongTestSuiteVariantGcc.cmake index 4f9ed1bc042e..61a2f49184c4 100644 --- a/sulong/tests/com.oracle.truffle.llvm.tests.cmake/SulongTestSuiteVariantGcc.cmake +++ b/sulong/tests/com.oracle.truffle.llvm.tests.cmake/SulongTestSuiteVariantGcc.cmake @@ -69,7 +69,7 @@ macro(setupOptions) string(APPEND CMAKE_C_FLAGS " -${SULONG_CURRENT_OPT_LEVEL}") elseif(SULONG_CURRENT_OPT_LEVEL) # non-empty but not in the known list - message(FATAL_ERROR "Unknonw opt-level: ${SULONG_CURRENT_OPT_LEVEL}") + message(FATAL_ERROR "Unknown opt-level: ${SULONG_CURRENT_OPT_LEVEL}") endif() if(SULONG_CURRENT_POST_OPT) diff --git a/sulong/tests/com.oracle.truffle.llvm.tests.cmake/SulongTestSuiteVariantToolchain.cmake b/sulong/tests/com.oracle.truffle.llvm.tests.cmake/SulongTestSuiteVariantToolchain.cmake index 74dc59f81c79..95f22d341651 100644 --- a/sulong/tests/com.oracle.truffle.llvm.tests.cmake/SulongTestSuiteVariantToolchain.cmake +++ b/sulong/tests/com.oracle.truffle.llvm.tests.cmake/SulongTestSuiteVariantToolchain.cmake @@ -59,7 +59,7 @@ macro(setupOptions) # do nothing elseif(SULONG_CURRENT_OPT_LEVEL) # non-empty but not in the known list - message(FATAL_ERROR "Unknonw opt-level: ${SULONG_CURRENT_OPT_LEVEL}") + message(FATAL_ERROR "Unknown opt-level: ${SULONG_CURRENT_OPT_LEVEL}") endif() # verbose output to help debugging problems with the toolchain wrappers diff --git a/sulong/tests/com.oracle.truffle.llvm.tests.linker.native/dynLink/cycle/Makefile b/sulong/tests/com.oracle.truffle.llvm.tests.linker.native/dynLink/cycle/Makefile index eac23d046dad..962c942fefc7 100644 --- a/sulong/tests/com.oracle.truffle.llvm.tests.linker.native/dynLink/cycle/Makefile +++ b/sulong/tests/com.oracle.truffle.llvm.tests.linker.native/dynLink/cycle/Makefile @@ -31,7 +31,7 @@ QUIETLY$(MX_VERBOSE) = @ default: dynLink/cycle/ref.bc -# fake libB without dependecy to produce a cycle +# fake libB without dependency to produce a cycle fake/libB$(SO_EXT): dynLink/cycle/b.c dynLink/cycle/Makefile @mkdir -p $(shell dirname $@) $(QUIETLY) $(CLANG) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) $(SO_LDFLAGS) -fPIC -shared -o $@ $< diff --git a/sulong/tests/com.oracle.truffle.llvm.tests.sulong.native/c/stdlib/signal.c b/sulong/tests/com.oracle.truffle.llvm.tests.sulong.native/c/stdlib/signal.c index 701d468636a6..830535ffc297 100644 --- a/sulong/tests/com.oracle.truffle.llvm.tests.sulong.native/c/stdlib/signal.c +++ b/sulong/tests/com.oracle.truffle.llvm.tests.sulong.native/c/stdlib/signal.c @@ -72,7 +72,7 @@ int main(void) { /* second signal() failed */ return 5; } else if (handler_p == NULL) { - /* second signal() returnd NULL instead of the old handler */ + /* second signal() returned NULL instead of the old handler */ return 6; } else if (handler_p != old_handler) { /* second signal() did not return the old handler */ diff --git a/sulong/tests/com.oracle.truffle.llvm.tests.sulongcpp.native/cpp/test025.cpp b/sulong/tests/com.oracle.truffle.llvm.tests.sulongcpp.native/cpp/test025.cpp index 89f5515d2d06..dffc2e50035d 100644 --- a/sulong/tests/com.oracle.truffle.llvm.tests.sulongcpp.native/cpp/test025.cpp +++ b/sulong/tests/com.oracle.truffle.llvm.tests.sulongcpp.native/cpp/test025.cpp @@ -38,7 +38,7 @@ void bar() throw() { try { foo(); } catch (...) { - printf("Hander in bar"); + printf("Handler in bar"); } } @@ -46,7 +46,7 @@ void tar() { try { foo(); } catch (int i) { - printf("Hander in tar"); + printf("Handler in tar"); } } diff --git a/sulong/tests/com.oracle.truffle.llvm.tests.sulongcpp.native/cpp/test029.cpp b/sulong/tests/com.oracle.truffle.llvm.tests.sulongcpp.native/cpp/test029.cpp index f29183ca56e0..37b022f6d621 100644 --- a/sulong/tests/com.oracle.truffle.llvm.tests.sulongcpp.native/cpp/test029.cpp +++ b/sulong/tests/com.oracle.truffle.llvm.tests.sulongcpp.native/cpp/test029.cpp @@ -38,7 +38,7 @@ void bar() throw() { try { foo(); } catch (...) { - printf("Hander in bar"); + printf("Handler in bar"); } } diff --git a/sulong/tests/com.oracle.truffle.llvm.tests/src/com/oracle/truffle/llvm/tests/BaseSulongOnlyHarness.java b/sulong/tests/com.oracle.truffle.llvm.tests/src/com/oracle/truffle/llvm/tests/BaseSulongOnlyHarness.java index 57dd59eb00e5..a6d02167786f 100644 --- a/sulong/tests/com.oracle.truffle.llvm.tests/src/com/oracle/truffle/llvm/tests/BaseSulongOnlyHarness.java +++ b/sulong/tests/com.oracle.truffle.llvm.tests/src/com/oracle/truffle/llvm/tests/BaseSulongOnlyHarness.java @@ -53,10 +53,10 @@ public void test() throws IOException { Assert.fail("Broken unittest " + getPath() + ". Test exits with invalid value (" + sulongResult + ")."); } String testName = getPath().getFileName().toString(); - Assert.assertEquals(testName + " failed. Posix return value missmatch.", getConfiguration().expectedPosixReturn, + Assert.assertEquals(testName + " failed. Posix return value mismatch.", getConfiguration().expectedPosixReturn, sulongResult); if (getConfiguration().expectedOutput != null) { - Assert.assertEquals(testName + " failed. Output (stdout) missmatch.", getConfiguration().expectedOutput, + Assert.assertEquals(testName + " failed. Output (stdout) mismatch.", getConfiguration().expectedOutput, sulongStdOut); } } diff --git a/sulong/tests/com.oracle.truffle.llvm.tests/src/com/oracle/truffle/llvm/tests/TestCaseCollector.java b/sulong/tests/com.oracle.truffle.llvm.tests/src/com/oracle/truffle/llvm/tests/TestCaseCollector.java index b9af333d0534..bb4bcc7b0508 100644 --- a/sulong/tests/com.oracle.truffle.llvm.tests/src/com/oracle/truffle/llvm/tests/TestCaseCollector.java +++ b/sulong/tests/com.oracle.truffle.llvm.tests/src/com/oracle/truffle/llvm/tests/TestCaseCollector.java @@ -83,7 +83,7 @@ public final class TestCaseCollector { * {@link TestOptions#CONFIG_ROOT}) is used as the exclude reason. * * The {@code os_arch} subdirectory is handled specially. It can be used to implement platform - * specific excludes. This method recursivly looks for exclude files in + * specific excludes. This method recursively looks for exclude files in * {@code os_arch//} directory ({@link Platform#getOS()}, * {@link Platform#getArchitecture()}). If the {@code } or {@code } directory does not * exist, the method looks for an {@code others} directory, which serves as an {@code else} diff --git a/sulong/tests/configs/SulongSuite/os_arch/windows/amd64/exit-codes.exclude b/sulong/tests/configs/SulongSuite/os_arch/windows/amd64/exit-codes.exclude index 6fe768a4886b..5fcb6ae26fe7 100644 --- a/sulong/tests/configs/SulongSuite/os_arch/windows/amd64/exit-codes.exclude +++ b/sulong/tests/configs/SulongSuite/os_arch/windows/amd64/exit-codes.exclude @@ -1,4 +1,4 @@ -# On Windows native only the last byte/short of the exit code is guarranteed to +# On Windows native only the last byte/short of the exit code is guaranteed to # be the returned value c/main-i8.c.dir c/main-i16.c.dir \ No newline at end of file diff --git a/sulong/tests/gcc/configs/gcc.c-torture/compile/os_arch/windows/others/unsupported_long.exclude b/sulong/tests/gcc/configs/gcc.c-torture/compile/os_arch/windows/others/unsupported_long.exclude index dd713c0a0edf..31985c3bd06b 100644 --- a/sulong/tests/gcc/configs/gcc.c-torture/compile/os_arch/windows/others/unsupported_long.exclude +++ b/sulong/tests/gcc/configs/gcc.c-torture/compile/os_arch/windows/others/unsupported_long.exclude @@ -1,4 +1,4 @@ -# long isnt long long +# long isn't long long gcc-5.2.0/gcc/testsuite/gcc.c-torture/compile/20010327-1.c # typedef redefinitions diff --git a/tools/src/com.oracle.truffle.tools.chromeinspector.test/src/com/oracle/truffle/tools/chromeinspector/test/ITLInspectDebugTest.java b/tools/src/com.oracle.truffle.tools.chromeinspector.test/src/com/oracle/truffle/tools/chromeinspector/test/ITLInspectDebugTest.java index 76e785164c21..4199468cd4c6 100644 --- a/tools/src/com.oracle.truffle.tools.chromeinspector.test/src/com/oracle/truffle/tools/chromeinspector/test/ITLInspectDebugTest.java +++ b/tools/src/com.oracle.truffle.tools.chromeinspector.test/src/com/oracle/truffle/tools/chromeinspector/test/ITLInspectDebugTest.java @@ -65,7 +65,7 @@ public void testSuspendInInitialization() throws Exception { String initURI = InspectorTester.getStringURI(initSource.getURI()); String sourceURI = InspectorTester.getStringURI(source.getURI()); - // Suspend after the initilization (by default): + // Suspend after the initialization (by default): tester = InspectorTester.start(true, false, false); tester.sendMessage("{\"id\":1,\"method\":\"Runtime.enable\"}"); assertEquals("{\"result\":{},\"id\":1}", tester.getMessages(true).trim()); @@ -212,7 +212,7 @@ public void testThis() throws Exception { "CALL_WITH(a, 42))\n", "code").build(); String sourceURI = InspectorTester.getStringURI(source.getURI()); - // Suspend after the initilization (by default): + // Suspend after the initialization (by default): tester = InspectorTester.start(true, false, false); tester.sendMessage("{\"id\":1,\"method\":\"Runtime.enable\"}"); assertEquals("{\"result\":{},\"id\":1}", tester.getMessages(true).trim()); diff --git a/tools/src/com.oracle.truffle.tools.chromeinspector.test/src/com/oracle/truffle/tools/chromeinspector/test/SLInspectDebugTest.java b/tools/src/com.oracle.truffle.tools.chromeinspector.test/src/com/oracle/truffle/tools/chromeinspector/test/SLInspectDebugTest.java index 8c6e12e08431..73706ec81506 100644 --- a/tools/src/com.oracle.truffle.tools.chromeinspector.test/src/com/oracle/truffle/tools/chromeinspector/test/SLInspectDebugTest.java +++ b/tools/src/com.oracle.truffle.tools.chromeinspector.test/src/com/oracle/truffle/tools/chromeinspector/test/SLInspectDebugTest.java @@ -887,7 +887,7 @@ public void testNoInternalSources() throws Exception { tester.eval(internSource); assertTrue(tester.compareReceivedMessages( "{\"method\":\"Debugger.scriptParsed\",\"params\":{\"endLine\":0,\"scriptId\":\"0\",\"endColumn\":0,\"startColumn\":0,\"startLine\":0,\"length\":0,\"executionContextId\":" + id + ",\"url\":\"" + SL_BUILTIN_URI + "\",\"hash\":\"ffffffffffffffffffffffffffffffffffffffff\"}}\n")); - // No scriptParsed message for the interanl source + // No scriptParsed message for the internal source tester.eval(publicSource); assertTrue(tester.compareReceivedMessages( "{\"method\":\"Debugger.scriptParsed\",\"params\":{\"endLine\":10,\"scriptId\":\"1\",\"endColumn\":1,\"startColumn\":0,\"startLine\":0,\"length\":166,\"executionContextId\":" + id + ",\"url\":\"" + publicSourceURI + "\",\"hash\":\"f16f032ee222dcfdfc01da4bfd731e49fc671217\"}}\n")); diff --git a/tools/src/com.oracle.truffle.tools.chromeinspector/src/com/oracle/truffle/tools/chromeinspector/InspectorDebugger.java b/tools/src/com.oracle.truffle.tools.chromeinspector/src/com/oracle/truffle/tools/chromeinspector/InspectorDebugger.java index 3c8d704ddd9d..4ed7fb5e67ec 100644 --- a/tools/src/com.oracle.truffle.tools.chromeinspector/src/com/oracle/truffle/tools/chromeinspector/InspectorDebugger.java +++ b/tools/src/com.oracle.truffle.tools.chromeinspector/src/com/oracle/truffle/tools/chromeinspector/InspectorDebugger.java @@ -1106,7 +1106,7 @@ public void onSuspend(SuspendedEvent se) { if (se.hasSourceElement(SourceElement.ROOT) && se.getBreakpoints().isEmpty()) { if ((!se.hasSourceElement(SourceElement.STATEMENT) && se.getSuspendAnchor() == SuspendAnchor.BEFORE) || (se.getSuspendAnchor() == SuspendAnchor.AFTER && returnValue == null)) { - // We're at the begining of a `RootTag` node, or + // We're at the beginning of a `RootTag` node, or // we're at the end of `RootTag` node and have no return value. // We use `RootTag` to intercept return values of functions during // stepping. diff --git a/tools/src/com.oracle.truffle.tools.chromeinspector/src/com/oracle/truffle/tools/chromeinspector/RemoteObjectsHandler.java b/tools/src/com.oracle.truffle.tools.chromeinspector/src/com/oracle/truffle/tools/chromeinspector/RemoteObjectsHandler.java index a6e8956d2821..0564e425a4f6 100644 --- a/tools/src/com.oracle.truffle.tools.chromeinspector/src/com/oracle/truffle/tools/chromeinspector/RemoteObjectsHandler.java +++ b/tools/src/com.oracle.truffle.tools.chromeinspector/src/com/oracle/truffle/tools/chromeinspector/RemoteObjectsHandler.java @@ -130,9 +130,9 @@ void reset() { remotesByValue.clear(); customPreviewBodies.clear(); customPreviewConfigs.clear(); - if (objectGroups.isEmpty()) { // no groupped objects + if (objectGroups.isEmpty()) { // no grouped objects remotesByIDs.clear(); - } else { // some groupped objects, remove all that do not belong to a group. + } else { // some grouped objects, remove all that do not belong to a group. Set grouppedIds; if (objectGroups.size() == 1) { grouppedIds = objectGroups.values().iterator().next(); diff --git a/tools/src/com.oracle.truffle.tools.chromeinspector/src/com/oracle/truffle/tools/chromeinspector/client/InspectWSClient.java b/tools/src/com.oracle.truffle.tools.chromeinspector/src/com/oracle/truffle/tools/chromeinspector/client/InspectWSClient.java index 8e85cf2eee52..940cd1ed45ad 100644 --- a/tools/src/com.oracle.truffle.tools.chromeinspector/src/com/oracle/truffle/tools/chromeinspector/client/InspectWSClient.java +++ b/tools/src/com.oracle.truffle.tools.chromeinspector/src/com/oracle/truffle/tools/chromeinspector/client/InspectWSClient.java @@ -189,7 +189,7 @@ public void onClose(int code, String reason, boolean remote) { executionContext.logMessage("SERVER closed ", reason); connectionWatcher.notifyClosing(); if (!executionContext.canRun()) { - // The connection was not successfull, resume the execution + // The connection was not successful, resume the execution executionContext.doRunIfWaitingForDebugger(); } } diff --git a/tools/src/com.oracle.truffle.tools.chromeinspector/src/com/oracle/truffle/tools/chromeinspector/instrument/Token.java b/tools/src/com.oracle.truffle.tools.chromeinspector/src/com/oracle/truffle/tools/chromeinspector/instrument/Token.java index 449e87a422e2..b252684fcf59 100644 --- a/tools/src/com.oracle.truffle.tools.chromeinspector/src/com/oracle/truffle/tools/chromeinspector/instrument/Token.java +++ b/tools/src/com.oracle.truffle.tools.chromeinspector/src/com/oracle/truffle/tools/chromeinspector/instrument/Token.java @@ -89,7 +89,7 @@ public static Token createHashedTokenFromString(String secret) { } /** - * If the other object is not a Token, it immediatelly returns false. If the other object is a + * If the other object is not a Token, it immediately returns false. If the other object is a * Token, it compares values encapsulated by the tokens in a way that prevents timing attacks. * That is, even if an attacker is able to measure the time of this operation, it gives them no * valuable information about the secret contents. diff --git a/tools/src/com.oracle.truffle.tools.dap.test/src/com/oracle/truffle/tools/dap/test/DAPTester.java b/tools/src/com.oracle.truffle.tools.dap.test/src/com/oracle/truffle/tools/dap/test/DAPTester.java index 2d628169dd05..7e81e90ddf09 100644 --- a/tools/src/com.oracle.truffle.tools.dap.test/src/com/oracle/truffle/tools/dap/test/DAPTester.java +++ b/tools/src/com.oracle.truffle.tools.dap.test/src/com/oracle/truffle/tools/dap/test/DAPTester.java @@ -169,7 +169,7 @@ private static byte[] readMessageBytes(InputStream in) throws IOException { } else { // Two consecutive newlines start the message content if (contentLength < 0) { - throw new IOException("Error while processing an incomming message: Missing header " + CONTENT_LENGTH_HEADER + " in input."); + throw new IOException("Error while processing an incoming message: Missing header " + CONTENT_LENGTH_HEADER + " in input."); } else { // Read the message byte[] buffer = new byte[contentLength]; diff --git a/tools/src/com.oracle.truffle.tools.dap.test/src/com/oracle/truffle/tools/dap/test/SimpleLanguageDAPTest.java b/tools/src/com.oracle.truffle.tools.dap.test/src/com/oracle/truffle/tools/dap/test/SimpleLanguageDAPTest.java index 546d61c1e769..5c9c792116a2 100644 --- a/tools/src/com.oracle.truffle.tools.dap.test/src/com/oracle/truffle/tools/dap/test/SimpleLanguageDAPTest.java +++ b/tools/src/com.oracle.truffle.tools.dap.test/src/com/oracle/truffle/tools/dap/test/SimpleLanguageDAPTest.java @@ -485,7 +485,7 @@ public void testBreakpointRemoval() throws Exception { tester.compareReceivedMessages("{\"success\":true,\"body\":{\"threads\":[{\"name\":\"testRunner\",\"id\":1}]},\"type\":\"response\",\"request_seq\":22,\"command\":\"threads\",\"seq\":40}"); tester.sendMessage("{\"command\":\"stackTrace\",\"arguments\":{\"threadId\":1},\"type\":\"request\",\"seq\":23}"); tester.compareReceivedMessages("{\"success\":true,\"body\":{\"stackFrames\":[{\"line\":6,\"name\":\"main\",\"column\":5,\"id\":1,\"source\":" + sourceJson + "}],\"totalFrames\":1},\"type\":\"response\",\"request_seq\":23,\"command\":\"stackTrace\",\"seq\":41}"); - // Remove the firts breakpoint: + // Remove the first breakpoint: tester.sendMessage("{\"command\":\"setBreakpoints\",\"arguments\":{\"source\":" + sourceJson + ",\"lines\":[],\"breakpoints\":[],\"sourceModified\":false},\"type\":\"request\",\"seq\":24}"); tester.compareReceivedMessages("{\"success\":true,\"body\":{\"breakpoints\":[]},\"type\":\"response\",\"request_seq\":24,\"command\":\"setBreakpoints\",\"seq\":42}"); // Continue to finish: diff --git a/tools/src/com.oracle.truffle.tools.dap/src/com/oracle/truffle/tools/dap/server/DebugProtocolServerImpl.java b/tools/src/com.oracle.truffle.tools.dap/src/com/oracle/truffle/tools/dap/server/DebugProtocolServerImpl.java index f5c89d2b63a3..0be9f4bd627f 100644 --- a/tools/src/com.oracle.truffle.tools.dap/src/com/oracle/truffle/tools/dap/server/DebugProtocolServerImpl.java +++ b/tools/src/com.oracle.truffle.tools.dap/src/com/oracle/truffle/tools/dap/server/DebugProtocolServerImpl.java @@ -723,7 +723,7 @@ public void onSuspend(SuspendedEvent event) { if (event.hasSourceElement(SourceElement.ROOT) && event.getBreakpoints().isEmpty()) { if ((!event.hasSourceElement(SourceElement.STATEMENT) && event.getSuspendAnchor() == SuspendAnchor.BEFORE) || (event.getSuspendAnchor() == SuspendAnchor.AFTER && returnValue == null)) { - // We're at the begining of a `RootTag` node, or + // We're at the beginning of a `RootTag` node, or // we're at the end of `RootTag` node and have no return value. // We use `RootTag` to intercept return values of functions during stepping. // But if there's no return value, there's no point in suspending at the end of diff --git a/tools/src/com.oracle.truffle.tools.dap/src/com/oracle/truffle/tools/dap/types/DebugProtocolServer.java b/tools/src/com.oracle.truffle.tools.dap/src/com/oracle/truffle/tools/dap/types/DebugProtocolServer.java index a601cf763232..208ffb49255c 100644 --- a/tools/src/com.oracle.truffle.tools.dap/src/com/oracle/truffle/tools/dap/types/DebugProtocolServer.java +++ b/tools/src/com.oracle.truffle.tools.dap/src/com/oracle/truffle/tools/dap/types/DebugProtocolServer.java @@ -370,7 +370,7 @@ private static byte[] readMessageBytes(InputStream in, LoggerProxy logger) throw } else { // Two consecutive newlines start the message content if (contentLength < 0) { - logger.log(Level.SEVERE, "Error while processing an incomming message: Missing header " + CONTENT_LENGTH_HEADER + " in input."); + logger.log(Level.SEVERE, "Error while processing an incoming message: Missing header " + CONTENT_LENGTH_HEADER + " in input."); } else { // Read the message byte[] buffer = new byte[contentLength]; @@ -421,7 +421,7 @@ private void processMessage(byte[] messageBytes) { message.getSeq(), false, null, sequenceNum.getAndIncrement()).setMessage(format("Unrecognized message type: `%s`", messageType))); } } catch (Exception e) { - server.getLogger().log(Level.SEVERE, "Error while processing an incomming message: " + e.getMessage()); + server.getLogger().log(Level.SEVERE, "Error while processing an incoming message: " + e.getMessage()); } } diff --git a/tools/src/com.oracle.truffle.tools.profiler.test/src/com/oracle/truffle/tools/profiler/test/MemoryTracerTest.java b/tools/src/com.oracle.truffle.tools.profiler.test/src/com/oracle/truffle/tools/profiler/test/MemoryTracerTest.java index c7da476d9be7..c2da7ac14f44 100644 --- a/tools/src/com.oracle.truffle.tools.profiler.test/src/com/oracle/truffle/tools/profiler/test/MemoryTracerTest.java +++ b/tools/src/com.oracle.truffle.tools.profiler.test/src/com/oracle/truffle/tools/profiler/test/MemoryTracerTest.java @@ -119,7 +119,7 @@ public void testOneAllocationInRoot() { Assert.assertEquals("Nested allocations found!", 0, node.getChildren().size()); } - Assert.assertEquals("Incorect number of events!", 1, node.getPayload().getEvents().size()); + Assert.assertEquals("Incorrect number of events!", 1, node.getPayload().getEvents().size()); tracer.clearData(); @@ -151,7 +151,7 @@ public void testOneAllocationInRootRecursive() { Assert.assertEquals("Nested allocations found!", 0, node.getChildren().size()); } - Assert.assertEquals("Incorect number of events!", 1, node.getPayload().getEvents().size()); + Assert.assertEquals("Incorrect number of events!", 1, node.getPayload().getEvents().size()); tracer.clearData(); diff --git a/tools/src/com.oracle.truffle.tools.profiler/src/com/oracle/truffle/tools/profiler/CPUSampler.java b/tools/src/com.oracle.truffle.tools.profiler/src/com/oracle/truffle/tools/profiler/CPUSampler.java index f9f128b4324e..b1ed1d55240c 100644 --- a/tools/src/com.oracle.truffle.tools.profiler/src/com/oracle/truffle/tools/profiler/CPUSampler.java +++ b/tools/src/com.oracle.truffle.tools.profiler/src/com/oracle/truffle/tools/profiler/CPUSampler.java @@ -664,7 +664,7 @@ public int getSelfHitCount() { } /** - * @return Total number of times the element was found bellow the top of the stack + * @return Total number of times the element was found below the top of the stack * @since 0.30 */ public int getHitCount() { diff --git a/tools/src/com.oracle.truffle.tools.profiler/src/com/oracle/truffle/tools/profiler/CPUSamplerData.java b/tools/src/com.oracle.truffle.tools.profiler/src/com/oracle/truffle/tools/profiler/CPUSamplerData.java index 87409f857c23..367fe039af0a 100644 --- a/tools/src/com.oracle.truffle.tools.profiler/src/com/oracle/truffle/tools/profiler/CPUSamplerData.java +++ b/tools/src/com.oracle.truffle.tools.profiler/src/com/oracle/truffle/tools/profiler/CPUSamplerData.java @@ -113,7 +113,7 @@ public long getSampleInterval() { /** * The sample bias is a measurement of of how much time passed between requesting a stack sample - * and starting the stack traversal. This method provies a summary of said times during the + * and starting the stack traversal. This method provides a summary of said times during the * profiling run. * * @return A {@link LongSummaryStatistics} of the sample bias. diff --git a/tools/src/com.oracle.truffle.tools.profiler/src/com/oracle/truffle/tools/profiler/impl/resources/color_change.js b/tools/src/com.oracle.truffle.tools.profiler/src/com/oracle/truffle/tools/profiler/impl/resources/color_change.js index 6c9a5d5a6d9c..7bb7d95280a8 100644 --- a/tools/src/com.oracle.truffle.tools.profiler/src/com/oracle/truffle/tools/profiler/impl/resources/color_change.js +++ b/tools/src/com.oracle.truffle.tools.profiler/src/com/oracle/truffle/tools/profiler/impl/resources/color_change.js @@ -23,7 +23,7 @@ * questions. */ -// Cycle through grpah coloring. +// Cycle through graph coloring. var color_type = "fg"; let legend_state = false; @@ -120,7 +120,7 @@ function color_create_legend() { r.style.stroke = "black"; r.style["stroke-width"] = 2; r.rx.baseVal.value = 2; - r.ry.baseVal.vlaue = 2; + r.ry.baseVal.value = 2; let t = document.createElementNS("http://www.w3.org/2000/svg", "text"); t.className.baseVal = "title"; @@ -201,7 +201,7 @@ function color_legend_entry(e, i, color, text) { box.style.stroke = "black"; box.style["stroke-width"] = 0.5; box.rx.baseVal.value = 2; - box.ry.baseVal.vlaue = 2; + box.ry.baseVal.value = 2; let label = document.createElementNS("http://www.w3.org/2000/svg", "text"); label.className.baseVal = "label"; diff --git a/tools/src/com.oracle.truffle.tools.profiler/src/com/oracle/truffle/tools/profiler/impl/resources/flamegraph.js b/tools/src/com.oracle.truffle.tools.profiler/src/com/oracle/truffle/tools/profiler/impl/resources/flamegraph.js index e3649b5cc88d..9d0dbf02efd1 100644 --- a/tools/src/com.oracle.truffle.tools.profiler/src/com/oracle/truffle/tools/profiler/impl/resources/flamegraph.js +++ b/tools/src/com.oracle.truffle.tools.profiler/src/com/oracle/truffle/tools/profiler/impl/resources/flamegraph.js @@ -72,7 +72,7 @@ function fg_create_element_for_sample(sample, width, x) { r.style.fill = fg_color_for_sample(color_type, sample); } r.rx.baseVal.value = 2; - r.ry.baseVal.vlaue = 2; + r.ry.baseVal.value = 2; let t = document.createElementNS("http://www.w3.org/2000/svg", "text"); t.style.textAnchor = "left"; diff --git a/tools/src/com.oracle.truffle.tools.profiler/src/com/oracle/truffle/tools/profiler/impl/resources/graphowner.js b/tools/src/com.oracle.truffle.tools.profiler/src/com/oracle/truffle/tools/profiler/impl/resources/graphowner.js index 4c6c68091f70..edd6cedfaa7a 100644 --- a/tools/src/com.oracle.truffle.tools.profiler/src/com/oracle/truffle/tools/profiler/impl/resources/graphowner.js +++ b/tools/src/com.oracle.truffle.tools.profiler/src/com/oracle/truffle/tools/profiler/impl/resources/graphowner.js @@ -383,7 +383,7 @@ function graph_help_entry(e, i, key, description) { box.style.stroke = "black"; box.style["stroke-width"] = 0.5; box.rx.baseVal.value = 2; - box.ry.baseVal.vlaue = 2; + box.ry.baseVal.value = 2; let label = document.createElementNS("http://www.w3.org/2000/svg", "text"); label.style.textAnchor = "middle"; diff --git a/tools/src/com.oracle.truffle.tools.profiler/src/com/oracle/truffle/tools/profiler/impl/resources/histogram.js b/tools/src/com.oracle.truffle.tools.profiler/src/com/oracle/truffle/tools/profiler/impl/resources/histogram.js index 3ffdb8d97d08..d6121cad12fc 100644 --- a/tools/src/com.oracle.truffle.tools.profiler/src/com/oracle/truffle/tools/profiler/impl/resources/histogram.js +++ b/tools/src/com.oracle.truffle.tools.profiler/src/com/oracle/truffle/tools/profiler/impl/resources/histogram.js @@ -153,7 +153,7 @@ function h_create_element_for_id(id, bar, width) { r.style.fill = h_color_for_sample(color_type, bar); r.rx.baseVal.value = 2; - r.ry.baseVal.vlaue = 2; + r.ry.baseVal.value = 2; let t = document.createElementNS("http://www.w3.org/2000/svg", "text"); t.style.textAnchor = "left"; diff --git a/tools/src/org.graalvm.tools.api.lsp/src/org/graalvm/tools/api/lsp/LSPCommand.java b/tools/src/org.graalvm.tools.api.lsp/src/org/graalvm/tools/api/lsp/LSPCommand.java index 0aa913099ec5..41fda7ea0b7c 100644 --- a/tools/src/org.graalvm.tools.api.lsp/src/org/graalvm/tools/api/lsp/LSPCommand.java +++ b/tools/src/org.graalvm.tools.api.lsp/src/org/graalvm/tools/api/lsp/LSPCommand.java @@ -57,7 +57,7 @@ default int getTimeoutMillis() { default Object onTimeout(List arguments) { String argumentString = String.join(", ", arguments.toArray(new String[0])); if (getTimeoutMillis() > 0) { - throw new RuntimeException("onTimeout not overriden. Arguments: " + argumentString); + throw new RuntimeException("onTimeout not overridden. Arguments: " + argumentString); } else { throw new AssertionError("onTimeout triggered on negative or zero timeout. Arguments: " + argumentString); } diff --git a/tools/src/org.graalvm.tools.insight.test/src/org/graalvm/tools/insight/test/InsightAPI.java b/tools/src/org.graalvm.tools.insight.test/src/org/graalvm/tools/insight/test/InsightAPI.java index b88d13fcbff2..87f70f1c864f 100644 --- a/tools/src/org.graalvm.tools.insight.test/src/org/graalvm/tools/insight/test/InsightAPI.java +++ b/tools/src/org.graalvm.tools.insight.test/src/org/graalvm/tools/insight/test/InsightAPI.java @@ -226,9 +226,9 @@ interface Context extends SourceSectionInfo { */ Object returnValue(Map frame); - /** Immediatelly exits the current handler and returns to the + /** Immediately exits the current handler and returns to the * caller. Calling this method aborts execution of the current - * handler. It bypasses language sematics and immediatelly + * handler. It bypasses language semantics and immediately * returns the provided value to the caller. If there are multiple * calls to {@code returnNow} (from different handlers) the * first call defines the return value. @@ -264,7 +264,7 @@ interface FramesIterator { * @param at location in the source code * @param frame access to local variables * @return {@code null} to continue iteration, non-{@code null} to - * return immediatelly from the + * return immediately from the * {@link OnEventHandler.Context#iterateFrames} method. */ T onFrame(SourceSectionInfo at, Map frame); diff --git a/tools/src/org.graalvm.tools.insight.test/src/org/graalvm/tools/insight/test/heap/HeapObjectStreamTest.java b/tools/src/org.graalvm.tools.insight.test/src/org/graalvm/tools/insight/test/heap/HeapObjectStreamTest.java index 0b17c1824227..2908da746b5f 100644 --- a/tools/src/org.graalvm.tools.insight.test/src/org/graalvm/tools/insight/test/heap/HeapObjectStreamTest.java +++ b/tools/src/org.graalvm.tools.insight.test/src/org/graalvm/tools/insight/test/heap/HeapObjectStreamTest.java @@ -131,7 +131,7 @@ public void dumpToStream() throws Exception { new StackEvent(new StackElement[]{new StackElement(new At("a", source, null, null, null), createDumpObject())}) }); - assertEquals("Size of first stream remains unchaged", heapSize, heapOutput.size()); + assertEquals("Size of first stream remains unchanged", heapSize, heapOutput.size()); String anotherHeader = new String(anotherStream.toByteArray(), 0, 18); assertEquals("JAVA PROFILE 1.0.1", anotherHeader); @@ -230,7 +230,7 @@ public void dumpToStreamCachedLRU() throws Exception { } invokeFlush(heap); - assertEquals("Size of first stream remains unchaged", heapSize, heapOutput.size()); + assertEquals("Size of first stream remains unchanged", heapSize, heapOutput.size()); assertEquals("Size of the second stream is the same due to LRU caching", heapSize, anotherStream.size()); assertNotEquals("Heap contents differ", true, equals(heapOutput.toByteArray(), anotherStream.toByteArray())); } diff --git a/tools/src/org.graalvm.tools.insight.test/src/org/graalvm/tools/insight/test/heap/HeapObjectTest.java b/tools/src/org.graalvm.tools.insight.test/src/org/graalvm/tools/insight/test/heap/HeapObjectTest.java index 1ce10aa8e235..5f5002ba35e1 100644 --- a/tools/src/org.graalvm.tools.insight.test/src/org/graalvm/tools/insight/test/heap/HeapObjectTest.java +++ b/tools/src/org.graalvm.tools.insight.test/src/org/graalvm/tools/insight/test/heap/HeapObjectTest.java @@ -164,7 +164,7 @@ public void nonNullAt() throws Exception { invokeDump(heap, 1, new Event[]{ new StackEvent(new StackElement[]{new StackElement(null, null)}) }); - fail("Expeting failure"); + fail("Expecting failure"); } catch (PolyglotException ex) { assertMessage(ex, "Expecting non-null 'at' ", "'at' should be defined"); } diff --git a/tools/src/org.graalvm.tools.insight/src/org/graalvm/tools/insight/Insight.java b/tools/src/org.graalvm.tools.insight/src/org/graalvm/tools/insight/Insight.java index 7fd5f3dd90a7..b14a333335ec 100644 --- a/tools/src/org.graalvm.tools.insight/src/org/graalvm/tools/insight/Insight.java +++ b/tools/src/org.graalvm.tools.insight/src/org/graalvm/tools/insight/Insight.java @@ -83,7 +83,7 @@ private Insight() { * {@snippet file = "org/graalvm/tools/insight/test/MeaningOfWorldInstrument.java" region = * "org.graalvm.tools.insight.test.MeaningOfWorldInstrument"} *

    - * The previous instrument makes variable {@code meanining} with value {@code 42} available to + * The previous instrument makes variable {@code meaning} with value {@code 42} available to * every {@link #ID Insight script} when properly registered into the virtual machine. A typical * way is to register your custom instrument is to use property * {@code truffle.class.path.append} when launching the virtual machine: diff --git a/tools/src/org.graalvm.tools.lsp/src/org/graalvm/tools/lsp/server/LanguageServerImpl.java b/tools/src/org.graalvm.tools.lsp/src/org/graalvm/tools/lsp/server/LanguageServerImpl.java index fadf57000d68..d8c3c872b1aa 100644 --- a/tools/src/org.graalvm.tools.lsp/src/org/graalvm/tools/lsp/server/LanguageServerImpl.java +++ b/tools/src/org.graalvm.tools.lsp/src/org/graalvm/tools/lsp/server/LanguageServerImpl.java @@ -370,7 +370,7 @@ public CompletableFuture executeCommand(ExecuteCommandParams params) { if (extensionCommand != null) { return CompletableFuture.supplyAsync(() -> waitForResultAndHandleExceptions(extensionCommand)); } else { - err.println("Unkown command: " + params.getCommand()); + err.println("Unknown command: " + params.getCommand()); return CompletableFuture.completedFuture(new Object()); } } diff --git a/tools/src/org.graalvm.tools.lsp/src/org/graalvm/tools/lsp/server/types/CodeActionContext.java b/tools/src/org.graalvm.tools.lsp/src/org/graalvm/tools/lsp/server/types/CodeActionContext.java index 9b58c36911ee..06d747994c33 100644 --- a/tools/src/org.graalvm.tools.lsp/src/org/graalvm/tools/lsp/server/types/CodeActionContext.java +++ b/tools/src/org.graalvm.tools.lsp/src/org/graalvm/tools/lsp/server/types/CodeActionContext.java @@ -44,7 +44,7 @@ public class CodeActionContext extends JSONBase { /** * An array of diagnostics known on the client side overlapping the range provided to the - * `textDocument/codeAction` request. They are provied so that the server knows which errors are + * `textDocument/codeAction` request. They are provided so that the server knows which errors are * currently presented to the user for the given range. There is no guarantee that these * accurately reflect the error state of the resource. The primary parameter to compute code * actions is the provided range. diff --git a/tools/src/org.graalvm.tools.lsp/src/org/graalvm/tools/lsp/server/types/ColorInformation.java b/tools/src/org.graalvm.tools.lsp/src/org/graalvm/tools/lsp/server/types/ColorInformation.java index da72601462b4..6e26068881fe 100644 --- a/tools/src/org.graalvm.tools.lsp/src/org/graalvm/tools/lsp/server/types/ColorInformation.java +++ b/tools/src/org.graalvm.tools.lsp/src/org/graalvm/tools/lsp/server/types/ColorInformation.java @@ -38,7 +38,7 @@ public class ColorInformation extends JSONBase { } /** - * The range in the document where this color appers. + * The range in the document where this color appears. */ public Range getRange() { return new Range(jsonData.getJSONObject("range")); diff --git a/tools/src/org.graalvm.tools.lsp/src/org/graalvm/tools/lsp/server/types/CompletionItem.java b/tools/src/org.graalvm.tools.lsp/src/org/graalvm/tools/lsp/server/types/CompletionItem.java index 8e5d43648ed0..b6822ebdf5a0 100644 --- a/tools/src/org.graalvm.tools.lsp/src/org/graalvm/tools/lsp/server/types/CompletionItem.java +++ b/tools/src/org.graalvm.tools.lsp/src/org/graalvm/tools/lsp/server/types/CompletionItem.java @@ -207,7 +207,7 @@ public CompletionItem setInsertText(String insertText) { /** * The format of the insert text. The format applies to both the `insertText` property and the - * `newText` property of a provided `textEdit`. If ommitted defaults to + * `newText` property of a provided `textEdit`. If omitted defaults to * `InsertTextFormat.PlainText`. */ public InsertTextFormat getInsertTextFormat() { diff --git a/tools/src/org.graalvm.tools.lsp/src/org/graalvm/tools/lsp/server/types/CompletionOptions.java b/tools/src/org.graalvm.tools.lsp/src/org/graalvm/tools/lsp/server/types/CompletionOptions.java index 755ff9bb8b64..0d32e33de0d7 100644 --- a/tools/src/org.graalvm.tools.lsp/src/org/graalvm/tools/lsp/server/types/CompletionOptions.java +++ b/tools/src/org.graalvm.tools.lsp/src/org/graalvm/tools/lsp/server/types/CompletionOptions.java @@ -76,7 +76,7 @@ public CompletionOptions setTriggerCharacters(List triggerCharacters) { /** * The list of all possible characters that commit a completion. This field can be used if - * clients don't support individual commmit characters per completion item. See + * clients don't support individual commit characters per completion item. See * `ClientCapabilities.textDocument.completion.completionItem.commitCharactersSupport` * * If a server provides both `allCommitCharacters` and commit characters on an individual diff --git a/tools/src/org.graalvm.tools.lsp/src/org/graalvm/tools/lsp/server/types/FailureHandlingKind.java b/tools/src/org.graalvm.tools.lsp/src/org/graalvm/tools/lsp/server/types/FailureHandlingKind.java index 2cf0e2f3c369..76b61ec36795 100644 --- a/tools/src/org.graalvm.tools.lsp/src/org/graalvm/tools/lsp/server/types/FailureHandlingKind.java +++ b/tools/src/org.graalvm.tools.lsp/src/org/graalvm/tools/lsp/server/types/FailureHandlingKind.java @@ -42,11 +42,11 @@ public enum FailureHandlingKind { /** * If the workspace edit contains only textual file changes they are executed transactional. If * resource changes (create, rename or delete file) are part of the change the failure handling - * startegy is abort. + * strategy is abort. */ TextOnlyTransactional("textOnlyTransactional"), /** - * The client tries to undo the operations already executed. But there is no guaruntee that this + * The client tries to undo the operations already executed. But there is no guarantee that this * is succeeding. */ Undo("undo"); diff --git a/tools/src/org.graalvm.tools.lsp/src/org/graalvm/tools/lsp/server/types/LanguageServer.java b/tools/src/org.graalvm.tools.lsp/src/org/graalvm/tools/lsp/server/types/LanguageServer.java index ffcadbca69ba..885f000a35cb 100644 --- a/tools/src/org.graalvm.tools.lsp/src/org/graalvm/tools/lsp/server/types/LanguageServer.java +++ b/tools/src/org.graalvm.tools.lsp/src/org/graalvm/tools/lsp/server/types/LanguageServer.java @@ -474,7 +474,7 @@ private static byte[] readMessageBytes(InputStream in, LoggerProxy logger) throw } else { // Two consecutive newlines start the message content if (contentLength < 0) { - logger.log(Level.SEVERE, "Error while processing an incomming message: Missing header " + CONTENT_LENGTH_HEADER + " in input."); + logger.log(Level.SEVERE, "Error while processing an incoming message: Missing header " + CONTENT_LENGTH_HEADER + " in input."); } else { // Read the message byte[] buffer = new byte[contentLength]; @@ -516,7 +516,7 @@ private void processMessage(byte[] messageBytes) { processNotification(message, messageBytes); } } catch (Exception e) { - server.getLogger().log(Level.SEVERE, "Error while processing an incomming message: " + e.getMessage()); + server.getLogger().log(Level.SEVERE, "Error while processing an incoming message: " + e.getMessage()); } } diff --git a/tools/src/org.graalvm.tools.lsp/src/org/graalvm/tools/lsp/server/types/ResponseErrorLiteral.java b/tools/src/org.graalvm.tools.lsp/src/org/graalvm/tools/lsp/server/types/ResponseErrorLiteral.java index a09cfc499d17..e92a33d284e1 100644 --- a/tools/src/org.graalvm.tools.lsp/src/org/graalvm/tools/lsp/server/types/ResponseErrorLiteral.java +++ b/tools/src/org.graalvm.tools.lsp/src/org/graalvm/tools/lsp/server/types/ResponseErrorLiteral.java @@ -46,7 +46,7 @@ public ResponseErrorLiteral setCode(int code) { } /** - * A string providing a short decription of the error. + * A string providing a short description of the error. */ public String getMessage() { return jsonData.getString("message"); diff --git a/tools/src/org.graalvm.tools.lsp/src/org/graalvm/tools/lsp/server/types/ServerCapabilities.java b/tools/src/org.graalvm.tools.lsp/src/org/graalvm/tools/lsp/server/types/ServerCapabilities.java index 1a89d269b980..abd0e6ba32bb 100644 --- a/tools/src/org.graalvm.tools.lsp/src/org/graalvm/tools/lsp/server/types/ServerCapabilities.java +++ b/tools/src/org.graalvm.tools.lsp/src/org/graalvm/tools/lsp/server/types/ServerCapabilities.java @@ -731,7 +731,7 @@ public WorkspaceFoldersCapabilities setSupported(Boolean supported) { * Whether the server wants to receive workspace folder change notifications. * * If a strings is provided the string is treated as a ID under which the notification - * is registed on the client side. The ID can be used to unregister for these events + * is registered on the client side. The ID can be used to unregister for these events * using the `client/unregisterCapability` request. */ public Object getChangeNotifications() { diff --git a/truffle/mx.truffle/mx_truffle.py b/truffle/mx.truffle/mx_truffle.py index d4050dd5a6dc..1e2621b85eea 100644 --- a/truffle/mx.truffle/mx_truffle.py +++ b/truffle/mx.truffle/mx_truffle.py @@ -748,7 +748,7 @@ def run_native_optimized_immediately(test_file): mx.rmtree(target_dir) # test if the enterprise compiler is in use - # that everything works fine if truffle-enterprise.jar is not availble + # that everything works fine if truffle-enterprise.jar is not available enterprise = _get_enterprise_truffle() if enterprise: target_dir = tempfile.mkdtemp() @@ -1060,7 +1060,7 @@ def visit(dep, edge): TCK options: --tck-configuration configuration {compiler|debugger|default} - compile executes TCK tests with immediate comilation + compile executes TCK tests with immediate compilation debugger executes TCK tests with enabled debugalot instrument default executes TCK tests """ diff --git a/truffle/mx.truffle/suite.py b/truffle/mx.truffle/suite.py index 76393331ac8e..88f252449456 100644 --- a/truffle/mx.truffle/suite.py +++ b/truffle/mx.truffle/suite.py @@ -1781,7 +1781,7 @@ # We do no longer deploy a closed module to graalvm because there are known bugs # when a JDK boot module exports itself at runtime to a language at runtime. # with Truffle unchained we want to use truffle always from the module path - # and deployement of Truffle the JDK is only there fore legacy support. + # and deployment of Truffle the JDK is only there fore legacy support. # See GR-47669 #"graalvm" : { # Deploy the modular jar specified by "moduleInfo.closed" diff --git a/truffle/src/com.oracle.truffle.api.debug.test/src/com/oracle/truffle/api/debug/test/BreakpointDisposeListener.java b/truffle/src/com.oracle.truffle.api.debug.test/src/com/oracle/truffle/api/debug/test/BreakpointDisposeListener.java index 29b0f13222d2..6378dc3cf09d 100644 --- a/truffle/src/com.oracle.truffle.api.debug.test/src/com/oracle/truffle/api/debug/test/BreakpointDisposeListener.java +++ b/truffle/src/com.oracle.truffle.api.debug.test/src/com/oracle/truffle/api/debug/test/BreakpointDisposeListener.java @@ -50,7 +50,7 @@ final class BreakpointDisposeListener implements Consumer { static void register(boolean[] notified, Debugger debugger, Breakpoint globalBreakpoint) { Consumer disposeBPListener = new BreakpointDisposeListener(notified, globalBreakpoint); - debugger.addBreakpointAddedListener((breakpoint) -> Assert.fail("No new breakpoint is excpected to be added. Breakpoint = " + breakpoint)); + debugger.addBreakpointAddedListener((breakpoint) -> Assert.fail("No new breakpoint is expected to be added. Breakpoint = " + breakpoint)); debugger.addBreakpointRemovedListener(disposeBPListener); } diff --git a/truffle/src/com.oracle.truffle.api.debug.test/src/com/oracle/truffle/api/debug/test/BreakpointListener.java b/truffle/src/com.oracle.truffle.api.debug.test/src/com/oracle/truffle/api/debug/test/BreakpointListener.java index f8d884c3fcf5..9d389d0343c8 100644 --- a/truffle/src/com.oracle.truffle.api.debug.test/src/com/oracle/truffle/api/debug/test/BreakpointListener.java +++ b/truffle/src/com.oracle.truffle.api.debug.test/src/com/oracle/truffle/api/debug/test/BreakpointListener.java @@ -51,7 +51,7 @@ final class BreakpointListener implements Consumer { static BreakpointListener register(boolean[] notified, Debugger debugger, Breakpoint globalBreakpoint) { BreakpointListener newBPListener = new BreakpointListener(notified, debugger, globalBreakpoint); debugger.addBreakpointAddedListener(newBPListener); - Consumer removedListener = (breakpoint) -> Assert.fail("No breakpoint is excpected to be removed. Breakpoint = " + breakpoint); + Consumer removedListener = (breakpoint) -> Assert.fail("No breakpoint is expected to be removed. Breakpoint = " + breakpoint); newBPListener.removedListener = removedListener; debugger.addBreakpointRemovedListener(removedListener); return newBPListener; diff --git a/truffle/src/com.oracle.truffle.api.debug.test/src/com/oracle/truffle/api/debug/test/DoubleHaltTest.java b/truffle/src/com.oracle.truffle.api.debug.test/src/com/oracle/truffle/api/debug/test/DoubleHaltTest.java index 186a379e76c7..87ba72bdc897 100644 --- a/truffle/src/com.oracle.truffle.api.debug.test/src/com/oracle/truffle/api/debug/test/DoubleHaltTest.java +++ b/truffle/src/com.oracle.truffle.api.debug.test/src/com/oracle/truffle/api/debug/test/DoubleHaltTest.java @@ -137,7 +137,7 @@ public void testCallLoopStepInto() throws Throwable { case 0: /* * Note Chumer: breakpoints should always hit independent if we are - * currently stepping out or not. thats why step out does not step out + * currently stepping out or not. that's why step out does not step out * here. */ e.prepareStepOut(1); diff --git a/truffle/src/com.oracle.truffle.api.debug.test/src/com/oracle/truffle/api/debug/test/InstrumentablePositionsTestLanguage.java b/truffle/src/com.oracle.truffle.api.debug.test/src/com/oracle/truffle/api/debug/test/InstrumentablePositionsTestLanguage.java index ee476bac999c..f0bc07d5d4d9 100644 --- a/truffle/src/com.oracle.truffle.api.debug.test/src/com/oracle/truffle/api/debug/test/InstrumentablePositionsTestLanguage.java +++ b/truffle/src/com.oracle.truffle.api.debug.test/src/com/oracle/truffle/api/debug/test/InstrumentablePositionsTestLanguage.java @@ -122,7 +122,7 @@ public class InstrumentablePositionsTestLanguage extends TruffleLanguage PreMaterialize = new OptionKey<>(0); - @Option(help = "Set relative soure paths with respect to this source root.", category = OptionCategory.EXPERT) // + @Option(help = "Set relative source paths with respect to this source root.", category = OptionCategory.EXPERT) // static final OptionKey SourceRoot = new OptionKey<>(""); @Override diff --git a/truffle/src/com.oracle.truffle.api.debug/src/com/oracle/truffle/api/debug/DebugException.java b/truffle/src/com.oracle.truffle.api.debug/src/com/oracle/truffle/api/debug/DebugException.java index 0cdbc33d3ba9..cbf531172825 100644 --- a/truffle/src/com.oracle.truffle.api.debug/src/com/oracle/truffle/api/debug/DebugException.java +++ b/truffle/src/com.oracle.truffle.api.debug/src/com/oracle/truffle/api/debug/DebugException.java @@ -170,7 +170,7 @@ public Throwable fillInStackTrace() { */ @Override public void setStackTrace(StackTraceElement[] stackTrace) { - // validate arguments to fullfil contract + // validate arguments to fulfill contract for (int i = 0; i < stackTrace.length; i++) { if (stackTrace[i] == null) { throw new NullPointerException("stackTrace[" + i + "]"); diff --git a/truffle/src/com.oracle.truffle.api.dsl.test/src/com/oracle/truffle/api/dsl/test/EnumEncodingTest.java b/truffle/src/com.oracle.truffle.api.dsl.test/src/com/oracle/truffle/api/dsl/test/EnumEncodingTest.java index 45e4d2db0a96..cea63a23d7d3 100644 --- a/truffle/src/com.oracle.truffle.api.dsl.test/src/com/oracle/truffle/api/dsl/test/EnumEncodingTest.java +++ b/truffle/src/com.oracle.truffle.api.dsl.test/src/com/oracle/truffle/api/dsl/test/EnumEncodingTest.java @@ -234,7 +234,7 @@ public void testSpecializationClassNode() { } /* - * This class name triggers a naming confict with a class in the parent node. No need to execute + * This class name triggers a naming conflict with a class in the parent node. No need to execute * this node. The test is that the generate code compiles correctly. */ @SuppressWarnings("unused") diff --git a/truffle/src/com.oracle.truffle.api.dsl.test/src/com/oracle/truffle/api/dsl/test/GenerateInlineTest.java b/truffle/src/com.oracle.truffle.api.dsl.test/src/com/oracle/truffle/api/dsl/test/GenerateInlineTest.java index 65a813c43cf4..573315c5c276 100644 --- a/truffle/src/com.oracle.truffle.api.dsl.test/src/com/oracle/truffle/api/dsl/test/GenerateInlineTest.java +++ b/truffle/src/com.oracle.truffle.api.dsl.test/src/com/oracle/truffle/api/dsl/test/GenerateInlineTest.java @@ -1922,7 +1922,7 @@ public abstract static class ErrorRedundantInliningNode extends Node { @Specialization static Object doInt(Node node, int arg, - @ExpectError("Redundant specification of @GenerateInline(... inline=true). Cached values of nodes with @Cached are implicitely inlined.") // + @ExpectError("Redundant specification of @GenerateInline(... inline=true). Cached values of nodes with @Cached are implicitly inlined.") // @Cached(inline = true) InnerNode innerNode) { return innerNode.execute(node, arg); } diff --git a/truffle/src/com.oracle.truffle.api.dsl.test/src/com/oracle/truffle/api/dsl/test/SpecializationFallthroughTest.java b/truffle/src/com.oracle.truffle.api.dsl.test/src/com/oracle/truffle/api/dsl/test/SpecializationFallthroughTest.java index d65d2745e943..3216889875ab 100644 --- a/truffle/src/com.oracle.truffle.api.dsl.test/src/com/oracle/truffle/api/dsl/test/SpecializationFallthroughTest.java +++ b/truffle/src/com.oracle.truffle.api.dsl.test/src/com/oracle/truffle/api/dsl/test/SpecializationFallthroughTest.java @@ -73,7 +73,7 @@ public void afterExecution(TestRootNode node, int index, Ob return; } if (FallthroughTest0.fallthroughCount > 1) { - Assert.fail("The fallthrough case must never be triggered twice. Therfore count must be <= 1, but is not."); + Assert.fail("The fallthrough case must never be triggered twice. Therefore count must be <= 1, but is not."); } } }); @@ -117,13 +117,13 @@ public void afterExecution(TestRootNode node, int index, Ob return; } if (FallthroughTest1.fallthroughCount > 1) { - Assert.fail("The fallthrough case must never be triggered twice. Therfore count must be <= 1, but is not."); + Assert.fail("The fallthrough case must never be triggered twice. Therefore count must be <= 1, but is not."); } } }); } - /* TODO GR-38632 assert falltrough do1 before do2 */ + /* TODO GR-38632 assert fallthrough do1 before do2 */ @NodeChildren({@NodeChild("a")}) static class FallthroughTest1 extends ValueNode { diff --git a/truffle/src/com.oracle.truffle.api.dsl/src/com/oracle/truffle/api/dsl/GenerateInline.java b/truffle/src/com.oracle.truffle.api.dsl/src/com/oracle/truffle/api/dsl/GenerateInline.java index c15312cd16a5..ccff4c7366a0 100644 --- a/truffle/src/com.oracle.truffle.api.dsl/src/com/oracle/truffle/api/dsl/GenerateInline.java +++ b/truffle/src/com.oracle.truffle.api.dsl/src/com/oracle/truffle/api/dsl/GenerateInline.java @@ -52,7 +52,7 @@ * parameters of {@link Specialization specializations}. Inlining nodes significantly reduces the * footprint of cached nodes as node allocations are avoided. * - * A node subclass must fullfill the following requirements in order to be inlinable: + * A node subclass must fulfill the following requirements in order to be inlinable: *
      *
    • All execute methods of a the node must have a {@link Node node} as first parameter type. *
    • The node has no instance fields and must not use {@link NodeChild} or {@link NodeField}. diff --git a/truffle/src/com.oracle.truffle.api.dsl/src/com/oracle/truffle/api/dsl/GenerateUncached.java b/truffle/src/com.oracle.truffle.api.dsl/src/com/oracle/truffle/api/dsl/GenerateUncached.java index dbd05e9e4876..dc6c6428ccb3 100644 --- a/truffle/src/com.oracle.truffle.api.dsl/src/com/oracle/truffle/api/dsl/GenerateUncached.java +++ b/truffle/src/com.oracle.truffle.api.dsl/src/com/oracle/truffle/api/dsl/GenerateUncached.java @@ -59,7 +59,7 @@ * annotation will automatically use {@linkplain Cached#uncached() getUncached} instead of a cached * version to initialize the cache. *

      - * A node subclass must fullfill the following requirements in order to be uncachable: + * A node subclass must fulfill the following requirements in order to be uncachable: *

        *
      • At least one specialization and one execute method must be specified. *
      • The node has no instance fields. diff --git a/truffle/src/com.oracle.truffle.api.dsl/src/com/oracle/truffle/api/dsl/Specialization.java b/truffle/src/com.oracle.truffle.api.dsl/src/com/oracle/truffle/api/dsl/Specialization.java index e08a929c3331..996d0a674602 100644 --- a/truffle/src/com.oracle.truffle.api.dsl/src/com/oracle/truffle/api/dsl/Specialization.java +++ b/truffle/src/com.oracle.truffle.api.dsl/src/com/oracle/truffle/api/dsl/Specialization.java @@ -157,7 +157,7 @@ * *

        * If an event guard exception is triggered then all instantiations of this specialization are - * removed. If one of theses exceptions is thrown once then no further instantiations of this + * removed. If one of these exceptions is thrown once then no further instantiations of this * specialization are going to be created for this node. * * In case of explicitly declared {@link UnexpectedResultException}s, the result from the diff --git a/truffle/src/com.oracle.truffle.api.instrumentation.test/src/com/oracle/truffle/api/instrumentation/test/GenerateWrapperTest.java b/truffle/src/com.oracle.truffle.api.instrumentation.test/src/com/oracle/truffle/api/instrumentation/test/GenerateWrapperTest.java index cad81af599cf..9c9bf6ca5690 100644 --- a/truffle/src/com.oracle.truffle.api.instrumentation.test/src/com/oracle/truffle/api/instrumentation/test/GenerateWrapperTest.java +++ b/truffle/src/com.oracle.truffle.api.instrumentation.test/src/com/oracle/truffle/api/instrumentation/test/GenerateWrapperTest.java @@ -639,7 +639,7 @@ Object outgoing(VirtualFrame frame, Object object) { } } - // frame can be ommitted + // frame can be omitted @GenerateWrapper public static class IncomingValueNode2 extends TestExecutionSignatures { @Override @@ -1111,7 +1111,7 @@ public void foobar() { assertEquals(1, foobarInvocations.get()); } - @ExpectError("No suiteable constructor found for wrapper factory generation. At least one default or copy constructor must be visible.") + @ExpectError("No suitable constructor found for wrapper factory generation. At least one default or copy constructor must be visible.") @GenerateWrapper @SuppressWarnings("unused") public abstract static class ErrorNode6 extends Node implements InstrumentableNode { diff --git a/truffle/src/com.oracle.truffle.api.instrumentation.test/src/com/oracle/truffle/api/instrumentation/test/GradualInstrumentationTest.java b/truffle/src/com.oracle.truffle.api.instrumentation.test/src/com/oracle/truffle/api/instrumentation/test/GradualInstrumentationTest.java index 8e395c6b8184..bec9d24d1570 100644 --- a/truffle/src/com.oracle.truffle.api.instrumentation.test/src/com/oracle/truffle/api/instrumentation/test/GradualInstrumentationTest.java +++ b/truffle/src/com.oracle.truffle.api.instrumentation.test/src/com/oracle/truffle/api/instrumentation/test/GradualInstrumentationTest.java @@ -221,7 +221,7 @@ public void testSubTreeClonedForMaterialization() { * materialized node has an expression as a child and the children of that expression * consist of only one expression, then the nested expression is connected as a child * directly to the materialized node in place of its parent and for each expression which is - * ommited this way, one child expression is added to the extra statement node. + * omitted this way, one child expression is added to the extra statement node. */ assertEquals("+S+S+E-E-S+E-E-S", listener2.getRecording()); } diff --git a/truffle/src/com.oracle.truffle.api.instrumentation.test/src/com/oracle/truffle/api/instrumentation/test/InstrumentationTest.java b/truffle/src/com.oracle.truffle.api.instrumentation.test/src/com/oracle/truffle/api/instrumentation/test/InstrumentationTest.java index d9602dddab00..7e81d251bb08 100644 --- a/truffle/src/com.oracle.truffle.api.instrumentation.test/src/com/oracle/truffle/api/instrumentation/test/InstrumentationTest.java +++ b/truffle/src/com.oracle.truffle.api.instrumentation.test/src/com/oracle/truffle/api/instrumentation/test/InstrumentationTest.java @@ -1205,7 +1205,7 @@ public void testOutputConsumer() throws IOException { assureEnabled(engine.getInstruments().get("testOutputConsumerPiped")); context.eval(lines("PRINT(OUT, CONSTANT(\"OutputToStdOut\"))")); context.eval(lines("PRINT(ERR, CONSTANT(\"OutputToStdErr\"))")); - // test that the output goes eveywhere + // test that the output goes everywhere Assert.assertEquals("OutputToStdOut", getOut()); Assert.assertEquals("OutputToStdOut", TestOutputConsumerArray.getOut()); Assert.assertEquals("OutputToStdErr", getErr()); @@ -1371,7 +1371,7 @@ public void onReturnExceptional(EventContext ctx, VirtualFrame frame, Throwable } /* - * Use tags that are not declarded as required. + * Use tags that are not declared as required. */ @Test @Ignore // InstrumentClientInstrumenter.verifyFilter() is empty @@ -1710,7 +1710,7 @@ public void testAccessInstruments() { assertNull(access.env.lookup(other, Object.class)); assertEquals(0, TestAccessInstrumentsOther.initializedCount); - // valide service, should trigger onCreate + // valid service, should trigger onCreate assertNotNull(access.env.lookup(other, TestAccessInstrumentsOther.class)); assertEquals(1, TestAccessInstrumentsOther.initializedCount); @@ -1929,7 +1929,7 @@ public void onEnter(EventContext context, VirtualFrame frame) { @TruffleBoundary private void doOnEnter(EventContext context) { if (!initializationEvents && !context.isLanguageContextInitialized()) { - // Skipt language context initialization if initializationEvents is false + // Skip language context initialization if initializationEvents is false return; } enteredNodes.add(context.getInstrumentedNode().getClass().getSimpleName()); diff --git a/truffle/src/com.oracle.truffle.api.instrumentation.test/src/com/oracle/truffle/api/instrumentation/test/TruffleContextTest.java b/truffle/src/com.oracle.truffle.api.instrumentation.test/src/com/oracle/truffle/api/instrumentation/test/TruffleContextTest.java index 448f6e9bd49d..3a6edf6c0c90 100644 --- a/truffle/src/com.oracle.truffle.api.instrumentation.test/src/com/oracle/truffle/api/instrumentation/test/TruffleContextTest.java +++ b/truffle/src/com.oracle.truffle.api.instrumentation.test/src/com/oracle/truffle/api/instrumentation/test/TruffleContextTest.java @@ -557,7 +557,7 @@ public void testInitializeCreatorContext() { public void testEvalInnerContextEvalErrors() { setupEnv(); - // regualar context must not be used + // regular context must not be used TruffleContext currentContext = languageEnv.getContext(); assertFails(() -> currentContext.evalInternal(null, newTruffleSource()), IllegalStateException.class, (e) -> { assertEquals("Only created inner contexts can be used to evaluate sources. " + diff --git a/truffle/src/com.oracle.truffle.api.instrumentation.test/src/com/oracle/truffle/api/instrumentation/test/UnwindReenterReturnTest.java b/truffle/src/com.oracle.truffle.api.instrumentation.test/src/com/oracle/truffle/api/instrumentation/test/UnwindReenterReturnTest.java index c5be54e94124..ec6d87427803 100644 --- a/truffle/src/com.oracle.truffle.api.instrumentation.test/src/com/oracle/truffle/api/instrumentation/test/UnwindReenterReturnTest.java +++ b/truffle/src/com.oracle.truffle.api.instrumentation.test/src/com/oracle/truffle/api/instrumentation/test/UnwindReenterReturnTest.java @@ -440,8 +440,8 @@ public void testMultiUnwind() throws Exception { UnwindMultiple unwindMultiple = engine.getInstruments().get("testUnwindMultiple").lookup(UnwindMultiple.class); // Unwind on enter: g -> a, e -> d (up to b due to second unwind below), l -> i unwindMultiple.submit(true, "CALL(g)", "CALL(a)", "CALL(e)", "CALL(d)", "CALL(l)", "CALL(i)"); - // Unwind on return: g -> c (runs in parralel with g -> a above, - // e -> c (runs in parralel with e -> d (up to b)) above + // Unwind on return: g -> c (runs in parallel with g -> a above, + // e -> c (runs in parallel with e -> d (up to b)) above // k -> i (runs right after early return from k below unwindMultiple.submit(false, "CALL(g)", "CALL(c)", "CALL(e)", "CALL(c)", "CALL(k)", "CALL(i)"); List actionsUnwindE = new ArrayList<>(); diff --git a/truffle/src/com.oracle.truffle.api.instrumentation.test/src/com/oracle/truffle/api/instrumentation/test/examples/StatementProfilerExampleTest.java b/truffle/src/com.oracle.truffle.api.instrumentation.test/src/com/oracle/truffle/api/instrumentation/test/examples/StatementProfilerExampleTest.java index 08bea3609790..3868fb9eb597 100644 --- a/truffle/src/com.oracle.truffle.api.instrumentation.test/src/com/oracle/truffle/api/instrumentation/test/examples/StatementProfilerExampleTest.java +++ b/truffle/src/com.oracle.truffle.api.instrumentation.test/src/com/oracle/truffle/api/instrumentation/test/examples/StatementProfilerExampleTest.java @@ -72,7 +72,7 @@ public static void installFrontEnd() { @Before public void setupProfiler() throws IOException { assureEnabled(engine.getInstruments().get(StatementProfilerExample.ID)); - // force profiler frontend attachement + // force profiler frontend attachment run(lines("")); } diff --git a/truffle/src/com.oracle.truffle.api.instrumentation/src/com/oracle/truffle/api/instrumentation/InstrumentationHandler.java b/truffle/src/com.oracle.truffle.api.instrumentation/src/com/oracle/truffle/api/instrumentation/InstrumentationHandler.java index 6170dca0228e..f92de7c0baa8 100644 --- a/truffle/src/com.oracle.truffle.api.instrumentation/src/com/oracle/truffle/api/instrumentation/InstrumentationHandler.java +++ b/truffle/src/com.oracle.truffle.api.instrumentation/src/com/oracle/truffle/api/instrumentation/InstrumentationHandler.java @@ -1678,7 +1678,7 @@ protected void postVisitNotifications(Set> providedTags, SourceSection * materialized subtrees only. The new materialized subtrees are not instrumented at all, that * is why we have to apply all bindings there. For the original nodes, applying just the new * execution binding is sufficient, because the other bindings were applied when they were - * added. Please note that this example is siplified for better readability, in particular, it + * added. Please note that this example is simplified for better readability, in particular, it * does not include find sources operations. * *

        @@ -2692,8 +2692,8 @@ public  EventBinding attachErrConsumer(T stream) {
         
                 private void verifySourceOnly(SourceSectionFilter filter) {
                     if (!filter.isSourceOnly()) {
        -                throw new IllegalArgumentException(String.format("The attached filter %s uses filters that require source sections to verifiy. " +
        -                                "Source listeners can only use filter critera based on Source objects like mimeTypeIs or sourceIs.", filter));
        +                throw new IllegalArgumentException(String.format("The attached filter %s uses filters that require source sections to verify. " +
        +                                "Source listeners can only use filter criteria based on Source objects like mimeTypeIs or sourceIs.", filter));
                     }
                 }
         
        diff --git a/truffle/src/com.oracle.truffle.api.instrumentation/src/com/oracle/truffle/api/instrumentation/SourceInstrumentationHandler.java b/truffle/src/com.oracle.truffle.api.instrumentation/src/com/oracle/truffle/api/instrumentation/SourceInstrumentationHandler.java
        index e4ba4cf0f855..2212246af230 100644
        --- a/truffle/src/com.oracle.truffle.api.instrumentation/src/com/oracle/truffle/api/instrumentation/SourceInstrumentationHandler.java
        +++ b/truffle/src/com.oracle.truffle.api.instrumentation/src/com/oracle/truffle/api/instrumentation/SourceInstrumentationHandler.java
        @@ -54,7 +54,7 @@
         import com.oracle.truffle.api.source.Source;
         
         /*
        - * Lists of sources (executed or loaded, this description further mentions ony loaded sources,
        + * Lists of sources (executed or loaded, this description further mentions only loaded sources,
          * the same holds for executed) are initialized lazily, and, to prevent deadlocks, new sources
          * can be loaded during this lazy initialization and also new bindings can be added at any time.
          * In order to guarantee that each binding is notified about each source at most once without
        diff --git a/truffle/src/com.oracle.truffle.api.instrumentation/src/com/oracle/truffle/api/instrumentation/TruffleInstrument.java b/truffle/src/com.oracle.truffle.api.instrumentation/src/com/oracle/truffle/api/instrumentation/TruffleInstrument.java
        index ac5488d997df..1a2eb886d57b 100644
        --- a/truffle/src/com.oracle.truffle.api.instrumentation/src/com/oracle/truffle/api/instrumentation/TruffleInstrument.java
        +++ b/truffle/src/com.oracle.truffle.api.instrumentation/src/com/oracle/truffle/api/instrumentation/TruffleInstrument.java
        @@ -694,7 +694,7 @@ public  S lookup(InstrumentInfo instrument, Class type) {
                     try {
                         Object vm = InstrumentAccessor.langAccess().getPolyglotInstrument(instrument);
                         if (vm == this.polyglotInstrument) {
        -                    throw new IllegalArgumentException("Not allowed to lookup services from the currrent instrument.");
        +                    throw new IllegalArgumentException("Not allowed to lookup services from the current instrument.");
                         }
                         return InstrumentAccessor.engineAccess().lookup(instrument, type);
                     } catch (Throwable t) {
        diff --git a/truffle/src/com.oracle.truffle.api.interop/src/com/oracle/truffle/api/interop/InteropException.java b/truffle/src/com.oracle.truffle.api.interop/src/com/oracle/truffle/api/interop/InteropException.java
        index 51d4f306aee8..fa03c2f1fd07 100644
        --- a/truffle/src/com.oracle.truffle.api.interop/src/com/oracle/truffle/api/interop/InteropException.java
        +++ b/truffle/src/com.oracle.truffle.api.interop/src/com/oracle/truffle/api/interop/InteropException.java
        @@ -76,7 +76,7 @@ public final synchronized Throwable getCause() {
             }
         
             /**
        -     * Initializes the casue for an interop exception. Will no longer be supported as of 20.3. Pass
        +     * Initializes the cause for an interop exception. Will no longer be supported as of 20.3. Pass
              * in the cause using the interop constructors instead.
              *
              * @deprecated Do no longer use the cause will be initialized finally.
        diff --git a/truffle/src/com.oracle.truffle.api.interop/src/com/oracle/truffle/api/interop/InteropLibrary.java b/truffle/src/com.oracle.truffle.api.interop/src/com/oracle/truffle/api/interop/InteropLibrary.java
        index 5205cda582d9..3cf6b8293b22 100644
        --- a/truffle/src/com.oracle.truffle.api.interop/src/com/oracle/truffle/api/interop/InteropLibrary.java
        +++ b/truffle/src/com.oracle.truffle.api.interop/src/com/oracle/truffle/api/interop/InteropLibrary.java
        @@ -329,7 +329,7 @@ public Object getDeclaringMetaObject(Object receiver) throws UnsupportedMessageE
             // Instantiable Messages
             /**
              * Returns true if the receiver represents an instantiable value, else
        -     * false. Contructors or {@link #isMetaObject(Object) metaobjects} are typical
        +     * false. Constructors or {@link #isMetaObject(Object) metaobjects} are typical
              * examples of instantiable values. Invoking this message does not cause any observable
              * side-effects. Note that receiver values which are {@link #isExecutable(Object) executable}
              * might also be {@link #isInstantiable(Object) instantiable}.
        @@ -2493,7 +2493,7 @@ public Object getMetaObject(Object receiver) throws UnsupportedMessageException
         
             /**
              * Converts the receiver to a human readable {@link #isString(Object) string}. Each language may
        -     * have special formating conventions - even primitive values may not follow the traditional
        +     * have special formatting conventions - even primitive values may not follow the traditional
              * Java rules. The format of the returned string is intended to be interpreted by humans not
              * machines and should therefore not be relied upon by machines. By default the receiver class
              * name and its {@link System#identityHashCode(Object) identity hash code} is used as string
        diff --git a/truffle/src/com.oracle.truffle.api.library.test/src/com/oracle/truffle/api/library/test/CachedLibraryTest.java b/truffle/src/com.oracle.truffle.api.library.test/src/com/oracle/truffle/api/library/test/CachedLibraryTest.java
        index 30da0dbfc958..6d34c6304a51 100644
        --- a/truffle/src/com.oracle.truffle.api.library.test/src/com/oracle/truffle/api/library/test/CachedLibraryTest.java
        +++ b/truffle/src/com.oracle.truffle.api.library.test/src/com/oracle/truffle/api/library/test/CachedLibraryTest.java
        @@ -933,7 +933,7 @@ static String doDefault(LibraryThatUsesExecuteNode receiver, @CachedLibrary("rec
             }
         
             /*
        -     * This test was crashing in GR-24920 as the uncached library lookup was accidently using lib1
        +     * This test was crashing in GR-24920 as the uncached library lookup was accidentally using lib1
              * to match lib2 for the generated uncached specializations.
              */
             abstract static class DispatchedAndExpressionLibraryNode extends Node {
        diff --git a/truffle/src/com.oracle.truffle.api.library.test/src/com/oracle/truffle/api/library/test/DynamicDispatchTest.java b/truffle/src/com.oracle.truffle.api.library.test/src/com/oracle/truffle/api/library/test/DynamicDispatchTest.java
        index 8845d22139cb..6d19c2cfe996 100644
        --- a/truffle/src/com.oracle.truffle.api.library.test/src/com/oracle/truffle/api/library/test/DynamicDispatchTest.java
        +++ b/truffle/src/com.oracle.truffle.api.library.test/src/com/oracle/truffle/api/library/test/DynamicDispatchTest.java
        @@ -243,7 +243,7 @@ public void testDispatchChanges() {
                 assertFalse(lib.accepts(new DynamicDispatch(FinalDispatch.class)));
         
                 // change dispatch to valid dispatch
        -        // this shoudl work
        +        // this should work
                 object.dispatch = DynamicDispatchTarget1.class;
                 assertFalse(lib.accepts(object));
                 lib = createLibrary(TestDispatchLibrary.class, object);
        diff --git a/truffle/src/com.oracle.truffle.api.library.test/src/com/oracle/truffle/api/library/test/ExportMethodTest.java b/truffle/src/com.oracle.truffle.api.library.test/src/com/oracle/truffle/api/library/test/ExportMethodTest.java
        index 2c1a22237095..421649c1db9d 100644
        --- a/truffle/src/com.oracle.truffle.api.library.test/src/com/oracle/truffle/api/library/test/ExportMethodTest.java
        +++ b/truffle/src/com.oracle.truffle.api.library.test/src/com/oracle/truffle/api/library/test/ExportMethodTest.java
        @@ -417,7 +417,7 @@ static class ExportsTestObjectError5 {
             static class ExportsTestObjectError6 {
         
                 @ExportMessage
        -        @ExpectError({"The message name 'foo' is ambiguous for libraries ExportsTestLibrary1 and ExportsTestLibrary2. Disambiguate the library by specifying the library explicitely using " +
        +        @ExpectError({"The message name 'foo' is ambiguous for libraries ExportsTestLibrary1 and ExportsTestLibrary2. Disambiguate the library by specifying the library explicitly using " +
                                 "@ExportMessage(library=Library.class)."})
                 String foo() {
                     return "foo";
        @@ -472,7 +472,7 @@ public int intArg(@ExpectError("Invalid parameter type. Expected 'int' but was '
                     return 42;
                 }
         
        -        // wront class type
        +        // wrong class type
                 @ExportMessage
                 public TestClass classArg(@ExpectError("Invalid parameter type. Expected 'TestClass' but was 'Object'.%") Object arg) {
                     return (TestClass) arg;
        @@ -501,7 +501,7 @@ public int varArgsInt() {
             }
         
             @ExportLibrary(ExportsTestLibrary5.class)
        -    @ExpectError("Type ExportsTestObjectError12 is not compatible with the receiver type 'CharSequence' of exported library 'ExportsTestLibrary5'. Inhert from type 'CharSequence' to resolve this.")
        +    @ExpectError("Type ExportsTestObjectError12 is not compatible with the receiver type 'CharSequence' of exported library 'ExportsTestLibrary5'. Inherit from type 'CharSequence' to resolve this.")
             static class ExportsTestObjectError12 {
                 @ExportMessage
                 public int intArg(int arg) {
        diff --git a/truffle/src/com.oracle.truffle.api.library.test/src/com/oracle/truffle/api/library/test/ExportNodeTest.java b/truffle/src/com.oracle.truffle.api.library.test/src/com/oracle/truffle/api/library/test/ExportNodeTest.java
        index a0e0086231d6..cfb5a1900df4 100644
        --- a/truffle/src/com.oracle.truffle.api.library.test/src/com/oracle/truffle/api/library/test/ExportNodeTest.java
        +++ b/truffle/src/com.oracle.truffle.api.library.test/src/com/oracle/truffle/api/library/test/ExportNodeTest.java
        @@ -499,7 +499,7 @@ static class ErrorBindThisInExport {
                 @ExportMessage
                 public String m0(String argument,
                                 @ExpectError("Variable 'this' is reserved for library receiver values in methods annotated with @ExportMessage. " +
        -                                        "If the intention was to access the encapsulting Node for inlined nodes or profiles, you may use '$node' as expression instead.") @Bind("this") Node node) {
        +                                        "If the intention was to access the encapsulating Node for inlined nodes or profiles, you may use '$node' as expression instead.") @Bind("this") Node node) {
                     throw new AssertionError();
                 }
         
        diff --git a/truffle/src/com.oracle.truffle.api.library.test/src/com/oracle/truffle/api/library/test/GenerateLibraryTest.java b/truffle/src/com.oracle.truffle.api.library.test/src/com/oracle/truffle/api/library/test/GenerateLibraryTest.java
        index 64ebc4bfa803..0ff567a00809 100644
        --- a/truffle/src/com.oracle.truffle.api.library.test/src/com/oracle/truffle/api/library/test/GenerateLibraryTest.java
        +++ b/truffle/src/com.oracle.truffle.api.library.test/src/com/oracle/truffle/api/library/test/GenerateLibraryTest.java
        @@ -345,7 +345,7 @@ static void foo(Integer receiver) {
                 }
             }
         
        -    @ExpectError("Type InvalidExportsTypeImpl is not compatible with the receiver type 'ExportsType' of exported library 'ExportsTypeLibrary'. Inhert from type 'ExportsType' to resolve this.")
        +    @ExpectError("Type InvalidExportsTypeImpl is not compatible with the receiver type 'ExportsType' of exported library 'ExportsTypeLibrary'. Inherit from type 'ExportsType' to resolve this.")
             @ExportLibrary(value = ExportsTypeLibrary.class)
             public static class InvalidExportsTypeImpl {
                 @ExportMessage
        diff --git a/truffle/src/com.oracle.truffle.api.library.test/src/com/oracle/truffle/api/library/test/RecursiveInitializationTest.java b/truffle/src/com.oracle.truffle.api.library.test/src/com/oracle/truffle/api/library/test/RecursiveInitializationTest.java
        index 6958cde00db4..8fc30c8dd55f 100644
        --- a/truffle/src/com.oracle.truffle.api.library.test/src/com/oracle/truffle/api/library/test/RecursiveInitializationTest.java
        +++ b/truffle/src/com.oracle.truffle.api.library.test/src/com/oracle/truffle/api/library/test/RecursiveInitializationTest.java
        @@ -70,7 +70,7 @@ public static RecursiveLibrary getUncached() {
             public void testRecursiveResolve() {
                 /*
                  * Resolving the library triggers the gen class to load which if it triggers the library
        -         * class to load will result in resolving the library again whe initializing the FACTORY
        +         * class to load will result in resolving the library again when initializing the FACTORY
                  * static variable. To solve this the gen class must never trigger initialization of the
                  * library class. Instead ,we explicitly load the library class using Class.forName but
                  * without initialization. If this test succeeds then the recursive resolve worked.
        diff --git a/truffle/src/com.oracle.truffle.api.library/src/com/oracle/truffle/api/library/GenerateLibrary.java b/truffle/src/com.oracle.truffle.api.library/src/com/oracle/truffle/api/library/GenerateLibrary.java
        index 6bed18f8c84c..c3bbcf47e6ff 100644
        --- a/truffle/src/com.oracle.truffle.api.library/src/com/oracle/truffle/api/library/GenerateLibrary.java
        +++ b/truffle/src/com.oracle.truffle.api.library/src/com/oracle/truffle/api/library/GenerateLibrary.java
        @@ -109,7 +109,7 @@
          * updated.
          *
          * @see DefaultExport to specify default exports.
        - * @see Abstract to make messages abstract if they have a default implemetnation
        + * @see Abstract to make messages abstract if they have a default implementation
          * @since 19.0
          */
         @Retention(RetentionPolicy.RUNTIME)
        diff --git a/truffle/src/com.oracle.truffle.api.library/src/com/oracle/truffle/api/library/LibraryExport.java b/truffle/src/com.oracle.truffle.api.library/src/com/oracle/truffle/api/library/LibraryExport.java
        index f222b8b9cbd0..4f1c3a130fca 100644
        --- a/truffle/src/com.oracle.truffle.api.library/src/com/oracle/truffle/api/library/LibraryExport.java
        +++ b/truffle/src/com.oracle.truffle.api.library/src/com/oracle/truffle/api/library/LibraryExport.java
        @@ -144,7 +144,7 @@ protected static  T createDelegate(LibraryFactory factory,
                 if (!delegate.isAdoptable()) {
                     /*
                      * We force adoption for the uncached case because we need the parent pointer to
        -             * implement @CachedLibrary("this"), as this should point to the parent delgate library.
        +             * implement @CachedLibrary("this"), as this should point to the parent delegate library.
                      * With this we can use the same parent pointer approach for cached and uncached.
                      */
                     LibraryAccessor.nodeAccessor().forceAdoption(parent, delegate);
        diff --git a/truffle/src/com.oracle.truffle.api.library/src/com/oracle/truffle/api/library/LibraryFactory.java b/truffle/src/com.oracle.truffle.api.library/src/com/oracle/truffle/api/library/LibraryFactory.java
        index 0839826cbb68..5078832a9cfb 100644
        --- a/truffle/src/com.oracle.truffle.api.library/src/com/oracle/truffle/api/library/LibraryFactory.java
        +++ b/truffle/src/com.oracle.truffle.api.library/src/com/oracle/truffle/api/library/LibraryFactory.java
        @@ -85,7 +85,7 @@
          * Library instances are either cached or uncached. Cached instances are library
          * instances designed to be used in ASTs. Cached instances are typically {@link Node#isAdoptable()
          * adoptable} and store additional profiling information for the cached export. This allows to
        - * generate call-site specific profiling information for libray calls. Before a cached instance can
        + * generate call-site specific profiling information for library calls. Before a cached instance can
          * be used it must be {@link Node#insert(Node) adopted} by a parent node.
          * 

        * Uncached versions are designed to be used from slow-path runtime methods or whenever call-site diff --git a/truffle/src/com.oracle.truffle.api.profiles/src/com/oracle/truffle/api/profiles/InlinedProfile.java b/truffle/src/com.oracle.truffle.api.profiles/src/com/oracle/truffle/api/profiles/InlinedProfile.java index 7633cf71bfb2..886439190fbe 100644 --- a/truffle/src/com.oracle.truffle.api.profiles/src/com/oracle/truffle/api/profiles/InlinedProfile.java +++ b/truffle/src/com.oracle.truffle.api.profiles/src/com/oracle/truffle/api/profiles/InlinedProfile.java @@ -71,7 +71,7 @@ * forwarded to the compiler depends on the capabilities of the {@link TruffleRuntime runtime * system}. If the runtime returns true in {@link TruffleRuntime#isProfilingEnabled()} * then runtime information will get collected. This comes at at the cost of additional overhead and - * footprint in interpreted mode. Thats why the factory methods of profiles can return + * footprint in interpreted mode. That's why the factory methods of profiles can return * implementations where profiling is disabled. Using disabled profiles makes sense for runtimes * that are unable to use the collected profiling information. Even runtime implementations that are * able to use this information might decide to turn off profiling for benchmarking purposes. diff --git a/truffle/src/com.oracle.truffle.api.profiles/src/com/oracle/truffle/api/profiles/Profile.java b/truffle/src/com.oracle.truffle.api.profiles/src/com/oracle/truffle/api/profiles/Profile.java index 000c17e1a8fa..db0de1133a0e 100644 --- a/truffle/src/com.oracle.truffle.api.profiles/src/com/oracle/truffle/api/profiles/Profile.java +++ b/truffle/src/com.oracle.truffle.api.profiles/src/com/oracle/truffle/api/profiles/Profile.java @@ -83,7 +83,7 @@ * capabilities of the {@link TruffleRuntime runtime system}. If the runtime returns * true in {@link TruffleRuntime#isProfilingEnabled()} then runtime information will * get collected. This comes at at the cost of additional overhead and footprint in interpreted - * mode. Thats why the factory methods of profiles can return implementations where profiling is + * mode. That's why the factory methods of profiles can return implementations where profiling is * disabled. Using disabled profiles makes sense for runtimes that are unable to use the collected * profiling information. Even runtime implementations that are able to use this information might * decide to turn off profiling for benchmarking purposes. diff --git a/truffle/src/com.oracle.truffle.api.staticobject/src/com/oracle/truffle/api/staticobject/ArrayBasedStaticShape.java b/truffle/src/com.oracle.truffle.api.staticobject/src/com/oracle/truffle/api/staticobject/ArrayBasedStaticShape.java index b634e030f509..8ec4ea22a694 100644 --- a/truffle/src/com.oracle.truffle.api.staticobject/src/com/oracle/truffle/api/staticobject/ArrayBasedStaticShape.java +++ b/truffle/src/com.oracle.truffle.api.staticobject/src/com/oracle/truffle/api/staticobject/ArrayBasedStaticShape.java @@ -478,7 +478,7 @@ private static void scheduleHole(int holeStart, int holeEnd, int[] counts, List< int misalignment = newEnd % byteCount; int aligned = newEnd - misalignment; if (aligned < holeStart) { - // re-aligning the store makes it overlap with somethig else: abort. + // re-aligning the store makes it overlap with something else: abort. i++; continue mainloop; } diff --git a/truffle/src/com.oracle.truffle.api.test/src/com/oracle/truffle/api/test/polyglot/AbstractPolyglotTest.java b/truffle/src/com.oracle.truffle.api.test/src/com/oracle/truffle/api/test/polyglot/AbstractPolyglotTest.java index 787c06f2efce..b61d6369d5c9 100644 --- a/truffle/src/com.oracle.truffle.api.test/src/com/oracle/truffle/api/test/polyglot/AbstractPolyglotTest.java +++ b/truffle/src/com.oracle.truffle.api.test/src/com/oracle/truffle/api/test/polyglot/AbstractPolyglotTest.java @@ -480,7 +480,7 @@ protected TestRootNode(TruffleLanguage language, Node node) { @Override public Object execute(VirtualFrame frame) { - // does nothing node is supposed to be exectued + // does nothing node is supposed to be executed // externally. return null; } diff --git a/truffle/src/com.oracle.truffle.api.test/src/com/oracle/truffle/api/test/polyglot/LanguageSPITest.java b/truffle/src/com.oracle.truffle.api.test/src/com/oracle/truffle/api/test/polyglot/LanguageSPITest.java index 22f1881cf94f..b254b023df80 100644 --- a/truffle/src/com.oracle.truffle.api.test/src/com/oracle/truffle/api/test/polyglot/LanguageSPITest.java +++ b/truffle/src/com.oracle.truffle.api.test/src/com/oracle/truffle/api/test/polyglot/LanguageSPITest.java @@ -1343,7 +1343,7 @@ protected Object execute(RootNode node, Env env, Object[] contextArguments, Obje c = builder.arguments(TestUtils.getDefaultLanguageId(InnerContextArgumentsLanguage.class), new String[]{"innerArgs"}).build(); prev = c.enter(null); try { - // if set for inner contexts application arguments are availble + // if set for inner contexts application arguments are available assertArrayEquals(new String[]{"innerArgs"}, CONTEXT_REFERENCE.get(null).env.getApplicationArguments()); } finally { c.leave(null, prev); @@ -1604,7 +1604,7 @@ protected Object execute(RootNode node, Env env, Object[] contextArguments, Obje c1.close(); } - // not exisiting language + // not existing language var builder0 = env.newInnerContextBuilder("$$$invalidLanguage$$$"); assertFails(() -> builder0.build(), IllegalArgumentException.class, (e) -> { assertTrue(e.getMessage(), @@ -2379,7 +2379,7 @@ public OptionDescriptor get(String optionName) { } c.close(); - // test lazyness when using meta-data + // test laziness when using meta-data getOptionDescriptors.set(0); iterator.set(0); get.set(0); diff --git a/truffle/src/com.oracle.truffle.api.test/src/com/oracle/truffle/api/test/polyglot/SourceAPITest.java b/truffle/src/com.oracle.truffle.api.test/src/com/oracle/truffle/api/test/polyglot/SourceAPITest.java index a9c29bc14e82..7f2555ca2a8a 100644 --- a/truffle/src/com.oracle.truffle.api.test/src/com/oracle/truffle/api/test/polyglot/SourceAPITest.java +++ b/truffle/src/com.oracle.truffle.api.test/src/com/oracle/truffle/api/test/polyglot/SourceAPITest.java @@ -335,13 +335,13 @@ public void testBuildBinarySources() throws IOException { File file = File.createTempFile("Hello", ".bin").getCanonicalFile(); file.deleteOnExit(); - // mime-type not specified + invalid langauge -> characters + // mime-type not specified + invalid language -> characters source = Source.newBuilder(BuildBinarySourcesLanguage.ID, file).build(); assertFalse(source.hasBytes()); assertTrue(source.hasCharacters()); AbstractExecutableTestLanguage.parseTestLanguage(context, BuildBinarySourcesLanguage.class, source, false, true); - // mime-type not specified + invalid langauge -> characters + // mime-type not specified + invalid language -> characters source = Source.newBuilder(BuildBinarySourcesLanguage.ID, file).content(bytes).mimeType(BuildBinarySourcesLanguage.MIME_BINARY).build(); assertTrue(source.hasBytes()); assertFalse(source.hasCharacters()); diff --git a/truffle/src/com.oracle.truffle.api.test/src/com/oracle/truffle/api/test/polyglot/ValueHostConversionTest.java b/truffle/src/com.oracle.truffle.api.test/src/com/oracle/truffle/api/test/polyglot/ValueHostConversionTest.java index b76b762405aa..75c3bb7a915a 100644 --- a/truffle/src/com.oracle.truffle.api.test/src/com/oracle/truffle/api/test/polyglot/ValueHostConversionTest.java +++ b/truffle/src/com.oracle.truffle.api.test/src/com/oracle/truffle/api/test/polyglot/ValueHostConversionTest.java @@ -627,7 +627,7 @@ public void testLongHierarchy() { assertEquals("int", hierarchy.execute((float) -(Math.pow(2, 24) - 1)).asString()); assertEquals("int", hierarchy.execute((float) +(Math.pow(2, 24) - 1)).asString()); assertEquals("int", hierarchy.execute((float) Integer.MIN_VALUE).asString()); - // float cannot precisely store Integer.MAX_VALUE, but the converison to float yields a + // float cannot precisely store Integer.MAX_VALUE, but the conversion to float yields a // number that can fit into long, namely Integer.MAX_VALUE + 1 = 2147483648. assertEquals("long", hierarchy.execute((float) Integer.MAX_VALUE).asString()); diff --git a/truffle/src/com.oracle.truffle.api.test/src/com/oracle/truffle/api/test/source/SourceBuilderTest.java b/truffle/src/com.oracle.truffle.api.test/src/com/oracle/truffle/api/test/source/SourceBuilderTest.java index d762db136671..958563678c9b 100644 --- a/truffle/src/com.oracle.truffle.api.test/src/com/oracle/truffle/api/test/source/SourceBuilderTest.java +++ b/truffle/src/com.oracle.truffle.api.test/src/com/oracle/truffle/api/test/source/SourceBuilderTest.java @@ -193,12 +193,12 @@ public void testBuildBinarySources() throws IOException { file.deleteOnExit(); TruffleFile truffleFile = languageEnv.getPublicTruffleFile(file.getPath()); - // mime-type not specified + invalid langauge -> characters + // mime-type not specified + invalid language -> characters source = Source.newBuilder("", truffleFile).build(); assertFalse(source.hasBytes()); assertTrue(source.hasCharacters()); - // mime-type not specified + invalid langauge -> characters + // mime-type not specified + invalid language -> characters source = Source.newBuilder("", truffleFile).content(bytes).build(); assertTrue(source.hasBytes()); assertFalse(source.hasCharacters()); diff --git a/truffle/src/com.oracle.truffle.api.utilities/src/com/oracle/truffle/api/utilities/TriState.java b/truffle/src/com.oracle.truffle.api.utilities/src/com/oracle/truffle/api/utilities/TriState.java index 1b9fb97f3a9f..df89b5e201ec 100644 --- a/truffle/src/com.oracle.truffle.api.utilities/src/com/oracle/truffle/api/utilities/TriState.java +++ b/truffle/src/com.oracle.truffle.api.utilities/src/com/oracle/truffle/api/utilities/TriState.java @@ -82,7 +82,7 @@ public static TriState valueOf(boolean b) { } /** - * Create a {@link TriState} from a boxed {@link Boolean} explicitely checking for + * Create a {@link TriState} from a boxed {@link Boolean} explicitly checking for * null and returning {@link #UNDEFINED}. * * @since 20.2 diff --git a/truffle/src/com.oracle.truffle.api/src/com/oracle/truffle/api/TruffleLanguage.java b/truffle/src/com.oracle.truffle.api/src/com/oracle/truffle/api/TruffleLanguage.java index 166f768065c2..5a384a6455f5 100644 --- a/truffle/src/com.oracle.truffle.api/src/com/oracle/truffle/api/TruffleLanguage.java +++ b/truffle/src/com.oracle.truffle.api/src/com/oracle/truffle/api/TruffleLanguage.java @@ -173,7 +173,7 @@ * L: number of installed languages * I: number of installed instruments * - * - 1 : Host VM Processs + * - 1 : Host VM Processes * - N : {@linkplain org.graalvm.polyglot.Engine Engine} * - N : {@linkplain org.graalvm.polyglot.Context Context} * - L : Language Context @@ -2752,7 +2752,7 @@ public S lookup(InstrumentInfo instrument, Class type) { /** * Returns an additional service provided by the given language, specified by type. For * services registered by {@link Registration#services()} the service lookup will ensure - * that the language is loaded and services are registered. The provided langauge and type + * that the language is loaded and services are registered. The provided language and type * must not be null. * * @param the requested type @@ -2836,7 +2836,7 @@ public LanguageInfo getHostLanguage() { * Using the language instance additional services can be * {@link #lookup(LanguageInfo, Class) looked up}. {@link #parsePublic(Source, String...)} * is allowed for all languages returned by this method. This list of languages may be - * exposed ot the guest language program. + * exposed to the guest language program. * * @see #parsePublic(Source, String...) * @since 19.2 @@ -4068,7 +4068,7 @@ protected LanguageReference() { public abstract L get(Node node); /** - * Creates a new instance of a langauge reference for an registered language. Throws + * Creates a new instance of a language reference for an registered language. Throws * {@link IllegalArgumentException} if the provided language class is not * {@link Registration registered}. Guaranteed to always return the same context reference * for a given language class. @@ -4534,7 +4534,7 @@ protected boolean isThreadAccessAllowed(Thread thread, @Override protected void initializeContext(Context context) throws Exception { // create and start a Thread for the asynchronous task - // remeber the Thread reference to stop and join it in + // remember the Thread reference to stop and join it in // the finalizeContext Thread t = context.env.newTruffleThreadBuilder(new Runnable() { @Override diff --git a/truffle/src/com.oracle.truffle.api/src/com/oracle/truffle/api/TruffleSafepoint.java b/truffle/src/com.oracle.truffle.api/src/com/oracle/truffle/api/TruffleSafepoint.java index cbaa4fedd1f0..56188e7272ca 100644 --- a/truffle/src/com.oracle.truffle.api/src/com/oracle/truffle/api/TruffleSafepoint.java +++ b/truffle/src/com.oracle.truffle.api/src/com/oracle/truffle/api/TruffleSafepoint.java @@ -167,7 +167,7 @@ public static void poll(Node location) { * TruffleSafepoint safepoint = TruffleSafepoint.getCurrent(); * boolean prev = safepoint.setAllowSideEffects(false); * try { - * // criticial section + * // critical section * } finally { * safepoint.setAllowSideEffects(prev); * TruffleSafepoint.pollHere(this); diff --git a/truffle/src/com.oracle.truffle.api/src/com/oracle/truffle/api/impl/DefaultAssumption.java b/truffle/src/com.oracle.truffle.api/src/com/oracle/truffle/api/impl/DefaultAssumption.java index eeed6895f964..536094b4fced 100644 --- a/truffle/src/com.oracle.truffle.api/src/com/oracle/truffle/api/impl/DefaultAssumption.java +++ b/truffle/src/com.oracle.truffle.api/src/com/oracle/truffle/api/impl/DefaultAssumption.java @@ -93,7 +93,7 @@ static DefaultAssumption createAlwaysValid() { */ static class Lazy { /* - * We use an Object instead of a String here to avoid accidently handing out the always + * We use an Object instead of a String here to avoid accidentally handing out the always * valid string object in getName(). */ static final Object ALWAYS_VALID_NAME = new Object() { diff --git a/truffle/src/com.oracle.truffle.api/src/com/oracle/truffle/api/memory/ReversedByteArraySupport.java b/truffle/src/com.oracle.truffle.api/src/com/oracle/truffle/api/memory/ReversedByteArraySupport.java index de818aaa8d83..3e453b5dcb16 100644 --- a/truffle/src/com.oracle.truffle.api/src/com/oracle/truffle/api/memory/ReversedByteArraySupport.java +++ b/truffle/src/com.oracle.truffle.api/src/com/oracle/truffle/api/memory/ReversedByteArraySupport.java @@ -43,7 +43,7 @@ /** * Proxies another {@link ByteArraySupport} implementation, reversing the order of accessed bytes. - * In other terms, if the proxied implemention has little-endian order, wrapping it with + * In other terms, if the proxied implementation has little-endian order, wrapping it with * {@link ReversedByteArraySupport} allows reading and writing in big-endian order, and vice versa. */ final class ReversedByteArraySupport extends ByteArraySupport { diff --git a/truffle/src/com.oracle.truffle.api/src/com/oracle/truffle/api/nodes/Node.java b/truffle/src/com.oracle.truffle.api/src/com/oracle/truffle/api/nodes/Node.java index bee27c914608..4e117a090ee9 100644 --- a/truffle/src/com.oracle.truffle.api/src/com/oracle/truffle/api/nodes/Node.java +++ b/truffle/src/com.oracle.truffle.api/src/com/oracle/truffle/api/nodes/Node.java @@ -214,7 +214,7 @@ public SourceSection getEncapsulatingSourceSection() { /** * Returns true if this node can be adopted by a parent. This method is intended to - * be overriden by subclasses. If nodes need to be statically shared that they must not be + * be overridden by subclasses. If nodes need to be statically shared that they must not be * adoptable, because otherwise the parent reference might cause a memory leak. If a node is not * adoptable then then it is guaranteed that the {@link #getParent() parent} pointer remains * null at all times, even if the node is tried to be adopted by a parent. diff --git a/truffle/src/com.oracle.truffle.dsl.processor/src/com/oracle/truffle/dsl/processor/InstrumentableProcessor.java b/truffle/src/com.oracle.truffle.dsl.processor/src/com/oracle/truffle/dsl/processor/InstrumentableProcessor.java index 8650d81d6153..3c9f5ef10815 100644 --- a/truffle/src/com.oracle.truffle.dsl.processor/src/com/oracle/truffle/dsl/processor/InstrumentableProcessor.java +++ b/truffle/src/com.oracle.truffle.dsl.processor/src/com/oracle/truffle/dsl/processor/InstrumentableProcessor.java @@ -321,7 +321,7 @@ private CodeTypeElement generateWrapper(ProcessorContext context, Element e, boo } if (constructor == null) { - emitError(sourceType, "No suiteable constructor found for wrapper factory generation. At least one default or copy constructor must be visible."); + emitError(sourceType, "No suitable constructor found for wrapper factory generation. At least one default or copy constructor must be visible."); return null; } diff --git a/truffle/src/com.oracle.truffle.dsl.processor/src/com/oracle/truffle/dsl/processor/generator/FlatNodeGenFactory.java b/truffle/src/com.oracle.truffle.dsl.processor/src/com/oracle/truffle/dsl/processor/generator/FlatNodeGenFactory.java index 05a831430f65..f04f81c73050 100644 --- a/truffle/src/com.oracle.truffle.dsl.processor/src/com/oracle/truffle/dsl/processor/generator/FlatNodeGenFactory.java +++ b/truffle/src/com.oracle.truffle.dsl.processor/src/com/oracle/truffle/dsl/processor/generator/FlatNodeGenFactory.java @@ -5542,7 +5542,7 @@ private CodeTree createSpecialize(CodeTreeBuilder parent, FrameState frameState, // encoded enums do not need to be cleared continue; } else if (cache.getInlinedNode() != null) { - // inlined nodes do not need to be clared + // inlined nodes do not need to be cleared continue; } else if (cache.isAlwaysInitialized()) { continue; @@ -5754,7 +5754,7 @@ private CodeTree initializeSpecializationClass(FrameState frameState, Specializa CodeTreeBuilder builder = new CodeTreeBuilder(null); builder.startStatement(); if (frameState.get(localName) == null) { - // not yet declared + // not yet decleared builder.string(typeName); builder.string(" "); } diff --git a/truffle/src/com.oracle.truffle.dsl.processor/src/com/oracle/truffle/dsl/processor/library/ExportsParser.java b/truffle/src/com.oracle.truffle.dsl.processor/src/com/oracle/truffle/dsl/processor/library/ExportsParser.java index 7763926f60b5..43f10891594b 100644 --- a/truffle/src/com.oracle.truffle.dsl.processor/src/com/oracle/truffle/dsl/processor/library/ExportsParser.java +++ b/truffle/src/com.oracle.truffle.dsl.processor/src/com/oracle/truffle/dsl/processor/library/ExportsParser.java @@ -292,7 +292,7 @@ protected ExportsData parse(Element element, List elementMirro } } } - // avoid removal of elements if errors occured. + // avoid removal of elements if errors occurred. if (model.hasErrors()) { return model; } @@ -318,7 +318,7 @@ protected ExportsData parse(Element element, List elementMirro } } - // avoid removal of elements if errors occured. + // avoid removal of elements if errors occurred. if (model.hasErrors()) { return model; } @@ -839,7 +839,7 @@ private ExportsData parseExports(TypeElement type, List elemen } else { if (!isSubtype(type.asType(), libraryData.getExportsReceiverType())) { lib.addError("Type %s is not compatible with the receiver type '%s' of exported library '%s'. " + - "Inhert from type '%s' to resolve this.", + "Inherit from type '%s' to resolve this.", getSimpleName(type.asType()), getSimpleName(libraryData.getExportsReceiverType()), getSimpleName(libraryData.getTemplateType().asType()), @@ -1066,7 +1066,7 @@ private List parseExportedMessage(ExportsData model, Element sep = " and "; } error = String.format("The message name '%s' is ambiguous for libraries %s. " + - "Disambiguate the library by specifying the library explicitely using @%s(library=Library.class).", + "Disambiguate the library by specifying the library explicitly using @%s(library=Library.class).", name, libBuilder.toString(), types.ExportMessage.asElement().getSimpleName().toString()); model.addError(member, error); return Collections.emptyList(); @@ -1086,7 +1086,7 @@ private List parseExportedMessage(ExportsData model, Element if (mirror == null) { error = String.format("Class '%s' is not a library annotated with @%s.", qualifiedName, types.GenerateLibrary.asElement().getSimpleName().toString()); } else { - error = String.format("Explicitely specified library '%s' also needs to be exported on the class using @%s(%s.class).", qualifiedName, + error = String.format("Explicitly specified library '%s' also needs to be exported on the class using @%s(%s.class).", qualifiedName, types.ExportLibrary.asElement().getSimpleName().toString(), getSimpleName(library)); } @@ -1324,7 +1324,7 @@ private void initializeExportedMethod(Map parsedNodeCache, Exp } if (exportsLibrary.isExplicitReceiver() && !exportedMethod.getModifiers().contains(STATIC)) { - exportedElement.addError("Exported method must be static. @%s annotated types with explcit receiverClass must only contain static methods.", + exportedElement.addError("Exported method must be static. @%s annotated types with explicit receiverClass must only contain static methods.", types.ExportLibrary.asElement().getSimpleName().toString()); } } diff --git a/truffle/src/com.oracle.truffle.dsl.processor/src/com/oracle/truffle/dsl/processor/model/NodeData.java b/truffle/src/com.oracle.truffle.dsl.processor/src/com/oracle/truffle/dsl/processor/model/NodeData.java index af1f3973cfcd..33b36f33b69a 100644 --- a/truffle/src/com.oracle.truffle.dsl.processor/src/com/oracle/truffle/dsl/processor/model/NodeData.java +++ b/truffle/src/com.oracle.truffle.dsl.processor/src/com/oracle/truffle/dsl/processor/model/NodeData.java @@ -644,7 +644,7 @@ public List getChildren() { public Collection computeUncachedSpecializations(List s) { Set uncached = new LinkedHashSet<>(s); - // remove all replacable specializations + // remove all replaceable specializations for (SpecializationData specialization : s) { uncached.removeAll(specialization.getReplaces()); } diff --git a/truffle/src/com.oracle.truffle.dsl.processor/src/com/oracle/truffle/dsl/processor/parser/NodeParser.java b/truffle/src/com.oracle.truffle.dsl.processor/src/com/oracle/truffle/dsl/processor/parser/NodeParser.java index 216d95c2ad8a..431a82178129 100644 --- a/truffle/src/com.oracle.truffle.dsl.processor/src/com/oracle/truffle/dsl/processor/parser/NodeParser.java +++ b/truffle/src/com.oracle.truffle.dsl.processor/src/com/oracle/truffle/dsl/processor/parser/NodeParser.java @@ -599,7 +599,7 @@ private void verifyRecommendationWarnings(NodeData node, boolean recommendInline if (mode == ParseMode.DEFAULT && element.getSimpleName().toString().startsWith("execute")) { specialization.addWarning("It is discouraged that @%s annotated methods start with the prefix 'execute'. " + // - "This prefix is reserved for execute methods, which identifies methods to execute nodes and should alwas be separate from execute methods. " + // + "This prefix is reserved for execute methods, which identifies methods to execute nodes and should always be separate from execute methods. " + // "Rename this method to resolve this. Examples for specialization names are 'doInt', 'doInBounds' or 'doCached'.", getSimpleName(types.Specialization)); } @@ -650,7 +650,7 @@ private void verifyRecommendationWarnings(NodeData node, boolean recommendInline getSimpleName(types.GenerateInline)); } else if (!isStatic) { specialization.addError("For @%s annotated nodes all specialization methods with inlined cached values must be static. " + - "The method must be static to avoid accidently passing the wrong node parameter to inlined cached nodes. " + + "The method must be static to avoid accidentally passing the wrong node parameter to inlined cached nodes. " + "To resolve this add the static keyword to the specialization method. ", getSimpleName(types.GenerateInline)); } @@ -693,7 +693,7 @@ private void verifyRecommendationWarnings(NodeData node, boolean recommendInline String message = String.format( "For this specialization with inlined cache parameters it is recommended to use the static modifier. " + // - "The method should be static to avoid accidently passing the wrong node parameter to inlined cached nodes. " + + "The method should be static to avoid accidentally passing the wrong node parameter to inlined cached nodes. " + "To resolve this add the static keyword to the specialization method. "); specialization.addSuppressableWarning(TruffleSuppressedWarnings.STATIC_METHOD, message); @@ -816,7 +816,7 @@ private boolean initializeInlinable(DSLExpressionResolver resolver, NodeData nod cache.addError(inlineValue, "Cached type '%s' does not support inlining. " + // "Only inlinable types are supported for nodes annotated with @%s. " + // "Inlinable types declare a static inline method or use the @%s annotation. " + // - "Non node references and primtives types are also considered inlinable.", + "Non node references and primitives types are also considered inlinable.", getSimpleName(cache.getParameter().getType()), getSimpleName(types.GenerateInline), getSimpleName(types.GenerateInline)); @@ -935,7 +935,7 @@ private boolean initializeInlinable(DSLExpressionResolver resolver, NodeData nod if (cache.getInlinedNode() != null && inline != null && inline) { if (emitErrors) { cache.addSuppressableWarning(TruffleSuppressedWarnings.UNUSED, inlineValue, "Redundant specification of @%s(... inline=true). " + // - "Cached values of nodes with @%s are implicitely inlined.", + "Cached values of nodes with @%s are implicitly inlined.", getSimpleName(types.GenerateInline), getSimpleName(types.Cached), getSimpleName(types.GenerateInline)); @@ -1592,7 +1592,7 @@ private static void initializeExecutableTypeHierarchy(NodeData node) { for (int i = 1; i < rootTypes.size(); i++) { ExecutableTypeData rootType = rootTypes.get(i); if (rootType.isAbstract()) { - // cannot implemement root + // cannot implement root additionalAbstractRootTypes.add(rootType); } else { node.getExecutableTypes().remove(rootType); @@ -3225,7 +3225,7 @@ private SpecializationData initializeCaches(SpecializationData specialization, D Iterator firstParameter = specialization.getSignatureParameters().iterator(); if (firstParameter.hasNext() && firstParameter.next().getVariableElement().getSimpleName().toString().equals("this")) { cache.addError("Variable 'this' is reserved for library receiver values in methods annotated with @%s. " + - "If the intention was to access the encapsulting Node for inlined nodes or profiles, you may use '%s' as expression instead.", + "If the intention was to access the encapsulating Node for inlined nodes or profiles, you may use '%s' as expression instead.", getSimpleName(types.ExportMessage), NodeParser.NODE_KEYWORD); } diff --git a/truffle/src/com.oracle.truffle.host/src/com/oracle/truffle/host/HostMethodScope.java b/truffle/src/com.oracle.truffle.host/src/com/oracle/truffle/host/HostMethodScope.java index 54a6d2c13951..8a496ebe2293 100644 --- a/truffle/src/com.oracle.truffle.host/src/com/oracle/truffle/host/HostMethodScope.java +++ b/truffle/src/com.oracle.truffle.host/src/com/oracle/truffle/host/HostMethodScope.java @@ -218,7 +218,7 @@ static final class ScopedObject implements TruffleObject { volatile HostMethodScope scope; // null if pinned /* * Index in the scope to remove it from the scope list when pinned. Negative index indicate - * a position in the dynamic scope and positive indices a postion in the static scope. + * a position in the dynamic scope and positive indices a position in the static scope. */ private final int index; diff --git a/truffle/src/com.oracle.truffle.host/src/com/oracle/truffle/host/HostObject.java b/truffle/src/com.oracle.truffle.host/src/com/oracle/truffle/host/HostObject.java index 151860d79295..c3fb0be1c840 100644 --- a/truffle/src/com.oracle.truffle.host/src/com/oracle/truffle/host/HostObject.java +++ b/truffle/src/com.oracle.truffle.host/src/com/oracle/truffle/host/HostObject.java @@ -2618,7 +2618,7 @@ LocalTime asTime() throws UnsupportedMessageException { /** * Returns true if this date object can be reliably converted to an instant. * Weirdly, despite the contract of the base class the two subclasses {@link Time} and - * {@link java.sql.Date} are not supported to be convertable to an instant. + * {@link java.sql.Date} are not supported to be convertible to an instant. */ private static boolean isInstantDate(Object v) { return v instanceof Date && !(v instanceof Time) && !(v instanceof java.sql.Date); diff --git a/truffle/src/com.oracle.truffle.polyglot/src/com/oracle/truffle/polyglot/FileSystems.java b/truffle/src/com.oracle.truffle.polyglot/src/com/oracle/truffle/polyglot/FileSystems.java index f7054cf961b8..691c097f512c 100644 --- a/truffle/src/com.oracle.truffle.polyglot/src/com/oracle/truffle/polyglot/FileSystems.java +++ b/truffle/src/com.oracle.truffle.polyglot/src/com/oracle/truffle/polyglot/FileSystems.java @@ -1640,7 +1640,7 @@ public Charset getEncoding(Path path) { } /** - * FileSystem implementation allowing only path resolution and comparison. The read ot write + * FileSystem implementation allowing only path resolution and comparison. The read or write * operations throw {@link SecurityException}. */ private static final class PathOperationsOnlyFileSystem extends DeniedIOFileSystem { diff --git a/truffle/src/com.oracle.truffle.polyglot/src/com/oracle/truffle/polyglot/FinalIntMap.java b/truffle/src/com.oracle.truffle.polyglot/src/com/oracle/truffle/polyglot/FinalIntMap.java index 4ac524c18e02..64f51e853960 100644 --- a/truffle/src/com.oracle.truffle.polyglot/src/com/oracle/truffle/polyglot/FinalIntMap.java +++ b/truffle/src/com.oracle.truffle.polyglot/src/com/oracle/truffle/polyglot/FinalIntMap.java @@ -46,7 +46,7 @@ /* * An internal map designed for partial evaluation. - * Only contains final object to int assocations. get returns a constant when partially evaluated. + * Only contains final object to int associations. get returns a constant when partially evaluated. */ final class FinalIntMap { diff --git a/truffle/src/com.oracle.truffle.polyglot/src/com/oracle/truffle/polyglot/PolyglotContextImpl.java b/truffle/src/com.oracle.truffle.polyglot/src/com/oracle/truffle/polyglot/PolyglotContextImpl.java index 5e7fc5678d64..2a6fa48a4069 100644 --- a/truffle/src/com.oracle.truffle.polyglot/src/com/oracle/truffle/polyglot/PolyglotContextImpl.java +++ b/truffle/src/com.oracle.truffle.polyglot/src/com/oracle/truffle/polyglot/PolyglotContextImpl.java @@ -785,7 +785,7 @@ public synchronized void explicitLeave() { PolyglotThreadInfo current = getCurrentThreadInfo(); LinkedList stack = current.explicitContextStack; if (stack.isEmpty() || current.getThread() == null) { - throw PolyglotEngineException.illegalState("The context is not entered explicity. A context can only be left if it was previously entered."); + throw PolyglotEngineException.illegalState("The context is not entered explicitly. A context can only be left if it was previously entered."); } engine.leave(stack.removeLast(), this); } catch (Throwable t) { @@ -2602,12 +2602,12 @@ boolean closeImpl(boolean notifyInstruments) { /* * Close operation initiated in the DEFAULT or INTERRUPTING state can fail in which case the - * context will go back to the corresponsing non-closing state e.g. DEFAULT -> + * context will go back to the corresponding non-closing state e.g. DEFAULT -> * CLOSING/CLOSING_FINALIZING -> DEFAULT. Please note that while the default/interrupting * close is in progress, i.e. the context is in the CLOSING/CLOSING_FINALIZING or the - * CLOSING_INTERRUPTING/CLOSING_INTERRUPTING_FINALIZING state, the state can be overriden by + * CLOSING_INTERRUPTING/CLOSING_INTERRUPTING_FINALIZING state, the state can be overridden by * the CLOSING_CANCELLING state. The CLOSING and CLOSING_INTERRUPTING states can also be - * overriden by the CLOSING_PENDING_EXIT and then the CLOSING_EXITING state. Even in these + * overridden by the CLOSING_PENDING_EXIT and then the CLOSING_EXITING state. Even in these * cases the default close can still fail and if that is the case the context state goes * back to the CANCELLING or the EXITING state. The close operation is then guaranteed to be * completed by the process that initiated cancel or exit. @@ -2876,7 +2876,7 @@ private boolean finishClose(boolean cancelOrExitOperation, boolean notifyInstrum /* * We need to notify before we remove the context from engine's context list, * otherwise we couldn't use context locals in the context closed notification. New - * instrument introducting new context locals doesn't initialize them in a context + * instrument introducing new context locals doesn't initialize them in a context * if it's not in the engine's context list. */ if (notifyInstruments) { diff --git a/truffle/src/com.oracle.truffle.polyglot/src/com/oracle/truffle/polyglot/PolyglotEngineImpl.java b/truffle/src/com.oracle.truffle.polyglot/src/com/oracle/truffle/polyglot/PolyglotEngineImpl.java index d6e27be24e0c..1a19c3794141 100644 --- a/truffle/src/com.oracle.truffle.polyglot/src/com/oracle/truffle/polyglot/PolyglotEngineImpl.java +++ b/truffle/src/com.oracle.truffle.polyglot/src/com/oracle/truffle/polyglot/PolyglotEngineImpl.java @@ -468,7 +468,7 @@ void ensureRuntimeInitialized(PolyglotContextImpl context) { return; } - // we crate a dummy node + // we create a dummy node RootNode node = RootNode.createConstantNode(42); // since we are not entered we need to set the sharing layer here EngineAccessor.NODES.setSharingLayer(node, context.layer); diff --git a/truffle/src/com.oracle.truffle.polyglot/src/com/oracle/truffle/polyglot/PolyglotWrapper.java b/truffle/src/com.oracle.truffle.polyglot/src/com/oracle/truffle/polyglot/PolyglotWrapper.java index e170cf4a3cff..71e9dbadc0aa 100644 --- a/truffle/src/com.oracle.truffle.polyglot/src/com/oracle/truffle/polyglot/PolyglotWrapper.java +++ b/truffle/src/com.oracle.truffle.polyglot/src/com/oracle/truffle/polyglot/PolyglotWrapper.java @@ -122,7 +122,7 @@ static boolean equals(Object context, Object receiver, Object obj) { try { prev = PolyglotValueDispatch.hostEnter(languageContext); } catch (Throwable t) { - // enter might fail if context was closed asynchonously. + // enter might fail if context was closed asynchronously. // Can no longer call interop. return false; } diff --git a/truffle/src/com.oracle.truffle.polyglot/src/com/oracle/truffle/polyglot/WeakAssumedValue.java b/truffle/src/com.oracle.truffle.polyglot/src/com/oracle/truffle/polyglot/WeakAssumedValue.java index fe4e0a29f4cc..d90d021305a7 100644 --- a/truffle/src/com.oracle.truffle.polyglot/src/com/oracle/truffle/polyglot/WeakAssumedValue.java +++ b/truffle/src/com.oracle.truffle.polyglot/src/com/oracle/truffle/polyglot/WeakAssumedValue.java @@ -50,7 +50,7 @@ import com.oracle.truffle.api.utilities.TruffleWeakReference; /* - * Note: this type may be a good candidate for being standarized in the Truffle utilities package in the future. + * Note: this type may be a good candidate for being standardized in the Truffle utilities package in the future. */ @SuppressWarnings("rawtypes") final class WeakAssumedValue { diff --git a/truffle/src/com.oracle.truffle.runtime/src/com/oracle/truffle/runtime/OptimizedAssumption.java b/truffle/src/com.oracle.truffle.runtime/src/com/oracle/truffle/runtime/OptimizedAssumption.java index c6f10e6e8989..86be80c1f55b 100644 --- a/truffle/src/com.oracle.truffle.runtime/src/com/oracle/truffle/runtime/OptimizedAssumption.java +++ b/truffle/src/com.oracle.truffle.runtime/src/com/oracle/truffle/runtime/OptimizedAssumption.java @@ -374,7 +374,7 @@ public String toString() { */ static class Lazy { /* - * We use an Object instead of a String here to avoid accidently handing out the always + * We use an Object instead of a String here to avoid accidentally handing out the always * valid string object in getName(). */ static final Object ALWAYS_VALID_NAME = new Object() { diff --git a/truffle/src/com.oracle.truffle.runtime/src/com/oracle/truffle/runtime/OptimizedCallTarget.java b/truffle/src/com.oracle.truffle.runtime/src/com/oracle/truffle/runtime/OptimizedCallTarget.java index 028aafc0fabe..4669d8eed5af 100644 --- a/truffle/src/com.oracle.truffle.runtime/src/com/oracle/truffle/runtime/OptimizedCallTarget.java +++ b/truffle/src/com.oracle.truffle.runtime/src/com/oracle/truffle/runtime/OptimizedCallTarget.java @@ -284,7 +284,7 @@ public Class getType() { /** * When this field is not null, this {@link OptimizedCallTarget} is - * {@linkplain #isSubmittedForCompilation() submited for compilation}.
        + * {@linkplain #isSubmittedForCompilation() submitted for compilation}.
        * * It is only set to non-null in {@link #compile(boolean)} in a synchronized block. * diff --git a/truffle/src/com.oracle.truffle.runtime/src/com/oracle/truffle/runtime/OptimizedRuntimeOptions.java b/truffle/src/com.oracle.truffle.runtime/src/com/oracle/truffle/runtime/OptimizedRuntimeOptions.java index 63cc586ba584..67e3bb8b1539 100644 --- a/truffle/src/com.oracle.truffle.runtime/src/com/oracle/truffle/runtime/OptimizedRuntimeOptions.java +++ b/truffle/src/com.oracle.truffle.runtime/src/com/oracle/truffle/runtime/OptimizedRuntimeOptions.java @@ -169,7 +169,7 @@ public ExceptionAction apply(String s) { usageSyntax = "[1, inf)", category = OptionCategory.INTERNAL) // public static final OptionKey DynamicCompilationThresholdsMaxNormalLoad = new OptionKey<>(90); - @Option(help = "The desired minimum compilation queue load. When the load falls bellow this value, the compilation thresholds are decreased. The load is scaled by the number of compiler threads (default: 10).", // + @Option(help = "The desired minimum compilation queue load. When the load falls below this value, the compilation thresholds are decreased. The load is scaled by the number of compiler threads (default: 10).", // usageSyntax = "[1, inf)", category = OptionCategory.INTERNAL) // public static final OptionKey DynamicCompilationThresholdsMinNormalLoad = new OptionKey<>(10); diff --git a/truffle/src/com.oracle.truffle.runtime/src/com/oracle/truffle/runtime/OptimizedRuntimeSupport.java b/truffle/src/com.oracle.truffle.runtime/src/com/oracle/truffle/runtime/OptimizedRuntimeSupport.java index bba844d225f6..56642a6c752f 100644 --- a/truffle/src/com.oracle.truffle.runtime/src/com/oracle/truffle/runtime/OptimizedRuntimeSupport.java +++ b/truffle/src/com.oracle.truffle.runtime/src/com/oracle/truffle/runtime/OptimizedRuntimeSupport.java @@ -287,7 +287,7 @@ public Object callInlined(Node callNode, CallTarget target, Object... arguments) @Override public Object callProfiled(CallTarget target, Object... arguments) { OptimizedCallTarget castTarget = (OptimizedCallTarget) target; - assert castTarget.isValidArgumentProfile(arguments) : "Invalid argument profile. callProfiled requires to explicity initialize the profile."; + assert castTarget.isValidArgumentProfile(arguments) : "Invalid argument profile. callProfiled requires to explicitly initialize the profile."; return castTarget.doInvoke(arguments); } diff --git a/truffle/src/com.oracle.truffle.sl.test/src/com/oracle/truffle/sl/test/ToStringOfEvalTest.java b/truffle/src/com.oracle.truffle.sl.test/src/com/oracle/truffle/sl/test/ToStringOfEvalTest.java index 1b0804dd9b9e..b2f99f5887ef 100644 --- a/truffle/src/com.oracle.truffle.sl.test/src/com/oracle/truffle/sl/test/ToStringOfEvalTest.java +++ b/truffle/src/com.oracle.truffle.sl.test/src/com/oracle/truffle/sl/test/ToStringOfEvalTest.java @@ -75,6 +75,6 @@ public void checkToStringOnAFunction() { assertFalse("Symbol is not null", value1.isNull()); assertFalse("Symbol is not null either", value2.isNull()); - assertTrue("Contans checkName text: " + value2, value2.toString().contains("checkName")); + assertTrue("Contains checkName text: " + value2, value2.toString().contains("checkName")); } } diff --git a/truffle/src/com.oracle.truffle.sl/src/com/oracle/truffle/sl/nodes/controlflow/SLIfNode.java b/truffle/src/com.oracle.truffle.sl/src/com/oracle/truffle/sl/nodes/controlflow/SLIfNode.java index 4d46a6925b9a..9b12ad08c79f 100644 --- a/truffle/src/com.oracle.truffle.sl/src/com/oracle/truffle/sl/nodes/controlflow/SLIfNode.java +++ b/truffle/src/com.oracle.truffle.sl/src/com/oracle/truffle/sl/nodes/controlflow/SLIfNode.java @@ -49,7 +49,7 @@ import com.oracle.truffle.sl.nodes.SLStatementNode; import com.oracle.truffle.sl.nodes.util.SLUnboxNodeGen; -@NodeInfo(shortName = "if", description = "The node implementing a condional statement") +@NodeInfo(shortName = "if", description = "The node implementing a conditional statement") public final class SLIfNode extends SLStatementNode { /** diff --git a/truffle/src/com.oracle.truffle.sl/src/com/oracle/truffle/sl/nodes/expression/SLAddNode.java b/truffle/src/com.oracle.truffle.sl/src/com/oracle/truffle/sl/nodes/expression/SLAddNode.java index 59dc372c0368..b3c5d20f5594 100644 --- a/truffle/src/com.oracle.truffle.sl/src/com/oracle/truffle/sl/nodes/expression/SLAddNode.java +++ b/truffle/src/com.oracle.truffle.sl/src/com/oracle/truffle/sl/nodes/expression/SLAddNode.java @@ -120,7 +120,7 @@ protected SLBigInteger doSLBigInteger(SLBigInteger left, SLBigInteger right) { *

        * This specialization is automatically selected by the Truffle DSL if both the left and the * right operand {@link InteropLibrary#fitsInBigInteger(Object) fit} into - * {@link java.math.BigInteger}, but at least one of them cannot be coverted to + * {@link java.math.BigInteger}, but at least one of them cannot be converted to * {@link SLBigInteger} by {@link ImplicitCast implicit conversion}. Once this specialization * has been selected, it replaces the {@link #doSLBigInteger(SLBigInteger, SLBigInteger)} * specialization which is then never used again. diff --git a/truffle/src/com.oracle.truffle.sl/src/com/oracle/truffle/sl/nodes/expression/SLEqualNode.java b/truffle/src/com.oracle.truffle.sl/src/com/oracle/truffle/sl/nodes/expression/SLEqualNode.java index ec709d559ea6..a8defb6903d5 100644 --- a/truffle/src/com.oracle.truffle.sl/src/com/oracle/truffle/sl/nodes/expression/SLEqualNode.java +++ b/truffle/src/com.oracle.truffle.sl/src/com/oracle/truffle/sl/nodes/expression/SLEqualNode.java @@ -121,7 +121,7 @@ protected boolean doFunction(SLFunction left, Object right) { * minimal possible value, for a set of given benchmarks. * * This specialization is generic and handles all the cases, but in this case we decided to not - * replace the previous specializations, as they are still more efficient in the interpeter. + * replace the previous specializations, as they are still more efficient in the interpreter. */ @Specialization(limit = "4") public boolean doGeneric(Object left, Object right, diff --git a/truffle/src/com.oracle.truffle.sl/src/com/oracle/truffle/sl/runtime/SLType.java b/truffle/src/com.oracle.truffle.sl/src/com/oracle/truffle/sl/runtime/SLType.java index 791114aaa969..f9f7ccac3aab 100644 --- a/truffle/src/com.oracle.truffle.sl/src/com/oracle/truffle/sl/runtime/SLType.java +++ b/truffle/src/com.oracle.truffle.sl/src/com/oracle/truffle/sl/runtime/SLType.java @@ -67,7 +67,7 @@ *

        * In order to assign types to guest language values, SL values implement * {@link InteropLibrary#getMetaObject(Object)}. The interop contracts for primitive values cannot - * be overriden, so in order to assign meta-objects to primitive values, the primitive values are + * be overridden, so in order to assign meta-objects to primitive values, the primitive values are * assigned using language views. See {@link SLLanguage#getLanguageView}. */ @ExportLibrary(InteropLibrary.class) diff --git a/truffle/src/com.oracle.truffle.st/src/com/oracle/truffle/st/SimpleCoverageInstrument.java b/truffle/src/com.oracle.truffle.st/src/com/oracle/truffle/st/SimpleCoverageInstrument.java index 98498dd956d3..65825344f6b2 100644 --- a/truffle/src/com.oracle.truffle.st/src/com/oracle/truffle/st/SimpleCoverageInstrument.java +++ b/truffle/src/com.oracle.truffle.st/src/com/oracle/truffle/st/SimpleCoverageInstrument.java @@ -67,7 +67,7 @@ * Example for simple version of an expression coverage instrument. * * The instrument {@link #coverageMap keeps track} of all loaded {@link SourceSection}s and all - * coverd (i.e. executed) {@link SourceSection}s for each {@link Source}. At the end of the + * covered (i.e. executed) {@link SourceSection}s for each {@link Source}. At the end of the * execution this information can be used to calculate coverage. * * The instrument is registered with the Truffle framework using the {@link Registration} @@ -77,7 +77,7 @@ * In this case the instrument itself is exported as a service and used in the * SimpleCoverageInstrumentTest. * - * NOTE: Fot the registration annotation to work the truffle dsl processor must be used (i.e. Must + * NOTE: For the registration annotation to work the truffle dsl processor must be used (i.e. Must * be a dependency. This is so in this maven project, as can be seen in the pom file. */ @Registration(id = SimpleCoverageInstrument.ID, name = "Simple Code Coverage", version = "0.1", services = SimpleCoverageInstrument.class) @@ -147,7 +147,7 @@ protected void onCreate(final Env env) { * with {@link ExpressionTag}. We also tell it we don't care about AST nodes * {@link SourceSectionFilter.Builder#includeInternal(boolean) internal} to languages. * - * After than, we use the {@link Env enviroment} to obtain the {@link Instrumenter}, which + * After than, we use the {@link Env environment} to obtain the {@link Instrumenter}, which * allows us to specify in which way we wish to instrument the AST. * * Firstly, we @@ -189,7 +189,7 @@ protected void onFinalize(Env env) { * Print the coverage results for each source. * * The printing is one the the {@link Env#out output stream} specified by the {@link Env - * enviroment}. + * environment}. * * @param env */ diff --git a/truffle/src/com.oracle.truffle.tck.tests/src/com/oracle/truffle/tck/tests/JavaHostLanguageProvider.java b/truffle/src/com.oracle.truffle.tck.tests/src/com/oracle/truffle/tck/tests/JavaHostLanguageProvider.java index 52fdc60e09da..11026cffa91d 100644 --- a/truffle/src/com.oracle.truffle.tck.tests/src/com/oracle/truffle/tck/tests/JavaHostLanguageProvider.java +++ b/truffle/src/com.oracle.truffle.tck.tests/src/com/oracle/truffle/tck/tests/JavaHostLanguageProvider.java @@ -213,7 +213,7 @@ public Collection createValueConstructors(final Context conte "ProxyExecutable<...>", export(context, new ValueSupplier<>(new ProxyExecutableImpl())), TypeDescriptor.EXECUTABLE).build()); - // No-args execuable + // No-args executable result.add(Snippet.newBuilder( "ProxyExecutable<>", export(context, new ValueSupplier<>(new ProxyExecutableImpl(ProxyExecutableImpl.EMPTY, 0))), diff --git a/visualizer/IdealGraphVisualizer/Coordinator/src/main/java/org/graalvm/visualizer/coordinator/impl/FolderNode.java b/visualizer/IdealGraphVisualizer/Coordinator/src/main/java/org/graalvm/visualizer/coordinator/impl/FolderNode.java index 58ed1c1886e6..72c04fa929e8 100644 --- a/visualizer/IdealGraphVisualizer/Coordinator/src/main/java/org/graalvm/visualizer/coordinator/impl/FolderNode.java +++ b/visualizer/IdealGraphVisualizer/Coordinator/src/main/java/org/graalvm/visualizer/coordinator/impl/FolderNode.java @@ -253,7 +253,7 @@ public void reportProgress(int workDone, int totalWork, String description) { handle.progress(Math.min(lastTotal, workDone)); } if (indeterminate) { - // cancel indeterminate (for unfinished entries) progress after some time, so it does not obscur + // cancel indeterminate (for unfinished entries) progress after some time, so it does not obscure cancelIndeterminate.schedule(PROGRESS_TIMEOUT); } } diff --git a/visualizer/IdealGraphVisualizer/Data/src/main/java/jdk/graal/compiler/graphio/GraphLocations.java b/visualizer/IdealGraphVisualizer/Data/src/main/java/jdk/graal/compiler/graphio/GraphLocations.java index c27b5a2c628b..c3f66b2f6b05 100644 --- a/visualizer/IdealGraphVisualizer/Data/src/main/java/jdk/graal/compiler/graphio/GraphLocations.java +++ b/visualizer/IdealGraphVisualizer/Data/src/main/java/jdk/graal/compiler/graphio/GraphLocations.java @@ -36,7 +36,7 @@ * * @param type representing methods * @param

        type representing source code location - * @param represeting {@link StackTraceElement stack element} location + * @param representing {@link StackTraceElement stack element} location * * @since 0.33 part of GraalVM 0.33 */ @@ -96,7 +96,7 @@ public interface GraphLocations { int locationLineNumber(L location); /** - * Offset of the location. In certain situations it is preferrable to specify offset rather than + * Offset of the location. In certain situations it is preferable to specify offset rather than * {@link #locationLineNumber(java.lang.Object) line number} of a location in source. In such * case return the start offset from this method and end offset via * {@link #locationOffsetEnd(java.lang.Object)} method. Offsets are counted from {@code 0}. @@ -107,7 +107,7 @@ public interface GraphLocations { int locationOffsetStart(L location); /** - * Offset of the location. In certain situations it is preferrable to specify offset rather than + * Offset of the location. In certain situations it is preferable to specify offset rather than * {@link #locationLineNumber(java.lang.Object) line number} of a location in source. In such * case return the start offset via {@link #locationOffsetStart(java.lang.Object)} method and * end from this method. Offsets are counted from {@code 0}. diff --git a/visualizer/IdealGraphVisualizer/Data/src/main/java/jdk/graal/compiler/graphio/GraphOutput.java b/visualizer/IdealGraphVisualizer/Data/src/main/java/jdk/graal/compiler/graphio/GraphOutput.java index 56a02edeb4eb..058b3e0799c7 100644 --- a/visualizer/IdealGraphVisualizer/Data/src/main/java/jdk/graal/compiler/graphio/GraphOutput.java +++ b/visualizer/IdealGraphVisualizer/Data/src/main/java/jdk/graal/compiler/graphio/GraphOutput.java @@ -35,7 +35,7 @@ import java.util.Map; /** - * Instance of output to dump informations about a compiler compilations. + * Instance of output to dump information about a compiler compilations. * * @param the type of graph this instance handles * @param the type of methods this instance handles @@ -321,7 +321,7 @@ public GraphOutput build(WritableByteChannel channel) throws IOException { } /** - * Support for nesting heterogenous graphs. The newly created output uses all the interfaces + * Support for nesting heterogeneous graphs. The newly created output uses all the interfaces * currently associated with this builder, but shares with {@code parent} the output * {@code channel}, internal constant pool and {@link #protocolVersion(int, int) protocol * version}. diff --git a/visualizer/IdealGraphVisualizer/Data/src/main/java/jdk/graal/compiler/graphio/package-info.java b/visualizer/IdealGraphVisualizer/Data/src/main/java/jdk/graal/compiler/graphio/package-info.java index 35172cc092ea..8f04c9bdaf92 100644 --- a/visualizer/IdealGraphVisualizer/Data/src/main/java/jdk/graal/compiler/graphio/package-info.java +++ b/visualizer/IdealGraphVisualizer/Data/src/main/java/jdk/graal/compiler/graphio/package-info.java @@ -51,7 +51,7 @@ * * Now you are ready to dump your graph into IGV. Where to obtain the right channel? One * option is to create a {@link java.nio.channels.FileChannel} and dump the data into a file - * (preferrably with .bgv extension). The other is to open a socket to port + * (preferably with .bgv extension). The other is to open a socket to port * 4445 (the default port IGV listens to) and dump the data there. Here is an * example: * diff --git a/visualizer/IdealGraphVisualizer/Data/src/main/java/org/graalvm/visualizer/data/src/ImplementationClass.java b/visualizer/IdealGraphVisualizer/Data/src/main/java/org/graalvm/visualizer/data/src/ImplementationClass.java index b286ddc9fbff..e834c8e8b0a2 100644 --- a/visualizer/IdealGraphVisualizer/Data/src/main/java/org/graalvm/visualizer/data/src/ImplementationClass.java +++ b/visualizer/IdealGraphVisualizer/Data/src/main/java/org/graalvm/visualizer/data/src/ImplementationClass.java @@ -29,7 +29,7 @@ * A cookie to be used in {@link Lookup} to represent an implementation name * of a class. Useful for actions that want to jump to source code defining * current selected - e.g. {@code Utilities.actionsGlobalContext()} element. UI views - * are encouraged to expose {@link ImplementationClass} instances whereever + * are encouraged to expose {@link ImplementationClass} instances wherever * a selection knows who's its implementation class. * * @since 1.5 diff --git a/visualizer/IdealGraphVisualizer/Data/src/test/java/org/graalvm/visualizer/data/serialization/lazy/LazyGroupTest.java b/visualizer/IdealGraphVisualizer/Data/src/test/java/org/graalvm/visualizer/data/serialization/lazy/LazyGroupTest.java index d3b0b5dfe0d0..a7e7325b00a1 100644 --- a/visualizer/IdealGraphVisualizer/Data/src/test/java/org/graalvm/visualizer/data/serialization/lazy/LazyGroupTest.java +++ b/visualizer/IdealGraphVisualizer/Data/src/test/java/org/graalvm/visualizer/data/serialization/lazy/LazyGroupTest.java @@ -138,7 +138,7 @@ private Group findGroup(String path) throws Exception { public void testGroupAppearsEarly() throws Exception { loadGroupStart(); - // assert that the group appeared eearly + // assert that the group appeared early assertNotNull(parent); assertFalse(lazyParent.isComplete()); } diff --git a/visualizer/IdealGraphVisualizer/Data/src/test/java/org/graalvm/visualizer/data/serialization/lazy/ScanningBuilderTest.java b/visualizer/IdealGraphVisualizer/Data/src/test/java/org/graalvm/visualizer/data/serialization/lazy/ScanningBuilderTest.java index 195344878157..858a6553cf64 100644 --- a/visualizer/IdealGraphVisualizer/Data/src/test/java/org/graalvm/visualizer/data/serialization/lazy/ScanningBuilderTest.java +++ b/visualizer/IdealGraphVisualizer/Data/src/test/java/org/graalvm/visualizer/data/serialization/lazy/ScanningBuilderTest.java @@ -51,7 +51,7 @@ public ScanningBuilderTest(String name) { Semaphore alert = new Semaphore(0); /** - * Complete and frozen snaphots at start of each root. + * Complete and frozen snapshots at start of each root. */ Map poolSnaphots = new LinkedHashMap<>(); diff --git a/visualizer/IdealGraphVisualizer/GraphSearch/src/main/java/org/graalvm/visualizer/search/quicksearch/NodeQuickSearch.java b/visualizer/IdealGraphVisualizer/GraphSearch/src/main/java/org/graalvm/visualizer/search/quicksearch/NodeQuickSearch.java index 2041ef10f04f..78f4fe9156a7 100644 --- a/visualizer/IdealGraphVisualizer/GraphSearch/src/main/java/org/graalvm/visualizer/search/quicksearch/NodeQuickSearch.java +++ b/visualizer/IdealGraphVisualizer/GraphSearch/src/main/java/org/graalvm/visualizer/search/quicksearch/NodeQuickSearch.java @@ -74,7 +74,7 @@ private static DiagramViewer getActiveGraphProvider() { /** * Method is called by infrastructure when search operation was requested. Implementors should - * evaluate given request and fill response object with apropriate results + * evaluate given request and fill response object with appropriate results * * @param request Search request object that contains information what to search for * @param response Search response object that stores search results. Note that it's important diff --git a/visualizer/IdealGraphVisualizer/GraphSearch/src/main/java/org/graalvm/visualizer/search/ui/AbstractSearchResultsPanelBase.java b/visualizer/IdealGraphVisualizer/GraphSearch/src/main/java/org/graalvm/visualizer/search/ui/AbstractSearchResultsPanelBase.java index a332d5a88a71..635efdf124d3 100644 --- a/visualizer/IdealGraphVisualizer/GraphSearch/src/main/java/org/graalvm/visualizer/search/ui/AbstractSearchResultsPanelBase.java +++ b/visualizer/IdealGraphVisualizer/GraphSearch/src/main/java/org/graalvm/visualizer/search/ui/AbstractSearchResultsPanelBase.java @@ -400,7 +400,7 @@ Node findDetailNode(Node fromNode, int direction, } /** - * Start finding for next or previous occurance, from a node or its previous + * Start finding for next or previous occurrence, from a node or its previous * or next sibling of node {@code node} * * @param node reference node diff --git a/visualizer/IdealGraphVisualizer/GraphSearch/src/main/java/org/graalvm/visualizer/search/ui/ResultView.java b/visualizer/IdealGraphVisualizer/GraphSearch/src/main/java/org/graalvm/visualizer/search/ui/ResultView.java index 89d89f31d61b..bfe0e1713606 100644 --- a/visualizer/IdealGraphVisualizer/GraphSearch/src/main/java/org/graalvm/visualizer/search/ui/ResultView.java +++ b/visualizer/IdealGraphVisualizer/GraphSearch/src/main/java/org/graalvm/visualizer/search/ui/ResultView.java @@ -500,7 +500,7 @@ private synchronized JPanel getTabToReuse() { } /** - * Mark the currenly selected tab as reusable. + * Mark the currently selected tab as reusable. */ public synchronized void markCurrentTabAsReusable() { setTabToReuse(getCurrentResultViewPanel()); diff --git a/visualizer/IdealGraphVisualizer/HierarchicalLayout/src/main/java/org/graalvm/visualizer/hierarchicallayout/HierarchicalLayoutManager.java b/visualizer/IdealGraphVisualizer/HierarchicalLayout/src/main/java/org/graalvm/visualizer/hierarchicallayout/HierarchicalLayoutManager.java index 3aa2a7e98994..7ce5454ba2b7 100644 --- a/visualizer/IdealGraphVisualizer/HierarchicalLayout/src/main/java/org/graalvm/visualizer/hierarchicallayout/HierarchicalLayoutManager.java +++ b/visualizer/IdealGraphVisualizer/HierarchicalLayout/src/main/java/org/graalvm/visualizer/hierarchicallayout/HierarchicalLayoutManager.java @@ -881,7 +881,7 @@ private boolean pointsInLine(Point p1, Point p2, Point p3) { private List reducePoints(ReductionEntry task) { //lastPoint is already saved in reduced edges Point lastPoint = task.lastPoint; - //currentPoint can be omited as middle point if in line with lastPoint and nextPoint + //currentPoint can be omitted as middle point if in line with lastPoint and nextPoint Point currentPoint = task.nextPoint; int currentIndex = task.nextPointIndex; //null must stay where it is, save and move on @@ -1307,7 +1307,7 @@ private void resolveDanglingNodes(boolean up) { } /* - * Partialy implemented class, only needed methods + * Partially implemented class, only needed methods */ private class LayoutLayer extends ArrayList { @@ -2654,7 +2654,7 @@ private class BuildDatastructure extends AlgorithmPart { protected void run() { // Set up nodes for (Vertex v : graph.getVertices()) { - assert v.isVisible() : "Invisible nodes aren't permited in HierarchicalLayout."; + assert v.isVisible() : "Invisible nodes aren't permitted in HierarchicalLayout."; LayoutNode node = new LayoutNode(v); nodes.add(node); vertexToLayoutNode.put(v, node); diff --git a/visualizer/IdealGraphVisualizer/Settings/src/main/java/org/graalvm/visualizer/settings/SettingsStore.java b/visualizer/IdealGraphVisualizer/Settings/src/main/java/org/graalvm/visualizer/settings/SettingsStore.java index df7010f9ff26..9c63dcafcf42 100644 --- a/visualizer/IdealGraphVisualizer/Settings/src/main/java/org/graalvm/visualizer/settings/SettingsStore.java +++ b/visualizer/IdealGraphVisualizer/Settings/src/main/java/org/graalvm/visualizer/settings/SettingsStore.java @@ -383,7 +383,7 @@ private synchronized static void register(SettingsStore store) { Class type = store.getClass(); WeakReference wk = hold.get(type); if (wk != null && wk.get() != null) { - throw new IllegalStateException("Can't instanciate more than one " + store.getClass()); + throw new IllegalStateException("Can't instantiate more than one " + store.getClass()); } hold.put(type, new WeakReference<>(store)); } diff --git a/visualizer/IdealGraphVisualizer/SourceRepository/src/main/java/org/graalvm/visualizer/source/FileKey.java b/visualizer/IdealGraphVisualizer/SourceRepository/src/main/java/org/graalvm/visualizer/source/FileKey.java index b5030d3e962d..92adce8997e0 100644 --- a/visualizer/IdealGraphVisualizer/SourceRepository/src/main/java/org/graalvm/visualizer/source/FileKey.java +++ b/visualizer/IdealGraphVisualizer/SourceRepository/src/main/java/org/graalvm/visualizer/source/FileKey.java @@ -28,7 +28,7 @@ import java.util.Objects; /** - * Overridable key which identifies a file. Subclasses may add addditional information, + * Overridable key which identifies a file. Subclasses may add additional information, * like module (a filename is relative to it). equals() and hashCode() must be properly * defined. It is OK to have multiple FileKeys identify a single FileObject */ diff --git a/visualizer/IdealGraphVisualizer/SourceRepository/src/main/java/org/graalvm/visualizer/source/FileRegistry.java b/visualizer/IdealGraphVisualizer/SourceRepository/src/main/java/org/graalvm/visualizer/source/FileRegistry.java index 36b75d742031..3d4353008c93 100644 --- a/visualizer/IdealGraphVisualizer/SourceRepository/src/main/java/org/graalvm/visualizer/source/FileRegistry.java +++ b/visualizer/IdealGraphVisualizer/SourceRepository/src/main/java/org/graalvm/visualizer/source/FileRegistry.java @@ -98,14 +98,14 @@ private void addUnresolvedGraph(FileKey key, Reference r, InputGraph us /** * Registers a new file key. Returns an existing matching instance if already - * known. Use the method to cannonicalize references before the key is used + * known. Use the method to canonicalize references before the key is used * in other structures. *

        * If the already known key is unresolved, and the newly registered key is resolved, * the existing key is updated and returned. Change event fires in that case. * * @param k the key to enter. - * @return cannonical key + * @return canonical key */ public FileKey enter(FileKey k, InputGraph usedIn) { // initResolvers(); diff --git a/visualizer/IdealGraphVisualizer/SourceRepository/src/main/java/org/graalvm/visualizer/source/GraphSource.java b/visualizer/IdealGraphVisualizer/SourceRepository/src/main/java/org/graalvm/visualizer/source/GraphSource.java index c77487d2bbdd..a31fe84edb7b 100644 --- a/visualizer/IdealGraphVisualizer/SourceRepository/src/main/java/org/graalvm/visualizer/source/GraphSource.java +++ b/visualizer/IdealGraphVisualizer/SourceRepository/src/main/java/org/graalvm/visualizer/source/GraphSource.java @@ -75,7 +75,7 @@ public final class GraphSource { private final Map nodeMap = new HashMap<>(); /** - * Cache of all locations, to cannonicalize stack entries in the graph + * Cache of all locations, to canonicalize stack entries in the graph */ private final Map uniqueLocations = new HashMap<>(); diff --git a/visualizer/IdealGraphVisualizer/SourceRepository/src/main/java/org/graalvm/visualizer/source/ProcessorContext.java b/visualizer/IdealGraphVisualizer/SourceRepository/src/main/java/org/graalvm/visualizer/source/ProcessorContext.java index 3365733bda95..24b713cc1688 100644 --- a/visualizer/IdealGraphVisualizer/SourceRepository/src/main/java/org/graalvm/visualizer/source/ProcessorContext.java +++ b/visualizer/IdealGraphVisualizer/SourceRepository/src/main/java/org/graalvm/visualizer/source/ProcessorContext.java @@ -175,7 +175,7 @@ private void addNodeStack(List currentStack, InputNode node) { if (len == 0) { return; } - // cannonicalize the last element + // canonicalize the last element Location parent = null; for (int i = len - 1; i >= 0; i--) { Location l = currentStack.get(i); diff --git a/visualizer/IdealGraphVisualizer/SourceRepository/src/main/java/org/graalvm/visualizer/source/SourceUtils.java b/visualizer/IdealGraphVisualizer/SourceRepository/src/main/java/org/graalvm/visualizer/source/SourceUtils.java index 8dbe3b2d3e69..91eb80f08d0c 100644 --- a/visualizer/IdealGraphVisualizer/SourceRepository/src/main/java/org/graalvm/visualizer/source/SourceUtils.java +++ b/visualizer/IdealGraphVisualizer/SourceRepository/src/main/java/org/graalvm/visualizer/source/SourceUtils.java @@ -120,7 +120,7 @@ public static Collection findLineNodes(FileObject fo, int lineFrom, i } /** - * Trasnforms graph nodes into nodes that represent selectable items, whole Figures. + * Transforms graph nodes into nodes that represent selectable items, whole Figures. * The diagram may not be ready yet; {@link DiagramViewModel#withDiagramToView} * must be called and the nodes processed in a callback. * diff --git a/visualizer/IdealGraphVisualizer/SourceRepository/src/main/java/org/graalvm/visualizer/source/impl/SourceRepositoryImpl.java b/visualizer/IdealGraphVisualizer/SourceRepository/src/main/java/org/graalvm/visualizer/source/impl/SourceRepositoryImpl.java index f2bb2f43890e..2bcb040f72fe 100644 --- a/visualizer/IdealGraphVisualizer/SourceRepository/src/main/java/org/graalvm/visualizer/source/impl/SourceRepositoryImpl.java +++ b/visualizer/IdealGraphVisualizer/SourceRepository/src/main/java/org/graalvm/visualizer/source/impl/SourceRepositoryImpl.java @@ -46,7 +46,7 @@ /** * Implementation of SourceRepository as sets of [java] source roots. Uses - * Preferences as the storage. The strucutre of the preferences node is as + * Preferences as the storage. The structure of the preferences node is as * follows: *

          *
        • roots
            diff --git a/visualizer/IdealGraphVisualizer/SourceRepository/src/test/java/org/graalvm/visualizer/source/GraphSourceTest.java b/visualizer/IdealGraphVisualizer/SourceRepository/src/test/java/org/graalvm/visualizer/source/GraphSourceTest.java index 5d19808b30c1..bcc3edb6df44 100644 --- a/visualizer/IdealGraphVisualizer/SourceRepository/src/test/java/org/graalvm/visualizer/source/GraphSourceTest.java +++ b/visualizer/IdealGraphVisualizer/SourceRepository/src/test/java/org/graalvm/visualizer/source/GraphSourceTest.java @@ -301,7 +301,7 @@ public void testGetNodesAt() throws Exception { locsPassing.removeAll(locs); for (Location l : locsPassing) { - assertTrue("Passing location conrresponds to a node", src.getNodesAt(l).isEmpty()); + assertTrue("Passing location corresponds to a node", src.getNodesAt(l).isEmpty()); } for (Location l : locs) { @@ -327,7 +327,7 @@ public void testAddResolvedLocations() throws Exception { PlatformLocationResolver.enabled = true; PlatformLocationResolver.enablePackage("java/util", true); - // for exmaple node #199 is in java/lang/AbstractStringBuilder. + // for example node #199 is in java/lang/AbstractStringBuilder. // node #10 is in Formatter, it will be loaded GraphSource src = GraphSource.getGraphSource(magnitudeGraph); NodeStack stack = src.getNodeStack(src.getGraph().getNode(10)); diff --git a/visualizer/IdealGraphVisualizer/Upgrade/src/main/java/org/graalvm/visualizer/upgrader/Upgrader.java b/visualizer/IdealGraphVisualizer/Upgrade/src/main/java/org/graalvm/visualizer/upgrader/Upgrader.java index 8cbcbca2b50a..cf674855331b 100644 --- a/visualizer/IdealGraphVisualizer/Upgrade/src/main/java/org/graalvm/visualizer/upgrader/Upgrader.java +++ b/visualizer/IdealGraphVisualizer/Upgrade/src/main/java/org/graalvm/visualizer/upgrader/Upgrader.java @@ -58,7 +58,7 @@ public abstract class Upgrader { */ private static final List FORMER_VERSIONS = Arrays.asList("0.26", "dev"); // NOI18N /** - * Newer Upgraders needs to be "registered" here. Upgrader may be ommited if + * Newer Upgraders needs to be "registered" here. Upgrader may be omitted if * no changes are needed for particular version. */ private static final List KNOWN_UPGRADERS = Arrays.asList(new UpgradeFrom_0_26(), new UpgradeFromOldDev()); diff --git a/visualizer/IdealGraphVisualizer/Util/src/main/java/org/graalvm/visualizer/util/swing/ActionUtils.java b/visualizer/IdealGraphVisualizer/Util/src/main/java/org/graalvm/visualizer/util/swing/ActionUtils.java index f3742d8ae893..722c8e76a70a 100644 --- a/visualizer/IdealGraphVisualizer/Util/src/main/java/org/graalvm/visualizer/util/swing/ActionUtils.java +++ b/visualizer/IdealGraphVisualizer/Util/src/main/java/org/graalvm/visualizer/util/swing/ActionUtils.java @@ -111,7 +111,7 @@ public static Action findAction(String category, String id, Lookup context) { if (a instanceof ContextAwareAction) { a = ((ContextAwareAction) a).createContextAwareInstance(context); if (a instanceof PropertyChangeListener) { - // Bug in action intialization; see NETBEANS-1985. The event will cause the context-bound action + // Bug in action initialization; see NETBEANS-1985. The event will cause the context-bound action // to re-evaluate the status. ((PropertyChangeListener) a).propertyChange(new PropertyChangeEvent(a, Action.SELECTED_KEY, null, Boolean.TRUE)); } @@ -132,7 +132,7 @@ public static ActionMap populatePopupMenu(JPopupMenu menu, ActionMap am, String if (a instanceof ContextAwareAction) { a = ((ContextAwareAction) a).createContextAwareInstance(context); if (a instanceof PropertyChangeListener) { - // Bug in action intialization; see NETBEANS-1985. The event will cause the context-bound action + // Bug in action initialization; see NETBEANS-1985. The event will cause the context-bound action // to re-evaluate the status. ((PropertyChangeListener) a).propertyChange(new PropertyChangeEvent(a, Action.SELECTED_KEY, null, Boolean.TRUE)); } @@ -164,7 +164,7 @@ public static Action addToolbarAction(JToolBar toolBar, Action a, ActionMap am, if (a instanceof ContextAwareAction) { a = ((ContextAwareAction) a).createContextAwareInstance(context); if (a instanceof PropertyChangeListener) { - // Bug in action intialization; see NETBEANS-1985. The event will cause the context-bound action + // Bug in action initialization; see NETBEANS-1985. The event will cause the context-bound action // to re-evaluate the status. ((PropertyChangeListener) a).propertyChange(new PropertyChangeEvent(a, Action.SELECTED_KEY, null, Boolean.TRUE)); } @@ -211,7 +211,7 @@ public static ActionMap populateToolbar(JToolBar toolBar, ActionMap am, String t if (a instanceof ContextAwareAction) { a = ((ContextAwareAction) a).createContextAwareInstance(context); if (a instanceof PropertyChangeListener) { - // Bug in action intialization; see NETBEANS-1985. The event will cause the context-bound action + // Bug in action initialization; see NETBEANS-1985. The event will cause the context-bound action // to re-evaluate the status. ((PropertyChangeListener) a).propertyChange(new PropertyChangeEvent(a, Action.SELECTED_KEY, null, Boolean.TRUE)); } diff --git a/visualizer/IdealGraphVisualizer/Util/src/main/java/org/graalvm/visualizer/util/swing/UIUtils.java b/visualizer/IdealGraphVisualizer/Util/src/main/java/org/graalvm/visualizer/util/swing/UIUtils.java index 93adf9726956..4ff347cd7163 100644 --- a/visualizer/IdealGraphVisualizer/Util/src/main/java/org/graalvm/visualizer/util/swing/UIUtils.java +++ b/visualizer/IdealGraphVisualizer/Util/src/main/java/org/graalvm/visualizer/util/swing/UIUtils.java @@ -284,7 +284,7 @@ public static Color getUnfocusedSelectionBackground() { unfocusedSelBg = UIManager.getColor("controlShadow"); //NOI18N if (unfocusedSelBg == null) { - //Okay, the look and feel doesn't suport it, punt + //Okay, the look and feel doesn't support it, punt unfocusedSelBg = Color.lightGray; } @@ -314,7 +314,7 @@ public static Color getUnfocusedSelectionForeground() { unfocusedSelFg = UIManager.getColor("textText"); //NOI18N if (unfocusedSelFg == null) { - //Okay, the look and feel doesn't suport it, punt + //Okay, the look and feel doesn't support it, punt unfocusedSelFg = Color.BLACK; } } diff --git a/visualizer/IdealGraphVisualizer/View/src/main/java/org/graalvm/visualizer/view/EditorTopComponent.java b/visualizer/IdealGraphVisualizer/View/src/main/java/org/graalvm/visualizer/view/EditorTopComponent.java index ad560e6f6760..ed6dee385792 100644 --- a/visualizer/IdealGraphVisualizer/View/src/main/java/org/graalvm/visualizer/view/EditorTopComponent.java +++ b/visualizer/IdealGraphVisualizer/View/src/main/java/org/graalvm/visualizer/view/EditorTopComponent.java @@ -522,7 +522,7 @@ public EditorTopComponent(InputGraph graph, TimelineModel timeline) { // Component organization into Cards must be done before action init. // The PROP_SATELLITE_SHOWN is not fired based on actual visibility of the - // satelite, but from manipulators. If layout hid the satellite after + // satellite, but from manipulators. If layout hid the satellite after // context actions initialize, they would not get proper change events // for the enabled state. // The layout is changed only using manipulators after initialization, @@ -547,7 +547,7 @@ public EditorTopComponent(InputGraph graph, TimelineModel timeline) { if (a instanceof ContextAwareAction) { a = ((ContextAwareAction) a).createContextAwareInstance(getLookup()); if (a instanceof PropertyChangeListener) { - // Bug in action intialization; see NETBEANS-1985. The event will cause the context-bound action + // Bug in action initialization; see NETBEANS-1985. The event will cause the context-bound action // to re-evaluate the status. ((PropertyChangeListener) a).propertyChange(new PropertyChangeEvent(a, Action.SELECTED_KEY, null, Boolean.TRUE)); } @@ -761,7 +761,7 @@ public int getPersistenceType() { public void componentClosed() { rangeSliderModel.close(); // the quicksearch does not unregister from global result list. - // remove it from the AWT hiearchy, so it does not keep this Component + // remove it from the AWT hierarchy, so it does not keep this Component // through parent chain. this.remove(toolbarContainer); this.toolbar.remove(this.quicksearch); diff --git a/visualizer/IdealGraphVisualizer/View/src/main/java/org/graalvm/visualizer/view/SceneUpdater.java b/visualizer/IdealGraphVisualizer/View/src/main/java/org/graalvm/visualizer/view/SceneUpdater.java index 00ab6e06e194..1da708796914 100644 --- a/visualizer/IdealGraphVisualizer/View/src/main/java/org/graalvm/visualizer/view/SceneUpdater.java +++ b/visualizer/IdealGraphVisualizer/View/src/main/java/org/graalvm/visualizer/view/SceneUpdater.java @@ -180,7 +180,7 @@ protected void fireChangeListeners() { public boolean whenDiagramShown(Runnable r) { synchronized (this) { if (isStubDiagram() || displayBlocker != null || lastDiagram != model.getDiagramToView()) { - LOG.log(Level.FINE, "Diagram is stub or layout is blocked, sheduling for later execution."); + LOG.log(Level.FINE, "Diagram is stub or layout is blocked, scheduling for later execution."); doWhenLayoutCompletes.add(r); return true; } @@ -310,7 +310,7 @@ public boolean refreshView(boolean blockDisplay) { } if (viewportUpdate != null) { if (viewportUpdate.getPhase() != SceneUpdaterTask.Phase.OBSOLETE && viewportUpdate.getExtendedBounds().contains(viewRect)) { - LOG.log(Level.FINE, "Viewport update is alredy scheduled for {0}, view bounds {1} still inside.", new Object[]{viewportUpdate.getExtendedBounds(), viewRect}); + LOG.log(Level.FINE, "Viewport update is already scheduled for {0}, view bounds {1} still inside.", new Object[]{viewportUpdate.getExtendedBounds(), viewRect}); return true; } // do not schedule the task diff --git a/visualizer/IdealGraphVisualizer/View/src/main/java/org/graalvm/visualizer/view/SliderPanel.java b/visualizer/IdealGraphVisualizer/View/src/main/java/org/graalvm/visualizer/view/SliderPanel.java index d6d08a8bff2b..fe1a242339b9 100644 --- a/visualizer/IdealGraphVisualizer/View/src/main/java/org/graalvm/visualizer/view/SliderPanel.java +++ b/visualizer/IdealGraphVisualizer/View/src/main/java/org/graalvm/visualizer/view/SliderPanel.java @@ -237,7 +237,7 @@ public Dimension preferredLayoutSize(Container parent) { } int w = parent.getWidth(); if (w == 0) { - // hack: the slider is burried in two BorderLayouts, one + // hack: the slider is buried in two BorderLayouts, one // of them ought to have NORTH or SOUTH position Container p = parent.getParent(); w = p.getWidth(); diff --git a/vm/benchmarks/interpreter/deltablue.c b/vm/benchmarks/interpreter/deltablue.c index 02cce2ab717e..e584c8ac29bc 100644 --- a/vm/benchmarks/interpreter/deltablue.c +++ b/vm/benchmarks/interpreter/deltablue.c @@ -986,7 +986,7 @@ Constraint ScaleOffsetC(Variable src, Variable scale, Variable offset, * constraint satisfaction plan. There are two cases. In case 1, the added * constraint is stronger than the stay constraint and values must propagate * down the entire length of the chain. In case 2, the added constraint is -* weaker than the stay constraint so it cannot be accomodated. The cost in +* weaker than the stay constraint so it cannot be accommodated. The cost in * this case is, of course, very low. Typical situations lie somewhere between * these two extremes. * diff --git a/vm/benchmarks/interpreter/deltablue.py b/vm/benchmarks/interpreter/deltablue.py index 43bafc1305a6..3b2b5ef1290e 100644 --- a/vm/benchmarks/interpreter/deltablue.py +++ b/vm/benchmarks/interpreter/deltablue.py @@ -538,7 +538,7 @@ def chain_test(n): In case 1, the added constraint is stronger than the stay constraint and values must propagate down the entire length of the chain. In case 2, the added constraint is weaker than the stay - constraint so it cannot be accomodated. The cost in this case is, + constraint so it cannot be accommodated. The cost in this case is, of course, very low. Typical situations lie somewhere between these two extremes. """ diff --git a/vm/benchmarks/interpreter/deltablue.rb b/vm/benchmarks/interpreter/deltablue.rb index 59839588f2c2..28282ed200f5 100644 --- a/vm/benchmarks/interpreter/deltablue.rb +++ b/vm/benchmarks/interpreter/deltablue.rb @@ -174,7 +174,7 @@ def self.chain_test(n) # In case 1, the added constraint is stronger than the stay # constraint and values must propagate down the entire length of the # chain. In case 2, the added constraint is weaker than the stay - # constraint so it cannot be accomodated. The cost in this case is, + # constraint so it cannot be accommodated. The cost in this case is, # of course, very low. Typical situations lie somewhere between these # two extremes. diff --git a/vm/benchmarks/interpreter/pyinit.py b/vm/benchmarks/interpreter/pyinit.py index 89f205d7f1ce..12567dbff8a7 100644 --- a/vm/benchmarks/interpreter/pyinit.py +++ b/vm/benchmarks/interpreter/pyinit.py @@ -24,7 +24,7 @@ def run(): """ - this benchmark is intentionaly left emtpy as it's sole purpose is to be + this benchmark is intentionally left empty as it's sole purpose is to be used to measure python initialization time """ pass diff --git a/vm/benchmarks/interpreter/sieve.rb b/vm/benchmarks/interpreter/sieve.rb index 63070f66ddff..211f27a24d1d 100644 --- a/vm/benchmarks/interpreter/sieve.rb +++ b/vm/benchmarks/interpreter/sieve.rb @@ -21,7 +21,7 @@ # or visit www.oracle.com if you need additional information or have any # questions. -# Note: `while` is used instead of `for`, as Ruby's `for` is syntatic sugar for +# Note: `while` is used instead of `for`, as Ruby's `for` is syntactic sugar for # closures: `for i in 1..n; body; end` is the same as `(1..n).each { |i| body }` def run i = 2 diff --git a/vm/mx.vm/mx_vm_gate.py b/vm/mx.vm/mx_vm_gate.py index dcc3bdd699ae..7d8ea1558e30 100644 --- a/vm/mx.vm/mx_vm_gate.py +++ b/vm/mx.vm/mx_vm_gate.py @@ -573,7 +573,7 @@ def gate_body(args, tasks): def graalvm_svm(): """ - Gives access to image building withing the GraalVM release. Requires dynamic import of substratevm. + Gives access to image building within the GraalVM release. Requires dynamic import of substratevm. """ native_image_cmd = join(mx_sdk_vm_impl.graalvm_output(), 'bin', 'native-image') + ('.cmd' if mx.get_os() == 'windows' else '') svm = mx.suite('substratevm') diff --git a/vm/tests/gh_workflows/CDTInspectorTest/src/main/java/com/oracle/truffle/tools/chromeinspector/workflowtest/CDTLib.java b/vm/tests/gh_workflows/CDTInspectorTest/src/main/java/com/oracle/truffle/tools/chromeinspector/workflowtest/CDTLib.java index e49ed3d64908..74e71441b15d 100644 --- a/vm/tests/gh_workflows/CDTInspectorTest/src/main/java/com/oracle/truffle/tools/chromeinspector/workflowtest/CDTLib.java +++ b/vm/tests/gh_workflows/CDTInspectorTest/src/main/java/com/oracle/truffle/tools/chromeinspector/workflowtest/CDTLib.java @@ -131,7 +131,7 @@ public Actions(WebDriver driver) throws NoSuchElementException { WebElement toolbar = ExpectedConditions.presenceOfElementLocated(By.cssSelector("div.scripts-debug-toolbar")).apply(driver); toolbarButtons = toolbar.getShadowRoot().findElements(By.cssSelector("button.toolbar-button")); if (toolbarButtons.size() < Action.values().length) { - throw new NoSuchElementException("Insufficient numebr of toolbar buttons: " + toolbarButtons.size() + " expecting " + Action.values().length); + throw new NoSuchElementException("Insufficient number of toolbar buttons: " + toolbarButtons.size() + " expecting " + Action.values().length); } } diff --git a/wasm/src/org.graalvm.wasm.test/src/test/wasi/fd_advise-file.wat b/wasm/src/org.graalvm.wasm.test/src/test/wasi/fd_advise-file.wat index e19f0fcc3f92..0f286bcb43b9 100644 --- a/wasm/src/org.graalvm.wasm.test/src/test/wasi/fd_advise-file.wat +++ b/wasm/src/org.graalvm.wasm.test/src/test/wasi/fd_advise-file.wat @@ -82,7 +82,7 @@ (global.get $file_path_length) ;; path length (i32.const 0) ;; oflags (global.get $all_rights) ;; rights base (all rights set) - (global.get $all_rights) ;; rights inherting (all rights set) + (global.get $all_rights) ;; rights inheriting (all rights set) (i32.const 0) ;; fdflags (global.get $file_fd_address) ;; fd address ) @@ -182,4 +182,4 @@ ;; Success (i32.const 0) ) -) \ No newline at end of file +) diff --git a/wasm/src/org.graalvm.wasm.test/src/test/wasi/fd_fdstat_get-file.wat b/wasm/src/org.graalvm.wasm.test/src/test/wasi/fd_fdstat_get-file.wat index 270b214ce213..e9e4ad83ba35 100644 --- a/wasm/src/org.graalvm.wasm.test/src/test/wasi/fd_fdstat_get-file.wat +++ b/wasm/src/org.graalvm.wasm.test/src/test/wasi/fd_fdstat_get-file.wat @@ -56,7 +56,7 @@ (i32.const 8) ;; path length (i32.const 0) ;; oflags (i64.const 2) ;; rights base (only fd_read set) - (i64.const 4) ;; rights inherting (only fd_seek set) + (i64.const 4) ;; rights inheriting (only fd_seek set) (i32.const 1) ;; fdflags (append flag set) (i32.const 8) ;; fd address ) @@ -75,7 +75,7 @@ (if (i32.ne (i32.load16_u (i32.const 14)) (i32.const 1)) (then (return (i32.const -2)))) ;; Check that rights base equal 2 (if (i64.ne (i64.load (i32.const 20)) (i64.const 2)) (then (return (i32.const -3)))) - ;; Check that rights inherting equal 4 + ;; Check that rights inheriting equal 4 (if (i64.ne (i64.load (i32.const 28)) (i64.const 4)) (then (return (i32.const -4)))) ;; Free opened file diff --git a/wasm/src/org.graalvm.wasm.test/src/test/wasi/fd_filestat_get-file.wat b/wasm/src/org.graalvm.wasm.test/src/test/wasi/fd_filestat_get-file.wat index 9b10ffef5902..e67b4cc527e5 100644 --- a/wasm/src/org.graalvm.wasm.test/src/test/wasi/fd_filestat_get-file.wat +++ b/wasm/src/org.graalvm.wasm.test/src/test/wasi/fd_filestat_get-file.wat @@ -56,7 +56,7 @@ (i32.const 8) ;; path length (i32.const 0) ;; oflags (i64.const 2097152) ;; rights base (only fd_fdstat_get set) - (i64.const 2097152) ;; rights inherting (only fd_fdstat_get set) + (i64.const 2097152) ;; rights inheriting (only fd_fdstat_get set) (i32.const 1) ;; fdflags (append flag set) (i32.const 8) ;; fd address ) diff --git a/wasm/src/org.graalvm.wasm.test/src/test/wasi/fd_prestat_get.wat b/wasm/src/org.graalvm.wasm.test/src/test/wasi/fd_prestat_get.wat index 2dc0a5c6aa01..d1fa24337372 100644 --- a/wasm/src/org.graalvm.wasm.test/src/test/wasi/fd_prestat_get.wat +++ b/wasm/src/org.graalvm.wasm.test/src/test/wasi/fd_prestat_get.wat @@ -48,7 +48,7 @@ (local.set $ret (call $fd_prestat_get (i32.const 3) ;; pre-opened "test" directory fd - (i32.const 0) ;; adress at which to write result + (i32.const 0) ;; address at which to write result ) ) ;; Exit in case of error diff --git a/wasm/src/org.graalvm.wasm.test/src/test/wasi/fd_seek-file.wat b/wasm/src/org.graalvm.wasm.test/src/test/wasi/fd_seek-file.wat index eeaf328e9437..d1350c987165 100644 --- a/wasm/src/org.graalvm.wasm.test/src/test/wasi/fd_seek-file.wat +++ b/wasm/src/org.graalvm.wasm.test/src/test/wasi/fd_seek-file.wat @@ -56,7 +56,7 @@ (i32.const 8) ;; path length (i32.const 0) ;; oflags (i64.const 536870911) ;; rights base (all rights set) - (i64.const 536870911) ;; rights inherting (all rights set) + (i64.const 536870911) ;; rights inheriting (all rights set) (i32.const 0) ;; fdflags (i32.const 12) ;; fd address ) diff --git a/wasm/src/org.graalvm.wasm.test/src/test/wasi/path_open-existing-file.wat b/wasm/src/org.graalvm.wasm.test/src/test/wasi/path_open-existing-file.wat index 1d5e9632dd83..32cd560a0514 100644 --- a/wasm/src/org.graalvm.wasm.test/src/test/wasi/path_open-existing-file.wat +++ b/wasm/src/org.graalvm.wasm.test/src/test/wasi/path_open-existing-file.wat @@ -55,7 +55,7 @@ (i32.const 8) ;; path length (i32.const 0) ;; oflags (i64.const 0) ;; rights base - (i64.const 0) ;; rights inherting + (i64.const 0) ;; rights inheriting (i32.const 0) ;; fdflags (i32.const 12) ;; fd address ) diff --git a/wasm/src/org.graalvm.wasm/src/org/graalvm/wasm/predefined/wasi/types/Event.java b/wasm/src/org.graalvm.wasm/src/org/graalvm/wasm/predefined/wasi/types/Event.java index fd54d1d2341b..4929b0cdff9f 100644 --- a/wasm/src/org.graalvm.wasm/src/org/graalvm/wasm/predefined/wasi/types/Event.java +++ b/wasm/src/org.graalvm.wasm/src/org/graalvm/wasm/predefined/wasi/types/Event.java @@ -78,12 +78,12 @@ public static void writeError(Node node, WasmMemory memory, int address, Errno v memory.store_i32_16(node, address + 8, value.toValue()); } - /** Reads the type of event that occured. */ + /** Reads the type of event that occurred. */ public static Eventtype readType(Node node, WasmMemory memory, int address) { return Eventtype.fromValue((byte) memory.load_i32_8u(node, address + 10)); } - /** Writes the type of event that occured. */ + /** Writes the type of event that occurred. */ public static void writeType(Node node, WasmMemory memory, int address, Eventtype value) { memory.store_i32_8(node, address + 10, value.toValue()); }