Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

8271396: Spelling errors #2385

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
@@ -948,7 +948,7 @@ const char* const VM_Version_Ext::_feature_ecx_id[] = {

const char* const VM_Version_Ext::_feature_extended_ecx_id[] = {
"LAHF/SAHF instruction support",
"Core multi-processor leagacy mode",
"Core multi-processor legacy mode",
"",
"",
"",
@@ -788,7 +788,7 @@ bool os::create_thread(Thread* thread, ThreadType thr_type,
// JDK-8187028: It was observed that on some configurations (4K backed thread stacks)
// the real thread stack size may be smaller than the requested stack size, by as much as 64K.
// This very much looks like a pthread lib error. As a workaround, increase the stack size
// by 64K for small thread stacks (arbitrarily choosen to be < 4MB)
// by 64K for small thread stacks (arbitrarily chosen to be < 4MB)
if (stack_size < 4096 * K) {
stack_size += 64 * K;
}
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2018, 2020, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2018, 2021, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -30,7 +30,7 @@
#include <semaphore.h>

#ifdef __APPLE__
// OS X doesn't support unamed POSIX semaphores, so the implementation in os_posix.cpp can't be used.
// OS X doesn't support unnamed POSIX semaphores, so the implementation in os_posix.cpp can't be used.

static const char* sem_init_strerror(kern_return_t value) {
switch (value) {
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2015, 2019, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2015, 2021, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -32,7 +32,7 @@
# include "semaphore_posix.hpp"

#else
// OS X doesn't support unamed POSIX semaphores, so the implementation in os_posix.cpp can't be used.
// OS X doesn't support unnamed POSIX semaphores, so the implementation in os_posix.cpp can't be used.
# include "memory/allocation.hpp"
# include <mach/semaphore.h>

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2018, 2020, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2018, 2021, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -25,7 +25,7 @@
#include "precompiled.hpp"
#ifndef __APPLE__
#include "runtime/os.hpp"
// POSIX unamed semaphores are not supported on OS X.
// POSIX unnamed semaphores are not supported on OS X.
#include "semaphore_posix.hpp"
#include <semaphore.h>

@@ -698,7 +698,7 @@ jobject Modules::get_module(jclass clazz, TRAPS) {
ls.print("get_module(): module ");
java_lang_String::print(module_name, tty);
} else {
ls.print("get_module(): Unamed Module");
ls.print("get_module(): Unnamed Module");
}
if (klass != NULL) {
ls.print_cr(" for class %s", klass->external_name());
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2001, 2020, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2001, 2021, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -317,7 +317,7 @@ bool PSYoungGen::resize_generation(size_t eden_size, size_t survivor_size) {
if (orig_size == max_gen_size()) {
log_trace(gc)("PSYoung generation size at maximum: " SIZE_FORMAT "K", orig_size/K);
} else if (orig_size == min_gen_size()) {
log_trace(gc)("PSYoung generation size at minium: " SIZE_FORMAT "K", orig_size/K);
log_trace(gc)("PSYoung generation size at minimum: " SIZE_FORMAT "K", orig_size/K);
}
}

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2018, 2020, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2018, 2021, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2018, 2020 SAP SE. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
@@ -66,7 +66,7 @@ static const char* display_unit_for_scale(size_t scale) {
// Print a human readable size.
// byte_size: size, in bytes, to be printed.
// scale: one of 1 (byte-wise printing), sizeof(word) (word-size printing), K, M, G (scaled by KB, MB, GB respectively,
// or 0, which means the best scale is choosen dynamically.
// or 0, which means the best scale is chosen dynamically.
// width: printing width.
void print_human_readable_size(outputStream* st, size_t byte_size, size_t scale, int width) {
if (scale == 0) {
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2018, 2020, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2018, 2021, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2018, 2020 SAP SE. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
@@ -67,7 +67,7 @@ void print_scaled_words_and_percentage(outputStream* st, size_t word_size, size_
// Print a human readable size.
// byte_size: size, in bytes, to be printed.
// scale: one of 1 (byte-wise printing), sizeof(word) (word-size printing), K, M, G (scaled by KB, MB, GB respectively,
// or 0, which means the best scale is choosen dynamically.
// or 0, which means the best scale is chosen dynamically.
// width: printing width.
void print_human_readable_size(outputStream* st, size_t byte_size, size_t scale = 0, int width = -1);

@@ -43,7 +43,7 @@ MetaspaceDCmd::MetaspaceDCmd(outputStream* output, bool heap) :
_by_chunktype("by-chunktype", "Break down numbers by chunk type.", "BOOLEAN", false, "false"),
_show_vslist("vslist", "Shows details about the underlying virtual space.", "BOOLEAN", false, "false"),
_scale("scale", "Memory usage in which to scale. Valid values are: 1, KB, MB or GB (fixed scale) "
"or \"dynamic\" for a dynamically choosen scale.",
"or \"dynamic\" for a dynamically chosen scale.",
"STRING", false, "dynamic"),
_show_classes("show-classes", "If show-loaders is set, shows loaded classes for each loader.", "BOOLEAN", false, "false")
{
@@ -371,7 +371,7 @@ class ClassHierarchyDCmd : public DCmdWithParser {
return "VM.class_hierarchy";
}
static const char* description() {
return "Print a list of all loaded classes, indented to show the class hiearchy. "
return "Print a list of all loaded classes, indented to show the class hierarchy. "
"The name of each class is followed by the ClassLoaderData* of its ClassLoader, "
"or \"null\" if loaded by the bootstrap class loader.";
}
@@ -35,7 +35,7 @@ NMTDCmd::NMTDCmd(outputStream* output,
bool heap): DCmdWithParser(output, heap),
_summary("summary", "request runtime to report current memory summary, " \
"which includes total reserved and committed memory, along " \
"with memory usage summary by each subsytem.",
"with memory usage summary by each subsystem.",
"BOOLEAN", false, "false"),
_detail("detail", "request runtime to report memory allocation >= "
"1K by each callsite.",
@@ -527,7 +527,7 @@ private static void checkProxyAccess(Class<?> caller,
if (proxyPkg == null) {
// all proxy interfaces are public and exported
if (!m.isNamed())
throw new InternalError("ununamed module: " + m);
throw new InternalError("unnamed module: " + m);
proxyPkg = nonExported ? PROXY_PACKAGE_PREFIX + "." + m.getName()
: m.getName();
} else if (proxyPkg.isEmpty() && m.isNamed()) {
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2003, 2018, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2003, 2021, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -37,7 +37,7 @@
public class XMSelection {

/*
* A method for a subsytem to express its interest in a certain
* A method for a subsystem to express its interest in a certain
* manager selection.
*
* If owner changes, the ownerChanged of the XMSelectionListener
@@ -22,7 +22,7 @@
*/

/* @test TestLargePagesFlags
* @summary Tests how large pages are choosen depending on the given large pages flag combinations.
* @summary Tests how large pages are chosen depending on the given large pages flag combinations.
* @requires vm.gc != "Z"
* @requires os.family == "linux"
* @library /test/lib
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2018, 2020, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2018, 2021, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -76,7 +76,7 @@
* 4448603: JDI spec: ArrayReference.setValues(List) has discrepancy
* Evaluation:
* There is indeed an inconsistency. The safer of the two options should be
* choosen: ignore tail elements in Lists that are too long. This is also what
* chosen: ignore tail elements in Lists that are too long. This is also what
* the reference implementation does.
* 4419982: JDI: two StackFrame methods return incorrect values for double
*
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2007, 2020, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2007, 2021, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -31,7 +31,7 @@
* VM Testbase readme:
* DESCRIPTION
* Test covers bug 6426321. Test stress event queue forcing loading of 3000 classes in debuggee.
* Debugger in loop sends commad to debuggee to load class and waits READY answer.
* Debugger in loop sends command to debuggee to load class and waits READY answer.
* Test passes if no hangs or any other errors occur in debuggee (if debuggee successfully sends answers for all commands).
* (number of classes to load can be changed through parameter -classesToLoad (for example -classesToLoad 1000)).
*
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2018, 2020, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2018, 2021, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -38,20 +38,20 @@
* during the OnLoad phase
* - enables events via SetEventNotificationMode during the OnLoad phase
* for all optional events
* - provides the state to provoke generation of choosen events
* - checks that VM_INIT and choosen events were sent.
* - provides the state to provoke generation of chosen events
* - checks that VM_INIT and chosen events were sent.
* (2)
* - sets off callbacks for all optional events
* - changes callbacks for choosen events
* - provides the state to provoke generation of choosen events
* - checks that choosen events were sent
* - changes callbacks for chosen events
* - provides the state to provoke generation of chosen events
* - checks that chosen events were sent
* - checks that altered callback works.
* (3)
* - sets off callbacks for choosen events
* - sets off callbacks for chosen events
* - sets callback for VM_DEATH event
* - checks that no choosen events are sent until VMDeath event.
* - checks that no chosen events are sent until VMDeath event.
* This test checks that:
* (a) except for choosen events no other optional events are generated on
* (a) except for chosen events no other optional events are generated on
* steps (1) and (2).
* (b) Numbers of expected event on steps (1) and (2) is equal to 1.
* (c) except for VM_DEATH no other events are generated on step (3).
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2018, 2020, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2018, 2021, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -41,20 +41,20 @@
* during the OnLoad phase
* - enables events via SetEventNotificationMode during the OnLoad phase
* for all optional events
* - provides the state to provoke generation of choosen events
* - checks that VM_INIT and choosen events were sent.
* - provides the state to provoke generation of chosen events
* - checks that VM_INIT and chosen events were sent.
* (2)
* - sets off callbacks for all optional events
* - changes callbacks for choosen events
* - provides the state to provoke generation of choosen events
* - checks that choosen events were sent
* - changes callbacks for chosen events
* - provides the state to provoke generation of chosen events
* - checks that chosen events were sent
* - checks that altered callback works.
* (3)
* - sets off callbacks for choosen events
* - sets off callbacks for chosen events
* - sets callback for VM_DEATH event
* - checks that no choosen events are sent until VMDeath event.
* - checks that no chosen events are sent until VMDeath event.
* This test checks that:
* (a) except for choosen events no other optional events are generated on
* (a) except for chosen events no other optional events are generated on
* steps (1) and (2).
* (b) Numbers of expected event on steps (1) and (2) is equal to 1.
* (c) except for VM_DEATH no other events are generated on step (3).
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2018, 2020, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2018, 2021, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -36,20 +36,20 @@
* 1)
* - adds the <can_generate_compiled_method_load_events> capability in
* the OnLoad phase
* - sets callbacks for VM_INIT and choosen events during the OnLoad phase
* - sets callbacks for VM_INIT and chosen events during the OnLoad phase
* - enables events via SetEventNotificationMode during the OnLoad phase
* for all optional events.
* - provides the state to provoke generation of choosen events
* - checks that VM_INIT and choosen events were sent
* - provides the state to provoke generation of chosen events
* - checks that VM_INIT and chosen events were sent
* 2)
* - changes callbacks for choosen events
* - provides the state to provoke generation of choosen events
* - checks that choosen events were sent
* - changes callbacks for chosen events
* - provides the state to provoke generation of chosen events
* - checks that chosen events were sent
* - checks that altered callback works.
* 3)
* - sets off callbacks for choosen events
* - sets off callbacks for chosen events
* - sets callback for VM_DEATH event
* - checks that no choosen events are sent until VMDeath event.
* - checks that no chosen events are sent until VMDeath event.
* COMMENTS
* #4033759 JIT compiler must support unloading of classes containing compiled methods
* Adjusted according to J2SE CCC updates:
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2018, 2020, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2018, 2021, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -38,20 +38,20 @@
* during the OnLoad phase
* - enables events via SetEventNotificationMode during the OnLoad phase
* for all optional events
* - provides the state to provoke generation of choosen events
* - checks that VM_INIT and choosen events were sent.
* - provides the state to provoke generation of chosen events
* - checks that VM_INIT and chosen events were sent.
* (2)
* - sets off callbacks for all optional events
* - changes callbacks for choosen events
* - provides the state to provoke generation of choosen events
* - checks that choosen events were sent
* - changes callbacks for chosen events
* - provides the state to provoke generation of chosen events
* - checks that chosen events were sent
* - checks that altered callback works.
* (3)
* - sets off callbacks for choosen events
* - sets off callbacks for chosen events
* - sets callback for VM_DEATH event
* - checks that no choosen events are sent until VMDeath event.
* - checks that no chosen events are sent until VMDeath event.
* This test checks that:
* (a) except for choosen events no other optional events are generated on
* (a) except for chosen events no other optional events are generated on
* steps (1) and (2).
* (b) Numbers of expected event on steps (1) and (2) is equal to 1.
* (c) except for VM_DEATH no other events are generated on step (3).
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2018, 2020, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2018, 2021, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -34,21 +34,21 @@
* 1)
* - adds the <can_generate_exception_events> capability during
* the OnLoad phase;
* - sets callbacks for VM_INIT and choosen events during the OnLoad phase;
* - sets callbacks for VM_INIT and chosen events during the OnLoad phase;
* - enables all optional events via SetEventNotificationMode during
* the OnLoad phase;
* - starts debuggee's threads which throw exceptions;
* - expects that at least one EXCEPTION and EXCEPTION_CATCH events will
* be sent.
* 2)
* - changes callbacks for choosen event;
* - changes callbacks for chosen event;
* - starts debuggee's threads which throw exceptions;
* - checks that altered callback works and at least one EXCEPTION and
* EXCEPTION_CATCH events will be sent.
* 3)
* - sets off callbacks for choosen event;
* - sets off callbacks for chosen event;
* - sets callback for VM_DEATH event;
* - checks that no choosen events are sent until VMDeath event.
* - checks that no chosen events are sent until VMDeath event.
* COMMENTS
* Modified due to fix of the bug
* 5010571 TEST_BUG: jvmti tests with VMObjectAlloc callbacks should