Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/hotspot/cpu/x86/vm_version_ext_x86.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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",
"",
"",
"",
Expand Down
2 changes: 1 addition & 1 deletion src/hotspot/os/aix/os_aix.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -789,7 +789,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;
}
Expand Down
4 changes: 2 additions & 2 deletions src/hotspot/os/bsd/semaphore_bsd.cpp
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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) {
Expand Down
4 changes: 2 additions & 2 deletions src/hotspot/os/bsd/semaphore_bsd.hpp
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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>

Expand Down
4 changes: 2 additions & 2 deletions src/hotspot/os/posix/semaphore_posix.cpp
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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>

Expand Down
2 changes: 1 addition & 1 deletion src/hotspot/share/classfile/modules.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down
4 changes: 2 additions & 2 deletions src/hotspot/share/gc/parallel/psYoungGen.cpp
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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);
}
}

Expand Down
4 changes: 2 additions & 2 deletions src/hotspot/share/memory/metaspace/metaspaceCommon.cpp
Original file line number Diff line number Diff line change
@@ -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.
*
Expand Down Expand Up @@ -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) {
Expand Down
4 changes: 2 additions & 2 deletions src/hotspot/share/memory/metaspace/metaspaceCommon.hpp
Original file line number Diff line number Diff line change
@@ -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.
*
Expand Down Expand Up @@ -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);

Expand Down
2 changes: 1 addition & 1 deletion src/hotspot/share/memory/metaspace/metaspaceDCmd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ MetaspaceDCmd::MetaspaceDCmd(outputStream* output, bool heap) :
_show_vslist("vslist", "Shows details about the underlying virtual space.", "BOOLEAN", false, "false"),
_show_chunkfreelist("chunkfreelist", "Shows details about global chunk free lists (ChunkManager).", "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")
{
Expand Down
2 changes: 1 addition & 1 deletion src/hotspot/share/services/diagnosticCommand.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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.";
}
Expand Down
2 changes: 1 addition & 1 deletion src/hotspot/share/services/nmtDCmd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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.",
Expand Down
2 changes: 1 addition & 1 deletion src/java.base/share/classes/java/lang/reflect/Proxy.java
Original file line number Diff line number Diff line change
Expand Up @@ -527,7 +527,7 @@ private static Class<?> defineProxyClass(Module m, List<Class<?>> interfaces) {
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()) {
Expand Down
4 changes: 2 additions & 2 deletions src/java.desktop/unix/classes/sun/awt/X11/XMSelection.java
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"
* @requires vm.flagless
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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
*
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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)).
*
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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).
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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).
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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:
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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).
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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
Expand Down
Loading