Skip to content

Commit

Permalink
Fix typos in non-Markdown files
Browse files Browse the repository at this point in the history
Clean up misspellings via codespell.
  • Loading branch information
algonell committed Oct 16, 2024
1 parent dbe7efa commit e65cd80
Show file tree
Hide file tree
Showing 349 changed files with 503 additions and 493 deletions.
2 changes: 1 addition & 1 deletion THIRD_PARTY_LICENSE.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
6 changes: 3 additions & 3 deletions ci/ci_common/run-spec-impl.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion compiler/mx.compiler/mx_graal_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ private StructuredGraph getGraph(final String snippet, Set<String> 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());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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()) {
/*
Expand Down Expand Up @@ -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()) {
/*
Expand Down Expand Up @@ -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()) {
/*
Expand Down Expand Up @@ -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()) {
/*
Expand Down Expand Up @@ -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()) {
/*
Expand Down Expand Up @@ -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()) {
/*
Expand Down Expand Up @@ -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()) {
/*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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
Expand Down
Loading

0 comments on commit e65cd80

Please sign in to comment.