mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 14:54:52 +02:00
8311122: Fix typos in java.base
Reviewed-by: darcy, naoto, mchung, iris, mli, mullan
This commit is contained in:
parent
607ddaa0e6
commit
7b3c2dc5f4
13 changed files with 23 additions and 23 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2016, 2023, 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
|
||||
|
@ -48,7 +48,7 @@ import static java.lang.invoke.LambdaForm.Kind.*;
|
|||
* generate classes ahead of time.
|
||||
*/
|
||||
class GenerateJLIClassesHelper {
|
||||
// Map from DirectMethodHandle method type name to index to LambdForms
|
||||
// Map from DirectMethodHandle method type name to index to LambdaForms
|
||||
static final Map<String, Integer> DMH_METHOD_TYPE_MAP =
|
||||
Map.of(
|
||||
DIRECT_INVOKE_VIRTUAL.methodName, LF_INVVIRTUAL,
|
||||
|
|
|
@ -332,7 +332,7 @@ class LambdaForm {
|
|||
this.isCompiled = false;
|
||||
}
|
||||
|
||||
// root factory pre/post processing and calls simple cosntructor
|
||||
// root factory pre/post processing and calls simple constructor
|
||||
private static LambdaForm create(int arity, Name[] names, int result, boolean forceInline, MethodHandle customized, Kind kind) {
|
||||
names = names.clone();
|
||||
assert(namesOK(arity, names));
|
||||
|
|
|
@ -1124,7 +1124,7 @@ abstract class MethodHandleImpl {
|
|||
* Method::invoke on a caller-sensitive method will call
|
||||
* MethodAccessorImpl::invoke(Object, Object[]) through reflect_invoke_V
|
||||
* target.csm(args)
|
||||
* NativeMethodAccesssorImpl::invoke(target, args)
|
||||
* NativeMethodAccessorImpl::invoke(target, args)
|
||||
* MethodAccessImpl::invoke(target, args)
|
||||
* InjectedInvoker::reflect_invoke_V(vamh, target, args);
|
||||
* method::invoke(target, args)
|
||||
|
@ -1683,7 +1683,7 @@ abstract class MethodHandleImpl {
|
|||
* @param tloop the return type of the loop.
|
||||
* @param targs types of the arguments to be passed to the loop.
|
||||
* @param init sanitized array of initializers for loop-local variables.
|
||||
* @param step sanitited array of loop bodies.
|
||||
* @param step sanitized array of loop bodies.
|
||||
* @param pred sanitized array of predicates.
|
||||
* @param fini sanitized array of loop finalizers.
|
||||
*
|
||||
|
|
|
@ -3843,7 +3843,7 @@ return mh1;
|
|||
|
||||
/**
|
||||
* Perform steps 1 and 2b <a href="MethodHandles.Lookup.html#secmgr">access checks</a>
|
||||
* for ensureInitialzed, findClass or accessClass.
|
||||
* for ensureInitialized, findClass or accessClass.
|
||||
*/
|
||||
void checkSecurityManager(Class<?> refc) {
|
||||
if (allowedModes == TRUSTED) return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue