Skip to content

Commit 59f9644

Browse files
author
Datadog Syncup Service
committed
Merge branch 'upstream-master'
2 parents 209c036 + 3b6e576 commit 59f9644

File tree

132 files changed

+3597
-764
lines changed

Some content is hidden

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

132 files changed

+3597
-764
lines changed

bin/idea.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/sh
22
#
3-
# Copyright (c) 2009, 2020, Oracle and/or its affiliates. All rights reserved.
3+
# Copyright (c) 2009, 2025, Oracle and/or its affiliates. All rights reserved.
44
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
55
#
66
# This code is free software; you can redistribute it and/or modify it
@@ -99,7 +99,7 @@ if [ "$VERBOSE" = "true" ] ; then
9999
echo "idea template dir: $IDEA_TEMPLATE"
100100
fi
101101

102-
cd $TOP ; make -f "$IDEA_MAKE/idea.gmk" -I $MAKE_DIR/.. idea MAKEOVERRIDES= OUT=$IDEA_OUTPUT/env.cfg MODULES="$*" $CONF_ARG || exit 1
102+
cd $TOP ; make idea-gen-config IDEA_OUTPUT=$IDEA_OUTPUT MODULES="$*" $CONF_ARG || exit 1
103103
cd $SCRIPT_DIR
104104

105105
. $IDEA_OUTPUT/env.cfg

make/Main.gmk

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# Copyright (c) 2011, 2024, Oracle and/or its affiliates. All rights reserved.
2+
# Copyright (c) 2011, 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
@@ -356,6 +356,14 @@ $(eval $(call SetupTarget, vscode-project-ccls, \
356356
DEPS := compile-commands, \
357357
))
358358

359+
################################################################################
360+
# IDEA IntelliJ projects
361+
362+
$(eval $(call SetupTarget, idea-gen-config, \
363+
MAKEFILE := ide/idea/jdk/IdeaGenConfig, \
364+
ARGS := IDEA_OUTPUT="$(IDEA_OUTPUT)" MODULES="$(MODULES)", \
365+
))
366+
359367
################################################################################
360368
# Build demos targets
361369

Lines changed: 27 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved.
2+
# Copyright (c) 2016, 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
@@ -23,36 +23,35 @@
2323
# questions.
2424
#
2525

26-
include Makefile
27-
include make/MainSupport.gmk
28-
29-
.PHONY: idea
30-
31-
ifeq ($(SPEC), )
32-
ifneq ($(words $(SPECS)), 1)
33-
@echo "Error: Multiple build specification files found. Please select one explicitly."
34-
@exit 2
35-
endif
36-
idea:
37-
@cd $(topdir)
38-
@$(MAKE) $(MFLAGS) $(MAKE_LOG_FLAGS) -r -R -j 1 -f $(topdir)/make/ide/idea/jdk/idea.gmk SPEC=$(SPECS) HAS_SPEC=true ACTUAL_TOPDIR=$(topdir) MODULES="$(MODULES)" idea
39-
else #with SPEC
40-
include make/common/Modules.gmk
41-
42-
ifeq ($(MODULES), )
43-
SEL_MODULES := $(call FindAllModules)
44-
else
45-
SEL_MODULES := $(MODULES)
46-
endif
47-
48-
idea:
26+
default: all
27+
28+
include $(SPEC)
29+
include MakeBase.gmk
30+
31+
include Modules.gmk
32+
33+
# MODULES and IDEA_OUTPUT is passed on the command line
34+
ifeq ($(MODULES), )
35+
override MODULES := $(call FindAllModules)
36+
endif
37+
38+
ifeq ($(IDEA_OUTPUT), )
39+
override IDEA_OUTPUT := $(WORKSPACE_ROOT)/.idea
40+
endif
41+
42+
OUT := $(IDEA_OUTPUT)/env.cfg
43+
44+
idea:
45+
$(RM) $(OUT)
4946
$(ECHO) "SUPPORT=$(SUPPORT_OUTPUTDIR)" >> $(OUT)
50-
$(ECHO) "MODULE_ROOTS=\"$(foreach mod, $(SEL_MODULES), $(call FindModuleSrcDirs, $(mod)))\"" >> $(OUT)
51-
$(ECHO) "MODULE_NAMES=\"$(strip $(foreach mod, $(SEL_MODULES), $(mod)))\"" >> $(OUT)
52-
$(ECHO) "SEL_MODULES=\"$(SEL_MODULES)\"" >> $(OUT)
47+
$(ECHO) "MODULE_ROOTS=\"$(foreach mod, $(MODULES), $(call FindModuleSrcDirs, $(mod)))\"" >> $(OUT)
48+
$(ECHO) "MODULE_NAMES=\"$(strip $(foreach mod, $(MODULES), $(mod)))\"" >> $(OUT)
49+
$(ECHO) "SEL_MODULES=\"$(MODULES)\"" >> $(OUT)
5350
$(ECHO) "BOOT_JDK=\"$(BOOT_JDK)\"" >> $(OUT)
5451
$(ECHO) "CYGPATH=\"$(PATHTOOL)\"" >> $(OUT)
5552
$(ECHO) "SPEC=\"$(SPEC)\"" >> $(OUT)
5653
$(ECHO) "JT_HOME=\"$(JT_HOME)\"" >> $(OUT)
5754

58-
endif
55+
all: idea
56+
57+
.PHONY: default all idea

src/hotspot/share/gc/shared/adaptiveSizePolicy.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2004, 2024, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2004, 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
@@ -337,11 +337,11 @@ class AdaptiveSizePolicySpaceOverheadTester: public GCOverheadTester {
337337

338338
log_trace(gc, ergo)(
339339
"AdaptiveSizePolicySpaceOverheadTester::is_exceeded:"
340-
" promo_limit: " SIZE_FORMAT
341-
" total_free_limit: " SIZE_FORMAT
342-
" max_old_gen_size: " SIZE_FORMAT
343-
" max_eden_size: " SIZE_FORMAT
344-
" mem_free_limit: " SIZE_FORMAT,
340+
" promo_limit: %zu"
341+
" total_free_limit: %zu"
342+
" max_old_gen_size: %zu"
343+
" max_eden_size: %zu"
344+
" mem_free_limit: %zu",
345345
promo_limit, total_free_limit,
346346
_max_old_gen_size, _max_eden_size,
347347
(size_t)mem_free_limit);

src/hotspot/share/gc/shared/ageTable.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ void AgeTable::print_on(outputStream* st) {
131131
size_t word_size = sizes[age];
132132
total += word_size;
133133
if (word_size > 0) {
134-
st->print_cr("- age %3u: " SIZE_FORMAT_W(10) " bytes, " SIZE_FORMAT_W(10) " total",
134+
st->print_cr("- age %3u: %10zu bytes, %10zu total",
135135
age, word_size * oopSize, total * oopSize);
136136
}
137137
AgeTableTracer::send_tenuring_distribution_event(age, word_size * oopSize);

src/hotspot/share/gc/shared/collectedHeap.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2001, 2024, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2001, 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
@@ -405,7 +405,7 @@ MetaWord* CollectedHeap::satisfy_failed_metadata_allocation(ClassLoaderData* loa
405405
if ((QueuedAllocationWarningCount > 0) &&
406406
(loop_count % QueuedAllocationWarningCount == 0)) {
407407
log_warning(gc, ergo)("satisfy_failed_metadata_allocation() retries %d times,"
408-
" size=" SIZE_FORMAT, loop_count, word_size);
408+
" size=%zu", loop_count, word_size);
409409
}
410410
} while (true); // Until a GC is done
411411
}
@@ -481,7 +481,7 @@ CollectedHeap::fill_with_array(HeapWord* start, size_t words, bool zap)
481481

482482
const size_t payload_size = words - filler_array_hdr_size();
483483
const size_t len = payload_size * HeapWordSize / sizeof(jint);
484-
assert((int)len >= 0, "size too large " SIZE_FORMAT " becomes %d", words, (int)len);
484+
assert((int)len >= 0, "size too large %zu becomes %d", words, (int)len);
485485

486486
ObjArrayAllocator allocator(Universe::fillerArrayKlass(), words, (int)len, /* do_zero */ false);
487487
allocator.initialize(start);

src/hotspot/share/gc/shared/fullGCForwarding.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ void FullGCForwarding::initialize_flags(size_t max_heap_size) {
3434
#ifdef _LP64
3535
size_t max_narrow_heap_size = right_n_bits(NumLowBitsNarrow - Shift);
3636
if (UseCompactObjectHeaders && max_heap_size > max_narrow_heap_size * HeapWordSize) {
37-
warning("Compact object headers require a java heap size smaller than " SIZE_FORMAT
38-
"%s (given: " SIZE_FORMAT "%s). Disabling compact object headers.",
37+
warning("Compact object headers require a java heap size smaller than %zu"
38+
"%s (given: %zu%s). Disabling compact object headers.",
3939
byte_size_in_proper_unit(max_narrow_heap_size * HeapWordSize),
4040
proper_unit_for_byte_size(max_narrow_heap_size * HeapWordSize),
4141
byte_size_in_proper_unit(max_heap_size),

src/hotspot/share/gc/shared/gcArguments.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2018, 2024, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2018, 2025, Oracle and/or its affiliates. All rights reserved.
33
* Copyright (c) 2017, Red Hat, Inc. and/or its affiliates.
44
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
55
*
@@ -99,7 +99,7 @@ void GCArguments::assert_size_info() {
9999
#endif // ASSERT
100100

101101
void GCArguments::initialize_size_info() {
102-
log_debug(gc, heap)("Minimum heap " SIZE_FORMAT " Initial heap " SIZE_FORMAT " Maximum heap " SIZE_FORMAT,
102+
log_debug(gc, heap)("Minimum heap %zu Initial heap %zu Maximum heap %zu",
103103
MinHeapSize, InitialHeapSize, MaxHeapSize);
104104

105105
DEBUG_ONLY(assert_size_info();)
@@ -109,10 +109,10 @@ void GCArguments::initialize_heap_flags_and_sizes() {
109109
assert(SpaceAlignment != 0, "Space alignment not set up properly");
110110
assert(HeapAlignment != 0, "Heap alignment not set up properly");
111111
assert(HeapAlignment >= SpaceAlignment,
112-
"HeapAlignment: " SIZE_FORMAT " less than SpaceAlignment: " SIZE_FORMAT,
112+
"HeapAlignment: %zu less than SpaceAlignment: %zu",
113113
HeapAlignment, SpaceAlignment);
114114
assert(HeapAlignment % SpaceAlignment == 0,
115-
"HeapAlignment: " SIZE_FORMAT " not aligned by SpaceAlignment: " SIZE_FORMAT,
115+
"HeapAlignment: %zu not aligned by SpaceAlignment: %zu",
116116
HeapAlignment, SpaceAlignment);
117117

118118
if (FLAG_IS_CMDLINE(MaxHeapSize)) {

src/hotspot/share/gc/shared/gcInitLogger.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2020, 2021, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2020, 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
@@ -75,7 +75,7 @@ void GCInitLogger::print_large_pages() {
7575
void GCInitLogger::print_numa() {
7676
if (UseNUMA) {
7777
log_info_p(gc, init)("NUMA Support: Enabled");
78-
log_info_p(gc, init)("NUMA Nodes: " SIZE_FORMAT, os::numa_get_groups_num());
78+
log_info_p(gc, init)("NUMA Nodes: %zu", os::numa_get_groups_num());
7979
} else {
8080
log_info_p(gc, init)("NUMA Support: Disabled");
8181
}
@@ -91,11 +91,11 @@ void GCInitLogger::print_compressed_oops() {
9191
}
9292

9393
void GCInitLogger::print_heap() {
94-
log_info_p(gc, init)("Heap Min Capacity: " SIZE_FORMAT "%s",
94+
log_info_p(gc, init)("Heap Min Capacity: %zu%s",
9595
byte_size_in_exact_unit(MinHeapSize), exact_unit_for_byte_size(MinHeapSize));
96-
log_info_p(gc, init)("Heap Initial Capacity: " SIZE_FORMAT "%s",
96+
log_info_p(gc, init)("Heap Initial Capacity: %zu%s",
9797
byte_size_in_exact_unit(InitialHeapSize), exact_unit_for_byte_size(InitialHeapSize));
98-
log_info_p(gc, init)("Heap Max Capacity: " SIZE_FORMAT "%s",
98+
log_info_p(gc, init)("Heap Max Capacity: %zu%s",
9999
byte_size_in_exact_unit(MaxHeapSize), exact_unit_for_byte_size(MaxHeapSize));
100100

101101
log_info_p(gc, init)("Pre-touch: %s", AlwaysPreTouch ? "Enabled" : "Disabled");

src/hotspot/share/gc/shared/gcTraceTime.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2012, 2022, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2012, 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
@@ -63,7 +63,7 @@ void GCTraceTimeLoggerImpl::log_end(Ticks end) {
6363
size_t used_before_m = _heap_usage_before / M;
6464
size_t used_m = heap->used() / M;
6565
size_t capacity_m = heap->capacity() / M;
66-
out.print(" " SIZE_FORMAT "M->" SIZE_FORMAT "M(" SIZE_FORMAT "M)", used_before_m, used_m, capacity_m);
66+
out.print(" %zuM->%zuM(%zuM)", used_before_m, used_m, capacity_m);
6767
}
6868

6969
out.print_cr(" %.3fms", duration_in_ms);

0 commit comments

Comments
 (0)