mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 14:54:52 +02:00
Merge
This commit is contained in:
commit
3c76c33dba
313 changed files with 8110 additions and 11952 deletions
|
@ -57,8 +57,6 @@ import java.util.stream.Stream;
|
|||
import jdk.internal.loader.BuiltinClassLoader;
|
||||
import jdk.internal.loader.BootLoader;
|
||||
import jdk.internal.loader.ClassLoaders;
|
||||
import jdk.internal.misc.JavaLangAccess;
|
||||
import jdk.internal.misc.SharedSecrets;
|
||||
import jdk.internal.module.IllegalAccessLogger;
|
||||
import jdk.internal.module.ModuleLoaderMap;
|
||||
import jdk.internal.module.ServicesCatalog;
|
||||
|
@ -68,6 +66,7 @@ import jdk.internal.org.objectweb.asm.Attribute;
|
|||
import jdk.internal.org.objectweb.asm.ClassReader;
|
||||
import jdk.internal.org.objectweb.asm.ClassVisitor;
|
||||
import jdk.internal.org.objectweb.asm.ClassWriter;
|
||||
import jdk.internal.org.objectweb.asm.ModuleVisitor;
|
||||
import jdk.internal.org.objectweb.asm.Opcodes;
|
||||
import jdk.internal.reflect.CallerSensitive;
|
||||
import jdk.internal.reflect.Reflection;
|
||||
|
@ -1432,7 +1431,7 @@ public final class Module implements AnnotatedElement {
|
|||
ClassWriter cw = new ClassWriter(ClassWriter.COMPUTE_MAXS
|
||||
+ ClassWriter.COMPUTE_FRAMES);
|
||||
|
||||
ClassVisitor cv = new ClassVisitor(Opcodes.ASM5, cw) {
|
||||
ClassVisitor cv = new ClassVisitor(Opcodes.ASM6, cw) {
|
||||
@Override
|
||||
public void visit(int version,
|
||||
int access,
|
||||
|
@ -1458,6 +1457,11 @@ public final class Module implements AnnotatedElement {
|
|||
public void visitAttribute(Attribute attr) {
|
||||
// drop non-annotation attributes
|
||||
}
|
||||
@Override
|
||||
public ModuleVisitor visitModule(String name, int flags, String version) {
|
||||
// drop Module attribute
|
||||
return null;
|
||||
}
|
||||
};
|
||||
|
||||
ClassReader cr = new ClassReader(in);
|
||||
|
|
|
@ -1937,7 +1937,7 @@ public final class System {
|
|||
// initialization. So make sure the "props" is available at the
|
||||
// very beginning of the initialization and all system properties to
|
||||
// be put into it directly.
|
||||
props = new Properties();
|
||||
props = new Properties(84);
|
||||
initProperties(props); // initialized by the VM
|
||||
|
||||
// There are certain system configurations that may be controlled by
|
||||
|
|
|
@ -765,7 +765,7 @@ public abstract class MethodHandle {
|
|||
* In every other case, all conversions are applied <em>pairwise</em>,
|
||||
* which means that each argument or return value is converted to
|
||||
* exactly one argument or return value (or no return value).
|
||||
* The applied conversions are defined by consulting the
|
||||
* The applied conversions are defined by consulting
|
||||
* the corresponding component types of the old and new
|
||||
* method handle types.
|
||||
* <p>
|
||||
|
|
|
@ -194,7 +194,7 @@ public final class StringConcatFactory {
|
|||
static {
|
||||
// In case we need to double-back onto the StringConcatFactory during this
|
||||
// static initialization, make sure we have the reasonable defaults to complete
|
||||
// the static initialization properly. After that, actual users would use the
|
||||
// the static initialization properly. After that, actual users would use
|
||||
// the proper values we have read from the properties.
|
||||
STRATEGY = DEFAULT_STRATEGY;
|
||||
// CACHE_ENABLE = false; // implied
|
||||
|
|
|
@ -205,7 +205,7 @@ import static java.lang.invoke.MethodHandleStatics.newInternalError;
|
|||
* and {@code double} on 32-bit platforms.
|
||||
*
|
||||
* <p>Access modes will override any memory ordering effects specified at
|
||||
* the declaration site of a variable. For example, a VarHandle accessing a
|
||||
* the declaration site of a variable. For example, a VarHandle accessing
|
||||
* a field using the {@code get} access mode will access the field as
|
||||
* specified <em>by its access mode</em> even if that field is declared
|
||||
* {@code volatile}. When mixed access is performed extreme care should be
|
||||
|
@ -423,7 +423,7 @@ import static java.lang.invoke.MethodHandleStatics.newInternalError;
|
|||
* {@link java.lang.invoke.MethodHandles#varHandleInvoker}.
|
||||
*
|
||||
* <h1>Interoperation between VarHandles and Java generics</h1>
|
||||
* A VarHandle can be obtained for a variable, such as a a field, which is
|
||||
* A VarHandle can be obtained for a variable, such as a field, which is
|
||||
* declared with Java generic types. As with the Core Reflection API, the
|
||||
* VarHandle's variable type will be constructed from the erasure of the
|
||||
* source-level type. When a VarHandle access mode method is invoked, the
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue