Skip to content

Commit e6ca83a

Browse files
authored
Merge branch 'openjdk:master' into backport-sendaoYan-fe29cad5-master
2 parents e3130f7 + d167b4d commit e6ca83a

File tree

59 files changed

+2572
-432
lines changed

Some content is hidden

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

59 files changed

+2572
-432
lines changed

.github/workflows/main.yml

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -293,17 +293,6 @@ jobs:
293293
bootjdk-platform: linux-x64
294294
runs-on: ubuntu-22.04
295295

296-
test-macos-x64:
297-
name: macos-x64
298-
needs:
299-
- build-macos-x64
300-
uses: ./.github/workflows/test.yml
301-
with:
302-
platform: macos-x64
303-
bootjdk-platform: macos-x64
304-
runs-on: macos-13
305-
xcode-toolset-version: '14.3.1'
306-
307296
test-macos-aarch64:
308297
name: macos-aarch64
309298
needs:

src/java.base/share/classes/sun/util/calendar/ZoneInfo.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2000, 2021, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2000, 2024, 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
@@ -45,14 +45,14 @@
4545
* for the {@link #getOffset(int,int,int,int,int,int) getOffset}
4646
* method that takes Gregorian calendar date fields.
4747
* <p>
48-
* This table covers transitions from 1900 until 2037 (as of version
49-
* 1.4), Before 1900, it assumes that there was no daylight saving
48+
* This table covers transitions from 1900 until 2100 (as of version
49+
* 23), Before 1900, it assumes that there was no daylight saving
5050
* time and the <code>getOffset</code> methods always return the
5151
* {@link #getRawOffset} value. No Local Mean Time is supported. If a
5252
* specified date is beyond the transition table and this time zone is
53-
* supposed to observe daylight saving time in 2037, it delegates
53+
* supposed to observe daylight saving time in 2100, it delegates
5454
* operations to a {@link java.util.SimpleTimeZone SimpleTimeZone}
55-
* object created using the daylight saving time schedule as of 2037.
55+
* object created using the daylight saving time schedule as of 2100.
5656
* <p>
5757
* The date items, transitions, GMT offset(s), etc. are read from a database
5858
* file. See {@link ZoneInfoFile} for details.

src/java.base/share/classes/sun/util/calendar/ZoneInfoFile.java

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2012, 2021, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2012, 2024, 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
@@ -398,16 +398,16 @@ static long readEpochSec(DataInput in) throws IOException {
398398
// ZoneInfo starts with UTC1900
399399
private static final long UTC1900 = -2208988800L;
400400

401-
// ZoneInfo ends with UTC2037
402-
// LocalDateTime.of(2038, 1, 1, 0, 0, 0).toEpochSecond(ZoneOffset.UTC) - 1;
403-
private static final long UTC2037 = 2145916799L;
401+
// ZoneInfo ends with UTC2100
402+
// LocalDateTime.of(2101, 1, 1, 0, 0, 0).toEpochSecond(ZoneOffset.UTC) - 1;
403+
private static final long UTC2100 = 4133980799L;
404404

405-
// ZoneInfo has an ending entry for 2037, this need to be offset by
405+
// ZoneInfo has an ending entry for 2100, this need to be offset by
406406
// a "rawOffset"
407-
// LocalDateTime.of(2037, 1, 1, 0, 0, 0).toEpochSecond(ZoneOffset.UTC));
408-
private static final long LDT2037 = 2114380800L;
407+
// LocalDateTime.of(2100, 1, 1, 0, 0, 0).toEpochSecond(ZoneOffset.UTC);
408+
private static final long LDT2100 = 4102444800L;
409409

410-
//Current time. Used to determine future GMToffset transitions
410+
//Current time. Used to determine future GMT offset transitions
411411
private static final long CURRT = System.currentTimeMillis()/1000;
412412

413413
/* Get a ZoneInfo instance.
@@ -474,7 +474,7 @@ private static ZoneInfo getZoneInfo(String zoneId,
474474

475475
for (; i < savingsInstantTransitions.length; i++) {
476476
long trans = savingsInstantTransitions[i];
477-
if (trans > UTC2037) {
477+
if (trans > UTC2100) {
478478
// no trans beyond LASTYEAR
479479
lastyear = LASTYEAR;
480480
break;
@@ -621,11 +621,11 @@ private static ZoneInfo getZoneInfo(String zoneId,
621621
}
622622
} else if (nTrans > 0) { // only do this if there is something in table already
623623
if (lastyear < LASTYEAR) {
624-
// ZoneInfo has an ending entry for 2037
624+
// ZoneInfo has an ending entry for 2100
625625
//long trans = OffsetDateTime.of(LASTYEAR, 1, 1, 0, 0, 0, 0,
626626
// ZoneOffset.ofTotalSeconds(rawOffset/1000))
627627
// .toEpochSecond();
628-
long trans = LDT2037 - rawOffset/1000;
628+
long trans = LDT2100 - rawOffset/1000;
629629

630630
int offsetIndex = indexOf(offsets, 0, nOffsets, rawOffset/1000);
631631
if (offsetIndex == nOffsets)
@@ -810,7 +810,9 @@ private static int getYear(long epochSecond, int offset) {
810810
private static final long DST_MASK = 0xf0L;
811811
private static final int DST_NSHIFT = 4;
812812
private static final int TRANSITION_NSHIFT = 12;
813-
private static final int LASTYEAR = 2037;
813+
// The `last` year that transitions are accounted for. If there are
814+
// rules that go beyond this LASTYEAR, the value needs to be expanded.
815+
private static final int LASTYEAR = 2100;
814816

815817
// from: 0 for offset lookup, 1 for dstsvings lookup
816818
private static int indexOf(int[] offsets, int from, int nOffsets, int offset) {

src/java.desktop/share/native/common/java2d/opengl/OGLContext.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -484,6 +484,7 @@ OGLContext_SetTransform(OGLContext *oglc,
484484
if (oglc->xformMatrix == NULL) {
485485
size_t arrsize = 16 * sizeof(GLdouble);
486486
oglc->xformMatrix = (GLdouble *)malloc(arrsize);
487+
RETURN_IF_NULL(oglc->xformMatrix);
487488
memset(oglc->xformMatrix, 0, arrsize);
488489
oglc->xformMatrix[10] = 1.0;
489490
oglc->xformMatrix[15] = 1.0;

src/jdk.jfr/share/conf/jfr/default.jfc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,17 +38,17 @@
3838
</event>
3939

4040
<event name="jdk.PlaceholderTableStatistics">
41-
<setting name="enabled">true</setting>
41+
<setting name="enabled">false</setting>
4242
<setting name="period">10 s</setting>
4343
</event>
4444

4545
<event name="jdk.LoaderConstraintsTableStatistics">
46-
<setting name="enabled">true</setting>
46+
<setting name="enabled">false</setting>
4747
<setting name="period">10 s</setting>
4848
</event>
4949

5050
<event name="jdk.ProtectionDomainCacheTableStatistics">
51-
<setting name="enabled">true</setting>
51+
<setting name="enabled">false</setting>
5252
<setting name="period">10 s</setting>
5353
</event>
5454

test/hotspot/jtreg/vmTestbase/vm/mlvm/indy/func/jvmti/stepBreakPopReturn/stepBreakPopReturn.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2010, 2018, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2010, 2025, 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
@@ -89,7 +89,7 @@ MethodEntry(jvmtiEnv *jvmti_env,
8989
gIsMethodEntryWorking = JNI_TRUE;
9090

9191
if (!gIsBreakpointSet)
92-
NSK_JVMTI_VERIFY(jvmti_env->SetEventNotificationMode(JVMTI_ENABLE, JVMTI_EVENT_SINGLE_STEP, NULL));
92+
NSK_JVMTI_VERIFY(jvmti_env->SetEventNotificationMode(JVMTI_ENABLE, JVMTI_EVENT_SINGLE_STEP, thread));
9393
}
9494
}
9595

@@ -116,7 +116,7 @@ SingleStep(jvmtiEnv *jvmti_env,
116116
free(locStr);
117117
}
118118

119-
NSK_JVMTI_VERIFY(gJvmtiEnv->SetEventNotificationMode(JVMTI_DISABLE, JVMTI_EVENT_SINGLE_STEP, NULL));
119+
NSK_JVMTI_VERIFY(gJvmtiEnv->SetEventNotificationMode(JVMTI_DISABLE, JVMTI_EVENT_SINGLE_STEP, thread));
120120

121121
if (!gIsDebuggerCompatible) {
122122
if (!NSK_JVMTI_VERIFY(jvmti_env->SetBreakpoint(method, location)))

test/jdk/ProblemList.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -628,8 +628,6 @@ java/rmi/server/Unreferenced/finiteGCLatency/FiniteGCLatency.java 7140992 generi
628628

629629
java/rmi/transport/rapidExportUnexport/RapidExportUnexport.java 7146541 linux-all
630630

631-
java/rmi/transport/checkLeaseInfoLeak/CheckLeaseLeak.java 7191877 generic-all
632-
633631
java/rmi/registry/readTest/CodebaseTest.java 8173324 windows-all
634632
java/rmi/registry/multipleRegistries/MultipleRegistries.java 8268182 macosx-all
635633

0 commit comments

Comments
 (0)