Skip to content

Commit 0d55602

Browse files
committed
Merge
2 parents c9db257 + 6f492e8 commit 0d55602

File tree

94 files changed

+6110
-103
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

94 files changed

+6110
-103
lines changed

.jcheck/conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[general]
22
project=jdk
33
jbs=JDK
4-
version=21
4+
version=22
55

66
[checks]
77
error=author,committer,reviewers,merge,issues,executable,symlink,message,hg-tag,whitespace,problemlists

make/conf/version-numbers.conf

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,17 +26,17 @@
2626
# Default version, product, and vendor information to use,
2727
# unless overridden by configure
2828

29-
DEFAULT_VERSION_FEATURE=21
29+
DEFAULT_VERSION_FEATURE=22
3030
DEFAULT_VERSION_INTERIM=0
3131
DEFAULT_VERSION_UPDATE=0
3232
DEFAULT_VERSION_PATCH=0
3333
DEFAULT_VERSION_EXTRA1=0
3434
DEFAULT_VERSION_EXTRA2=0
3535
DEFAULT_VERSION_EXTRA3=0
36-
DEFAULT_VERSION_DATE=2023-09-19
37-
DEFAULT_VERSION_CLASSFILE_MAJOR=65 # "`$EXPR $DEFAULT_VERSION_FEATURE + 44`"
36+
DEFAULT_VERSION_DATE=2024-03-19
37+
DEFAULT_VERSION_CLASSFILE_MAJOR=66 # "`$EXPR $DEFAULT_VERSION_FEATURE + 44`"
3838
DEFAULT_VERSION_CLASSFILE_MINOR=0
3939
DEFAULT_VERSION_DOCS_API_SINCE=11
40-
DEFAULT_ACCEPTABLE_BOOT_VERSIONS="20 21"
41-
DEFAULT_JDK_SOURCE_TARGET_VERSION=21
40+
DEFAULT_ACCEPTABLE_BOOT_VERSIONS="20 21 22"
41+
DEFAULT_JDK_SOURCE_TARGET_VERSION=22
4242
DEFAULT_PROMOTED_VERSION_PRE=ea

make/langtools/src/classes/build/tools/symbolgenerator/CreateSymbols.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3700,8 +3700,8 @@ public boolean read(LineBasedReader reader) throws IOException {
37003700
Function<String, MethodParam> string2Param =
37013701
p -> {
37023702
int sep = p.indexOf(':');
3703-
return new MethodParam(Integer.parseInt(p.substring(0, sep)),
3704-
p.substring(sep + 1));
3703+
return new MethodParam(Integer.parseInt(p.substring(0, sep), 16),
3704+
p.substring(sep + 1));
37053705
};
37063706
methodParameters =
37073707
deserializeList(inMethodParameters).stream()

src/hotspot/share/classfile/classFileParser.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,8 @@
145145

146146
#define JAVA_21_VERSION 65
147147

148+
#define JAVA_22_VERSION 66
149+
148150
void ClassFileParser::set_class_bad_constant_seen(short bad_constant) {
149151
assert((bad_constant == JVM_CONSTANT_Module ||
150152
bad_constant == JVM_CONSTANT_Package) && _major_version >= JAVA_9_VERSION,

src/hotspot/share/gc/z/zPhysicalMemory.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -283,15 +283,15 @@ void ZPhysicalMemoryManager::nmt_commit(zoffset offset, size_t size) const {
283283
// When this function is called we don't know where in the virtual memory
284284
// this physical memory will be mapped. So we fake that the virtual memory
285285
// address is the heap base + the given offset.
286-
const zaddress addr = ZOffset::address(offset);
287-
MemTracker::record_virtual_memory_commit((void*)untype(addr), size, CALLER_PC);
286+
const uintptr_t addr = ZAddressHeapBase + untype(offset);
287+
MemTracker::record_virtual_memory_commit((void*)addr, size, CALLER_PC);
288288
}
289289

290290
void ZPhysicalMemoryManager::nmt_uncommit(zoffset offset, size_t size) const {
291291
if (MemTracker::enabled()) {
292-
const zaddress addr = ZOffset::address(offset);
292+
const uintptr_t addr = ZAddressHeapBase + untype(offset);
293293
Tracker tracker(Tracker::uncommit);
294-
tracker.record((address)untype(addr), size);
294+
tracker.record((address)addr, size);
295295
}
296296
}
297297

src/java.base/share/classes/java/lang/Thread.java

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2011,22 +2011,6 @@ public static int enumerate(Thread[] tarray) {
20112011
return currentThread().getThreadGroup().enumerate(tarray);
20122012
}
20132013

2014-
/**
2015-
* Throws {@code UnsupportedOperationException}.
2016-
*
2017-
* @return nothing
2018-
*
2019-
* @deprecated This method was originally designed to count the number of
2020-
* stack frames but the results were never well-defined and it
2021-
* depended on thread-suspension.
2022-
* This method is subject to removal in a future version of Java SE.
2023-
* @see StackWalker
2024-
*/
2025-
@Deprecated(since="1.2", forRemoval=true)
2026-
public int countStackFrames() {
2027-
throw new UnsupportedOperationException();
2028-
}
2029-
20302014
/**
20312015
* Waits at most {@code millis} milliseconds for this thread to terminate.
20322016
* A timeout of {@code 0} means to wait forever.

src/java.base/share/classes/java/lang/reflect/ClassFileFormatVersion.java

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,20 @@ public enum ClassFileFormatVersion {
281281
* href="https://docs.oracle.com/javase/specs/jvms/se21/html/index.html">
282282
* <cite>The Java Virtual Machine Specification, Java SE 21 Edition</cite></a>
283283
*/
284-
RELEASE_21(65);
284+
RELEASE_21(65),
285+
286+
/**
287+
* The version introduced by the Java Platform, Standard Edition
288+
* 22.
289+
*
290+
* @since 22
291+
*
292+
* @see <a
293+
* href="https://docs.oracle.com/javase/specs/jvms/se22/html/index.html">
294+
* <cite>The Java Virtual Machine Specification, Java SE 22 Edition</cite></a>
295+
*/
296+
RELEASE_22(66),
297+
; // Reduce code churn when appending new constants
285298

286299
// Note to maintainers: when adding constants for newer releases,
287300
// the implementation of latest() must be updated too.
@@ -296,7 +309,7 @@ private ClassFileFormatVersion(int major) {
296309
* {@return the latest class file format version}
297310
*/
298311
public static ClassFileFormatVersion latest() {
299-
return RELEASE_21;
312+
return RELEASE_22;
300313
}
301314

302315
/**

src/java.base/share/classes/java/text/Collator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ public static synchronized Collator getInstance() {
275275
* may return a {@code Collator} instance with the Swedish traditional sorting, which
276276
* gives 'v' and 'w' the same sorting order, while the {@code Collator} instance
277277
* for the Swedish locale without "co" identifier distinguishes 'v' and 'w'.
278-
* @spec https://www.unicode.org/reports/tr35/ Unicode Locale Data Markup Language
278+
* @spec https://www.unicode.org/reports/tr35 Unicode Locale Data Markup Language
279279
* (LDML)
280280
* @param desiredLocale the desired locale.
281281
* @return the Collator for the desired locale.

src/java.base/share/classes/jdk/internal/classfile/Classfile.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2022, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2022, 2023, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -606,8 +606,9 @@ public static void buildModuleTo(Path path,
606606
public static final int JAVA_19_VERSION = 63;
607607
public static final int JAVA_20_VERSION = 64;
608608
public static final int JAVA_21_VERSION = 65;
609+
public static final int JAVA_22_VERSION = 66;
609610

610-
public static final int LATEST_MAJOR_VERSION = JAVA_21_VERSION;
611+
public static final int LATEST_MAJOR_VERSION = JAVA_22_VERSION;
611612
public static final int LATEST_MINOR_VERSION = 0;
612613
public static final int PREVIEW_MINOR_VERSION = -1;
613614

src/java.base/share/classes/jdk/internal/org/objectweb/asm/ClassReader.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ public ClassReader(
226226
this.b = classFileBuffer;
227227
// Check the class' major_version. This field is after the magic and minor_version fields, which
228228
// use 4 and 2 bytes respectively.
229-
if (checkClassVersion && readShort(classFileOffset + 6) > Opcodes.V21) {
229+
if (checkClassVersion && readShort(classFileOffset + 6) > Opcodes.V22) {
230230
throw new IllegalArgumentException(
231231
"Unsupported class file major version " + readShort(classFileOffset + 6));
232232
}

0 commit comments

Comments
 (0)