Skip to content

Commit efd8953

Browse files
authored
Merge branch 'openjdk:master' into goetz_backport_8328387
2 parents 9b41b7a + 1a06a61 commit efd8953

37 files changed

+529
-306
lines changed

make/data/lsrdata/language-subtag-registry.txt

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
File-Date: 2024-06-14
1+
File-Date: 2024-11-19
22
%%
33
Type: language
44
Subtag: aa
@@ -47991,6 +47991,16 @@ Added: 2008-10-14
4799147991
Prefix: kw
4799247992
%%
4799347993
Type: variant
47994+
Subtag: kleinsch
47995+
Description: Kleinschmidt orthography
47996+
Description: Allattaasitaamut
47997+
Added: 2024-07-20
47998+
Prefix: kl
47999+
Prefix: kl-tunumiit
48000+
Comments: Orthography for Greenlandic designed by Samuel Kleinschmidt,
48001+
used from 1851 to 1973.
48002+
%%
48003+
Type: variant
4799448004
Subtag: kociewie
4799548005
Description: The Kociewie dialect of Polish
4799648006
Added: 2014-11-27

make/hotspot/lib/CompileJvm.gmk

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,13 @@ ifeq ($(call check-jvm-feature, zero), true)
8787
DISABLED_WARNINGS_gcc += return-type switch clobbered
8888
endif
8989

90+
ifeq ($(DEBUG_LEVEL), fastdebug)
91+
ifeq ($(call And, $(call isTargetOs, linux) $(call isTargetCpu, aarch64)), true)
92+
# False positive warnings for atomic_linux_aarch64.hpp on GCC >= 13
93+
DISABLED_WARNINGS_gcc += stringop-overflow
94+
endif
95+
endif
96+
9097
DISABLED_WARNINGS_clang := tautological-compare \
9198
undefined-var-template sometimes-uninitialized unknown-pragmas \
9299
delete-non-virtual-dtor missing-braces char-subscripts \

src/hotspot/os/linux/cgroupV1Subsystem_linux.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -225,9 +225,9 @@ void CgroupV1Subsystem::print_version_specific_info(outputStream* st) {
225225
jlong kmem_limit = kernel_memory_limit_in_bytes();
226226
jlong kmem_max_usage = kernel_memory_max_usage_in_bytes();
227227

228+
OSContainer::print_container_helper(st, kmem_limit, "kernel_memory_limit_in_bytes");
228229
OSContainer::print_container_helper(st, kmem_usage, "kernel_memory_usage_in_bytes");
229-
OSContainer::print_container_helper(st, kmem_limit, "kernel_memory_max_usage_in_bytes");
230-
OSContainer::print_container_helper(st, kmem_max_usage, "kernel_memory_limit_in_bytes");
230+
OSContainer::print_container_helper(st, kmem_max_usage, "kernel_memory_max_usage_in_bytes");
231231
}
232232

233233
char * CgroupV1Subsystem::cpu_cpuset_cpus() {

src/hotspot/share/logging/logSelectionList.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class LogTagSet;
3737
// Consists of ordered LogSelections, i.e. "tag1+tag2=level1,tag3*=level2".
3838
class LogSelectionList : public StackObj {
3939
public:
40-
static const size_t MaxSelections = 256;
40+
static const size_t MaxSelections = 320;
4141

4242
private:
4343
friend void LogConfiguration::configure_stdout(LogLevelType, int, ...);

src/hotspot/share/memory/resourceArea.cpp

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 1997, 2020, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 1997, 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
@@ -42,6 +42,18 @@ void ResourceArea::bias_to(MEMFLAGS new_flags) {
4242

4343
#ifdef ASSERT
4444

45+
ResourceMark::ResourceMark(ResourceArea* area, Thread* thread) :
46+
_impl(area),
47+
_thread(thread),
48+
_previous_resource_mark(nullptr)
49+
{
50+
if (_thread != nullptr) {
51+
assert(_thread == Thread::current(), "not the current thread");
52+
_previous_resource_mark = _thread->current_resource_mark();
53+
_thread->set_current_resource_mark(this);
54+
}
55+
}
56+
4557
void ResourceArea::verify_has_resource_mark() {
4658
if (_nesting <= 0) {
4759
// Only report the first occurrence of an allocating thread that

src/hotspot/share/memory/resourceArea.hpp

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 1997, 2022, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 1997, 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
@@ -195,17 +195,7 @@ class ResourceMark: public StackObj {
195195
#ifndef ASSERT
196196
ResourceMark(ResourceArea* area, Thread* thread) : _impl(area) {}
197197
#else
198-
ResourceMark(ResourceArea* area, Thread* thread) :
199-
_impl(area),
200-
_thread(thread),
201-
_previous_resource_mark(nullptr)
202-
{
203-
if (_thread != nullptr) {
204-
assert(_thread == Thread::current(), "not the current thread");
205-
_previous_resource_mark = _thread->current_resource_mark();
206-
_thread->set_current_resource_mark(this);
207-
}
208-
}
198+
ResourceMark(ResourceArea* area, Thread* thread);
209199
#endif // ASSERT
210200

211201
public:

test/failure_handler/Makefile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
2+
# Copyright (c) 2015, 2021, 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
@@ -38,7 +38,7 @@ SOURCES := ${SRC_DIR}/jdk/test/failurehandler/*.java \
3838

3939
CONF_DIR = src/share/conf
4040

41-
JAVA_RELEASE = 7
41+
JAVA_RELEASE = 15
4242

4343
TARGET_JAR = ${IMAGE_DIR}/lib/jtregFailureHandler.jar
4444

@@ -107,4 +107,3 @@ build: classes
107107

108108
.PHONY: all build classes test require_env clean
109109
.DEFAULT: all
110-

test/failure_handler/README

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
1+
Copyright (c) 2015, 2021, Oracle and/or its affiliates. All rights reserved.
22
DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
33

44
This code is free software; you can redistribute it and/or modify it
@@ -32,7 +32,7 @@ The library uses JTHarness Observer and jtreg TimeoutHandler extensions points.
3232

3333
DEPENDENCES
3434

35-
The library requires jtreg 4b13+ and JDK 7+.
35+
The library requires jtreg 4b13+ and JDK 15+.
3636

3737
BUILDING
3838

@@ -102,4 +102,3 @@ $ ${JTREG_HOME}/bin/jtreg -jdk:${JAVA_HOME} \
102102
-timeoutHandler:jdk.test.failurehandler.jtreg.GatherProcessInfoTimeoutHandler\
103103
-observer:jdk.test.failurehandler.jtreg.GatherDiagnosticInfoObserver \
104104
${WS}/hotspot/test/
105-

test/jdk/java/util/Locale/Bug4316602.java renamed to test/failure_handler/src/share/classes/jdk/test/failurehandler/CoreInfoGatherer.java

Lines changed: 5 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2007, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2021, 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
@@ -20,26 +20,11 @@
2020
* or visit www.oracle.com if you need additional information or have any
2121
* questions.
2222
*/
23-
/**
24-
@test
25-
@summary Locale constructor should allow language-only argument
26-
@bug 4316602
27-
@author joconner
28-
*/
2923

30-
import java.util.Locale;
24+
package jdk.test.failurehandler;
3125

32-
public class Bug4316602 {
33-
34-
public static void main(String[] args) throws Exception {
35-
String language = "ja";
36-
Locale aLocale = new Locale(language);
37-
if (aLocale.toString().equals(language)) {
38-
System.out.println("passed");
39-
} else {
40-
System.out.println("Bug4316602 failed");
41-
throw new Exception("Bug4316602 failed");
42-
}
43-
}
26+
import java.nio.file.Path;
4427

28+
public interface CoreInfoGatherer {
29+
void gatherCoreInfo(HtmlSection section, Path core);
4530
}

test/failure_handler/src/share/classes/jdk/test/failurehandler/GathererFactory.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2015, 2018, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2015, 2021, 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
@@ -51,6 +51,10 @@ public ProcessInfoGatherer getProcessInfoGatherer() {
5151
return create();
5252
}
5353

54+
public CoreInfoGatherer getCoreInfoGatherer() {
55+
return create();
56+
}
57+
5458
private ToolKit create() {
5559
Properties osProperty = Utils.getProperties(osName);
5660
try {

0 commit comments

Comments
 (0)