Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
9d330da
8037013: [TESTBUG] Fix test/java/lang/ClassLoader/Assert.sh on AIX
sophia-guo Dec 2, 2024
00d2542
8326110: [8u] The Marlin tests should be updated after JDK-8241307
mrserb Dec 2, 2024
10122b5
8268457: XML Transformer outputs Unicode supplementary character inco…
Dec 3, 2024
2931b1d
8068305: [TEST_BUG] Test java/awt/Mixing/HWDisappear.java fails with …
mrserb Dec 3, 2024
d407d63
8345504: Bump update version of OpenJDK: 8u452
gnu-andrew Dec 5, 2024
5a4b440
8335912: Add an operation mode to the jar command when extracting to …
Dec 6, 2024
3683a81
Merge
gnu-andrew Jan 22, 2025
492acd3
8265019: Update tests for additional TestNG test permissions
zzambers Jan 29, 2025
f89c26f
8266881: Enable debug log for SSLEngineExplorerMatchedSNI.java
Jan 30, 2025
bfd4d8b
8048215: [TESTBUG] java/lang/management/ManagementFactory/ThreadMXBea…
Jan 30, 2025
8b08668
8250825: C2 crashes with assert(field != __null) failed: missing field
Jan 30, 2025
4c50940
8316193: jdk/jfr/event/oldobject/TestListenerLeak.java java.lang.Exce…
cost0much Feb 4, 2025
88a7829
8339644: Improve parsing of Day/Month in tzdata rules
Feb 20, 2025
fc88d51
8255466: C2 crashes at ciObject::get_oop() const+0x0
Feb 20, 2025
f5e9a25
8349166: Bad indentation in backport of JDK-8250825
Feb 20, 2025
5ccff2c
8348211: [8u] sun/management/jmxremote/startstop/JMXStartStopTest.jav…
zzambers Feb 25, 2025
85fb26b
8244966: Add .vscode to .hgignore and .gitignore
Feb 25, 2025
8eccf89
8340660: [8u] Test com/sun/jdi/PrivateTransportTest.sh fails on MacOS
zzambers Feb 25, 2025
0b5a2e7
8346140: [8u] tools/jar/ExtractFilesTest.java and tools/jar/MultipleM…
Feb 25, 2025
898e131
8261020: Wrong format parameter in create_emergency_chunk_path
lingjun-cg Feb 26, 2025
24cade6
8340552: Harden TzdbZoneRulesCompiler against missing zone names
Feb 26, 2025
8f8531c
8285756: clean up use of bad arguments for `@clean` in langtools tests
Feb 26, 2025
6a7d893
8350816: [8u] Update TzdbZoneRulesCompiler to ignore HST/EST/MST links
Feb 28, 2025
33d7a03
8339637: (tz) Update Timezone Data to 2024b
Mar 6, 2025
f4fc3e3
8339560: Unaddressed comments during code review of JDK-8337664
jerboaa Mar 10, 2025
41cefc7
8346587: Distrust TLS server certificates anchored by Camerfirma Root…
jerboaa Mar 14, 2025
93122ab
8347965: (tz) Update Timezone Data to 2025a
Mar 14, 2025
b10963f
8352097: (tz) zone.tab update missed in 2025a backport
gnu-andrew Mar 27, 2025
3c59424
8240235: jdk.test.lib.util.JarUtils updates jar files incorrectly
Mar 26, 2025
fd8e509
8337494: Clarify JarInputStream behavior
Jan 2, 2025
55af9ec
8309841: Jarsigner should print a warning if an entry is removed
Mar 27, 2025
3d5cfe2
8339810: Clean up the code in sun.tools.jar.Main to properly close re…
martinuy Mar 27, 2025
3cdd308
8337692: Better TLS connection support
martinuy Mar 17, 2025
949c6ff
8338430: Improve compiler transformations
martinuy Mar 17, 2025
93e8e20
8342562: Enhance Deflater operations
Feb 6, 2025
68d10da
8343007: Enhance Buffered Image handling
Dec 12, 2024
898c0ef
8347847: Enhance jar file support
martinuy Mar 19, 2025
35c254f
8353433: XCG currency code not recognized in JDK 8u
gnu-andrew Apr 11, 2025
021ed43
Merge tag 'jdk8u452-ga'
gnu-andrew Apr 18, 2025
21f2214
8293107: GHA: Bump to Ubuntu 22.04
zzambers Apr 17, 2025
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
14 changes: 7 additions & 7 deletions .github/workflows/submit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ concurrency:
jobs:
prerequisites:
name: Prerequisites
runs-on: "ubuntu-20.04"
runs-on: "ubuntu-22.04"
outputs:
should_run: ${{ steps.check_submit.outputs.should_run }}
bundle_id: ${{ steps.check_bundle_id.outputs.bundle_id }}
Expand Down Expand Up @@ -115,7 +115,7 @@ jobs:

linux_x64_build:
name: Linux x64
runs-on: "ubuntu-20.04"
runs-on: "ubuntu-22.04"
needs: prerequisites
if: needs.prerequisites.outputs.should_run != 'false' && needs.prerequisites.outputs.platform_linux_x64 != 'false'

Expand Down Expand Up @@ -192,7 +192,7 @@ jobs:

linux_x64_test:
name: Linux x64
runs-on: "ubuntu-20.04"
runs-on: "ubuntu-22.04"
needs:
- prerequisites
- linux_x64_build
Expand Down Expand Up @@ -309,7 +309,7 @@ jobs:

linux_additional_build:
name: Linux additional
runs-on: "ubuntu-20.04"
runs-on: "ubuntu-22.04"
needs:
- prerequisites
if: needs.prerequisites.outputs.should_run != 'false' && needs.prerequisites.outputs.platform_linux_additional != 'false'
Expand Down Expand Up @@ -466,7 +466,7 @@ jobs:

linux_x86_build:
name: Linux x86
runs-on: "ubuntu-20.04"
runs-on: "ubuntu-22.04"
needs: prerequisites
if: needs.prerequisites.outputs.should_run != 'false' && needs.prerequisites.outputs.platform_linux_x86 != 'false'

Expand Down Expand Up @@ -553,7 +553,7 @@ jobs:

linux_x86_test:
name: Linux x86
runs-on: "ubuntu-20.04"
runs-on: "ubuntu-22.04"
needs:
- prerequisites
- linux_x86_build
Expand Down Expand Up @@ -1588,7 +1588,7 @@ jobs:

artifacts:
name: Post-process artifacts
runs-on: "ubuntu-20.04"
runs-on: "ubuntu-22.04"
if: always()
continue-on-error: true
needs:
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/build/
/dist/
/.idea/
/.vscode/
nbproject/private/
/webrev
/.src-rev
Expand Down
2 changes: 1 addition & 1 deletion .jcheck/conf
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[general]
project=jdk8u
jbs=JDK
version=openjdk8u442
version=openjdk8u452

[checks]
error=author,committer,reviewers,merge,issues,executable,symlink,message,hg-tag,whitespace
Expand Down
2 changes: 1 addition & 1 deletion common/autoconf/version-numbers
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
JDK_MAJOR_VERSION=1
JDK_MINOR_VERSION=8
JDK_MICRO_VERSION=0
JDK_UPDATE_VERSION=442
JDK_UPDATE_VERSION=452
LAUNCHER_NAME=openjdk
PRODUCT_NAME=OpenJDK
PRODUCT_SUFFIX="Runtime Environment"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ static const char* create_emergency_chunk_path(const char* repository_path) {
return NULL;
}
// append the individual substrings
jio_snprintf(chunk_path, chunkname_max_len, "%s%s%s%s", repository_path_len, os::file_separator(), date_time_buffer, chunk_file_jfr_ext);
jio_snprintf(chunk_path, chunkname_max_len, "%s%s%s%s", repository_path, os::file_separator(), date_time_buffer, chunk_file_jfr_ext);
return chunk_path;
}

Expand Down
39 changes: 38 additions & 1 deletion hotspot/src/share/vm/opto/addnode.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1997, 2025, 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 @@ -941,6 +941,14 @@ static bool can_overflow(const TypeInt* t, jint c) {
(c > 0 && (java_add(t_hi, c) < t_hi)));
}

// Check if addition of a long with type 't' and a constant 'c' can overflow.
static bool can_overflow(const TypeLong* t, jlong c) {
jlong t_lo = t->_lo;
jlong t_hi = t->_hi;
return ((c < 0 && (java_add(t_lo, c) > t_lo)) ||
(c > 0 && (java_add(t_hi, c) < t_hi)));
}

//=============================================================================
//------------------------------Idealize---------------------------------------
// MINs show up in range-check loop limit calculations. Look for
Expand Down Expand Up @@ -1052,6 +1060,31 @@ Node *MinINode::Ideal(PhaseGVN *phase, bool can_reshape) {
//
// Note: we assume that SubL was already replaced by an AddL, and that the stride
// has its sign flipped: SubL(limit, stride) -> AddL(limit, -stride).
//
// Proof MaxL collapsed version equivalent to original (MinL version similar):
// is_sub_con ensures that con1, con2 ∈ [min_int, 0[
//
// Original:
// - AddL2 underflow => x + con2 ∈ ]max_long - min_int, max_long], ALWAYS BAILOUT as x + con1 + con2 surely fails can_overflow (*)
// - AddL2 no underflow => x + con2 ∈ [min_long, max_long]
// - MaxL2 clamp => min_int
// - AddL1 underflow: NOT POSSIBLE: cannot underflow since min_int + con1 ∈ [2 * min_int, min_int] always > min_long
// - AddL1 no underflow => min_int + con1 ∈ [2 * min_int, min_int]
// - MaxL1 clamp => min_int (RESULT 1)
// - MaxL1 no clamp: NOT POSSIBLE: min_int + con1 ∈ [2 * min_int, min_int] always <= min_int, so clamp always taken
// - MaxL2 no clamp => x + con2 ∈ [min_int, max_long]
// - AddL1 underflow: NOT POSSIBLE: cannot underflow since x + con2 + con1 ∈ [2 * min_int, max_long] always > min_long
// - AddL1 no underflow => x + con2 + con1 ∈ [2 * min_int, max_long]
// - MaxL1 clamp => min_int (RESULT 2)
// - MaxL1 no clamp => x + con2 + con1 ∈ ]min_int, max_long] (RESULT 3)
//
// Collapsed:
// - AddL2 (cannot underflow) => con2 + con1 ∈ [2 * min_int, 0]
// - AddL1 underflow: NOT POSSIBLE: would have bailed out at can_overflow (*)
// - AddL1 no underflow => x + con2 + con1 ∈ [min_long, max_long]
// - MaxL clamp => min_int (RESULT 1 and RESULT 2)
// - MaxL no clamp => x + con2 + con1 ∈ ]min_int, max_long] (RESULT 3)
//
static bool is_clamp(PhaseGVN* phase, Node* n, Node* c) {
// Check that the two clamps have the correct values.
jlong clamp = (n->Opcode() == Op_MaxL) ? min_jint : max_jint;
Expand Down Expand Up @@ -1083,6 +1116,10 @@ Node* fold_subI_no_underflow_pattern(Node* n, PhaseGVN* phase) {
Node* x = add2->in(1);
Node* con2 = add2->in(2);
if (is_sub_con(phase, n, con2)) {
// Collapsed graph not equivalent if potential over/underflow -> bailing out (*)
if (can_overflow(phase->type(x)->is_long(), con1->get_long() + con2->get_long())) {
return NULL;
}
Node* new_con = phase->transform(new (phase->C) AddLNode(con1, con2));
Node* new_sub = phase->transform(new (phase->C) AddLNode(x, new_con));
n->set_req_X(1, new_sub, phase);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
* @test
* @bug 8255466
* @summary unsafe access to static field causes crash
*
* @library /testlibrary
* @run main/othervm -Xcomp -XX:CompileCommand=compileonly,TestUnsafeStaticFieldAccess::* TestUnsafeStaticFieldAccess
*
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2014, 2018, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2014, 2021, Oracle and/or its affiliates. All rights reserved.
*/
/*
* Licensed to the Apache Software Foundation (ASF) under one
Expand Down Expand Up @@ -1393,32 +1393,23 @@ else if (
}
}
}

// The next is kind of a hack to keep from escaping in the case
// of Shift_JIS and the like.

/*
else if ((ch < m_maxCharacter) && (m_maxCharacter == 0xFFFF)
&& (ch != 160))
{
writer.write(ch); // no escaping in this case
}
else
*/
String outputStringForChar = m_charInfo.getOutputStringForChar(ch);
if (null != outputStringForChar)
{
writer.write(outputStringForChar);
}
else if (escapingNotNeeded(ch))
{
writer.write(ch); // no escaping in this case
}
else
{
writer.write("&#");
writer.write(Integer.toString(ch));
writer.write(';');
String outputStringForChar = m_charInfo.getOutputStringForChar(ch);
if (null != outputStringForChar)
{
writer.write(outputStringForChar);
}
else if (escapingNotNeeded(ch))
{
writer.write(ch); // no escaping in this case
}
else
{
writer.write("&#");
writer.write(Integer.toString(ch));
writer.write(';');
}
}
}
cleanStart = i + 1;
Expand Down
2 changes: 1 addition & 1 deletion jdk/make/data/tzdata/VERSION
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@
# or visit www.oracle.com if you need additional information or have any
# questions.
#
tzdata2024a
tzdata2025a
37 changes: 24 additions & 13 deletions jdk/make/data/tzdata/africa
Original file line number Diff line number Diff line change
Expand Up @@ -126,10 +126,9 @@ Zone Africa/Algiers 0:12:12 - LMT 1891 Mar 16

# Cape Verde / Cabo Verde
#
# From Paul Eggert (2018-02-16):
# Shanks gives 1907 for the transition to +02.
# For now, ignore that and follow the 1911-05-26 Portuguese decree
# (see Europe/Lisbon).
# From Tim Parenti (2024-07-01), per Paul Eggert (2018-02-16):
# For timestamps before independence, see commentary for Europe/Lisbon.
# Shanks gives 1907 instead for the transition to -02.
#
# Zone NAME STDOFF RULES FORMAT [UNTIL]
Zone Atlantic/Cape_Verde -1:34:04 - LMT 1912 Jan 01 2:00u # Praia
Expand Down Expand Up @@ -368,10 +367,8 @@ Zone Africa/Cairo 2:05:09 - LMT 1900 Oct

# Guinea-Bissau
#
# From Paul Eggert (2018-02-16):
# Shanks gives 1911-05-26 for the transition to WAT,
# evidently confusing the date of the Portuguese decree
# (see Europe/Lisbon) with the date that it took effect.
# From Tim Parenti (2024-07-01), per Paul Eggert (2018-02-16):
# For timestamps before independence, see commentary for Europe/Lisbon.
#
# Zone NAME STDOFF RULES FORMAT [UNTIL]
Zone Africa/Bissau -1:02:20 - LMT 1912 Jan 1 1:00u
Expand Down Expand Up @@ -1124,13 +1121,27 @@ Zone Africa/El_Aaiun -0:52:48 - LMT 1934 Jan # El Aaiún
# Zambia
# Zimbabwe
#
# Shanks gives 1903-03-01 for the transition to CAT.
# Perhaps the 1911-05-26 Portuguese decree
# https://dre.pt/pdf1sdip/1911/05/12500/23132313.pdf
# merely made it official?
# From Tim Parenti (2024-07-01):
# For timestamps before Mozambique's independence, see commentary for
# Europe/Lisbon.
#
# From Paul Eggert (2024-05-24):
# The London Gazette, 1903-04-03, page 2245, says that
# as of 1903-03-03 a time ball at the port of Lourenço Marques
# (as Maputo was then called) was dropped daily at 13:00:00 LMT,
# corresponding to 22:49:41.7 GMT, so local time was +02:10:18.3.
# Conversely, the newspaper South Africa, 1909-02-09, page 321,
# says the port had just installed an apparatus that communicated
# "from the controlling clock in the new Observatory at Reuben Point ...
# exact mean South African time, i.e., 30 deg., or 2 hours East of Greenwich".
# Although Shanks gives 1903-03-01 for the transition to CAT,
# evidently the port transitioned to CAT after 1903-03-03 but before
# the Portuguese legal transition of 1912-01-01 (see Europe/Lisbon commentary).
# For lack of better info, list 1909 as the transition date.
#
# Zone NAME STDOFF RULES FORMAT [UNTIL]
Zone Africa/Maputo 2:10:20 - LMT 1903 Mar
#STDOFF 2:10:18.3
Zone Africa/Maputo 2:10:18 - LMT 1909
2:00 - CAT

# Namibia
Expand Down
2 changes: 2 additions & 0 deletions jdk/make/data/tzdata/antarctica
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,8 @@ Zone Antarctica/Mawson 0 - -00 1954 Feb 13

# France & Italy - year-round base
# Concordia, -750600+1232000, since 2005
# https://en.wikipedia.org/wiki/Concordia_Station
# Can use Asia/Singapore, which it has agreed with since inception.

# Germany - year-round base
# Neumayer III, -704080-0081602, since 2009
Expand Down
Loading
Loading