Skip to content

Commit d1f67b3

Browse files
author
Datadog Syncup Service
committed
Merge branch 'upstream-master'
2 parents e2bb112 + babb52a commit d1f67b3

File tree

89 files changed

+5233
-1040
lines changed

Some content is hidden

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

89 files changed

+5233
-1040
lines changed

make/Images.gmk

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,10 @@ JLINK_DISABLE_WARNINGS := | ( $(GREP) -v -e "WARNING: Using incubator module" ||
9696
JDK_IMAGE_SUPPORT_DIR := $(SUPPORT_OUTPUTDIR)/images/jdk
9797
JRE_IMAGE_SUPPORT_DIR := $(SUPPORT_OUTPUTDIR)/images/jre
9898

99+
ifeq ($(JLINK_PRODUCE_LINKABLE_RUNTIME), true)
100+
JLINK_JDK_EXTRA_OPTS += --generate-linkable-runtime
101+
endif
102+
99103
$(eval $(call SetupExecute, jlink_jdk, \
100104
WARN := Creating jdk image, \
101105
DEPS := $(JDK_JMODS) $(BASE_RELEASE_FILE) \

make/autoconf/jdk-options.m4

Lines changed: 33 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -586,13 +586,42 @@ AC_DEFUN_ONCE([JDKOPT_SETUP_JMOD_OPTIONS],
586586
################################################################################
587587
#
588588
# jlink options.
589-
# We always keep packaged modules in JDK image.
590589
#
591590
AC_DEFUN_ONCE([JDKOPT_SETUP_JLINK_OPTIONS],
592591
[
593-
UTIL_ARG_ENABLE(NAME: keep-packaged-modules, DEFAULT: true,
592+
593+
################################################################################
594+
#
595+
# Configure option for building a JDK that is suitable for linking from the
596+
# run-time image without JMODs.
597+
#
598+
# Determines whether or not a suitable run-time image is being produced from
599+
# packaged modules. If set to 'true, changes the *default* of packaged
600+
# modules to 'false'.
601+
#
602+
UTIL_ARG_ENABLE(NAME: linkable-runtime, DEFAULT: false,
603+
RESULT: JLINK_PRODUCE_LINKABLE_RUNTIME,
604+
DESC: [enable a JDK build suitable for linking from the run-time image],
605+
CHECKING_MSG: [whether or not a JDK suitable for linking from the run-time image should be produced])
606+
AC_SUBST(JLINK_PRODUCE_LINKABLE_RUNTIME)
607+
608+
if test "x$JLINK_PRODUCE_LINKABLE_RUNTIME" = xtrue; then
609+
DEFAULT_PACKAGED_MODULES=false
610+
else
611+
DEFAULT_PACKAGED_MODULES=true
612+
fi
613+
614+
################################################################################
615+
#
616+
# Configure option for packaged modules
617+
#
618+
# We keep packaged modules in the JDK image unless --enable-linkable-runtime is
619+
# requested.
620+
#
621+
UTIL_ARG_ENABLE(NAME: keep-packaged-modules, DEFAULT: $DEFAULT_PACKAGED_MODULES,
594622
RESULT: JLINK_KEEP_PACKAGED_MODULES,
595623
DESC: [enable keeping of packaged modules in jdk image],
624+
DEFAULT_DESC: [enabled by default unless --enable-linkable-runtime is set],
596625
CHECKING_MSG: [if packaged modules are kept])
597626
AC_SUBST(JLINK_KEEP_PACKAGED_MODULES)
598627
])
@@ -638,14 +667,11 @@ AC_DEFUN([JDKOPT_EXCLUDE_TRANSLATIONS],
638667

639668
################################################################################
640669
#
641-
# Optionally disable man pages
670+
# Optionally disable man pages (deprecated)
642671
#
643672
AC_DEFUN([JDKOPT_ENABLE_DISABLE_MANPAGES],
644673
[
645-
UTIL_ARG_ENABLE(NAME: manpages, DEFAULT: true, RESULT: BUILD_MANPAGES,
646-
DESC: [enable copying of static man pages],
647-
CHECKING_MSG: [if static man pages should be copied])
648-
AC_SUBST(BUILD_MANPAGES)
674+
UTIL_DEPRECATED_ARG_ENABLE(manpages)
649675
])
650676

651677
################################################################################

make/autoconf/spec.gmk.template

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -367,8 +367,6 @@ ENABLE_GENERATE_CLASSLIST := @ENABLE_GENERATE_CLASSLIST@
367367

368368
EXCLUDE_TRANSLATIONS := @EXCLUDE_TRANSLATIONS@
369369

370-
BUILD_MANPAGES := @BUILD_MANPAGES@
371-
372370
BUILD_CDS_ARCHIVE := @BUILD_CDS_ARCHIVE@
373371
BUILD_CDS_ARCHIVE_COH := @BUILD_CDS_ARCHIVE_COH@
374372

@@ -708,6 +706,7 @@ NEW_JAVADOC = $(INTERIM_LANGTOOLS_ARGS) $(JAVADOC_MAIN_CLASS)
708706

709707
JMOD_COMPRESS := @JMOD_COMPRESS@
710708
JLINK_KEEP_PACKAGED_MODULES := @JLINK_KEEP_PACKAGED_MODULES@
709+
JLINK_PRODUCE_LINKABLE_RUNTIME := @JLINK_PRODUCE_LINKABLE_RUNTIME@
711710

712711
RCFLAGS := @RCFLAGS@
713712

make/common/modules/LauncherCommon.gmk

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -228,14 +228,11 @@ ifeq ($(call isTargetOsType, unix)+$(MAKEFILE_PREFIX), true+Launcher)
228228
endif
229229
else
230230
# No markdown man pages present
231-
ifeq ($(BUILD_MANPAGES), true)
232-
# BUILD_MANPAGES is a mis-nomer. It really means "copy the pre-generated man pages".
233-
$(eval $(call SetupCopyFiles, COPY_MAN_PAGES, \
234-
DEST := $(SUPPORT_OUTPUTDIR)/modules_man/$(MODULE)/man1, \
235-
FILES := $(MAN_FILES_TROFF), \
236-
))
231+
$(eval $(call SetupCopyFiles, COPY_MAN_PAGES, \
232+
DEST := $(SUPPORT_OUTPUTDIR)/modules_man/$(MODULE)/man1, \
233+
FILES := $(MAN_FILES_TROFF), \
234+
))
237235

238-
TARGETS += $(COPY_MAN_PAGES)
239-
endif
236+
TARGETS += $(COPY_MAN_PAGES)
240237
endif
241238
endif

make/conf/jib-profiles.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,6 @@ var getJibProfilesCommon = function (input, data) {
252252
default_make_targets: ["product-bundles", "test-bundles", "static-libs-bundles"],
253253
configure_args: concat(
254254
"--with-exclude-translations=es,fr,it,ko,pt_BR,sv,ca,tr,cs,sk,ja_JP_A,ja_JP_HA,ja_JP_HI,ja_JP_I,zh_TW,zh_HK",
255-
"--disable-manpages",
256255
"--disable-jvm-feature-shenandoahgc",
257256
versionArgs(input, common))
258257
};

src/hotspot/cpu/s390/assembler_s390.hpp

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -56,24 +56,23 @@ class Immediate {
5656
}
5757

5858
// Test if x is within signed immediate range for nbits.
59-
static bool is_uimm(int64_t x, unsigned int nbits) {
59+
static bool is_uimm(uint64_t x, unsigned int nbits) {
6060
// nbits == 0 --> false
6161
// nbits >= 64 --> true
6262
assert(1 <= nbits && nbits < 64, "don't call, use statically known result");
63-
const uint64_t xu = (unsigned long)x;
6463
const uint64_t maxplus1 = 1UL << nbits;
65-
return xu < maxplus1; // Unsigned comparison. Negative inputs appear to be very large.
64+
return x < maxplus1; // Unsigned comparison. Negative inputs appear to be very large.
6665
}
67-
static bool is_uimm32(int64_t x) {
66+
static bool is_uimm32(uint64_t x) {
6867
return is_uimm(x, 32);
6968
}
70-
static bool is_uimm16(int64_t x) {
69+
static bool is_uimm16(uint64_t x) {
7170
return is_uimm(x, 16);
7271
}
73-
static bool is_uimm12(int64_t x) {
72+
static bool is_uimm12(uint64_t x) {
7473
return is_uimm(x, 12);
7574
}
76-
static bool is_uimm8(int64_t x) {
75+
static bool is_uimm8(uint64_t x) {
7776
return is_uimm(x, 8);
7877
}
7978
};

src/hotspot/share/c1/c1_Instruction.hpp

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -346,11 +346,8 @@ class Instruction: public CompilationResourceObj {
346346
NeedsNullCheckFlag = 0,
347347
CanTrapFlag,
348348
DirectCompareFlag,
349-
IsEliminatedFlag,
350349
IsSafepointFlag,
351350
IsStaticFlag,
352-
NeedsStoreCheckFlag,
353-
NeedsWriteBarrierFlag,
354351
PreservesStateFlag,
355352
TargetIsFinalFlag,
356353
TargetIsLoadedFlag,
@@ -361,7 +358,6 @@ class Instruction: public CompilationResourceObj {
361358
ProfileMDOFlag,
362359
IsLinkedInBlockFlag,
363360
NeedsRangeCheckFlag,
364-
InWorkListFlag,
365361
DeoptimizeOnException,
366362
KillsMemoryFlag,
367363
OmitChecksFlag,
@@ -840,14 +836,12 @@ LEAF(StoreField, AccessField)
840836
: AccessField(obj, offset, field, is_static, state_before, needs_patching)
841837
, _value(value)
842838
{
843-
set_flag(NeedsWriteBarrierFlag, as_ValueType(field_type())->is_object());
844839
ASSERT_VALUES
845840
pin();
846841
}
847842

848843
// accessors
849844
Value value() const { return _value; }
850-
bool needs_write_barrier() const { return check_flag(NeedsWriteBarrierFlag); }
851845

852846
// generic
853847
virtual void input_values_do(ValueVisitor* f) { AccessField::input_values_do(f); f->visit(&_value); }
@@ -974,16 +968,12 @@ LEAF(StoreIndexed, AccessIndexed)
974968
: AccessIndexed(array, index, length, elt_type, state_before, mismatched)
975969
, _value(value), _profiled_method(nullptr), _profiled_bci(0), _check_boolean(check_boolean)
976970
{
977-
set_flag(NeedsWriteBarrierFlag, (as_ValueType(elt_type)->is_object()));
978-
set_flag(NeedsStoreCheckFlag, (as_ValueType(elt_type)->is_object()));
979971
ASSERT_VALUES
980972
pin();
981973
}
982974

983975
// accessors
984976
Value value() const { return _value; }
985-
bool needs_write_barrier() const { return check_flag(NeedsWriteBarrierFlag); }
986-
bool needs_store_check() const { return check_flag(NeedsStoreCheckFlag); }
987977
bool check_boolean() const { return _check_boolean; }
988978
// Helpers for MethodData* profiling
989979
void set_should_profile(bool value) { set_flag(ProfileMDOFlag, value); }

src/hotspot/share/gc/shared/c2/barrierSetC2.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2018, 2023, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2018, 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
@@ -92,9 +92,9 @@ class C2AccessValuePtr: public C2AccessValue {
9292

9393
public:
9494
C2AccessValuePtr(Node* node, const TypePtr* type) :
95-
C2AccessValue(node, reinterpret_cast<const Type*>(type)) {}
95+
C2AccessValue(node, type) {}
9696

97-
const TypePtr* type() const { return reinterpret_cast<const TypePtr*>(_type); }
97+
const TypePtr* type() const { return _type->is_ptr(); }
9898
};
9999

100100
// This class wraps a bunch of context parameters that are passed around in the

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

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -143,10 +143,6 @@ void PreservedMarksSet::restore(WorkerThreads* workers) {
143143
assert_empty();
144144
}
145145

146-
WorkerTask* PreservedMarksSet::create_task() {
147-
return new RestorePreservedMarksTask(this);
148-
}
149-
150146
void PreservedMarksSet::reclaim() {
151147
assert_empty();
152148

src/hotspot/share/gc/shared/preservedMarks.hpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,6 @@ class PreservedMarksSet : public CHeapObj<mtGC> {
114114
// is null, perform the work serially in the current thread.
115115
void restore(WorkerThreads* workers);
116116

117-
WorkerTask* create_task();
118-
119117
// Reclaim stack array.
120118
void reclaim();
121119

0 commit comments

Comments
 (0)