Skip to content

Commit 72990ae

Browse files
authored
Merge branch 'openjdk:master' into backport-mrserb-eb790603-master
2 parents 1651dc1 + b6616d6 commit 72990ae

File tree

72 files changed

+3862
-816
lines changed

Some content is hidden

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

72 files changed

+3862
-816
lines changed

.github/workflows/submit.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1588,7 +1588,7 @@ jobs:
15881588
-H 'Accept: application/vnd.github+json' \
15891589
-H 'Authorization: Bearer ${{ github.token }}' \
15901590
-H 'X-GitHub-Api-Version: 2022-11-28' \
1591-
'${{ github.api_url }}/repos/${{ github.repository }}/actions/runs/${{ github.run_id }}/artifacts'
1591+
'${{ github.api_url }}/repos/${{ github.repository }}/actions/runs/${{ github.run_id }}/artifacts?per_page=100'
15921592
15931593
- name: Delete transient artifacts
15941594
run: |
@@ -1598,7 +1598,7 @@ jobs:
15981598
-H 'Accept: application/vnd.github+json' \
15991599
-H 'Authorization: Bearer ${{ github.token }}' \
16001600
-H 'X-GitHub-Api-Version: 2022-11-28' \
1601-
'${{ github.api_url }}/repos/${{ github.repository }}/actions/runs/${{ github.run_id }}/artifacts')"
1601+
'${{ github.api_url }}/repos/${{ github.repository }}/actions/runs/${{ github.run_id }}/artifacts?per_page=100')"
16021602
BUNDLE_ARTIFACT_IDS="$(echo "$ALL_ARTIFACT_IDS" | jq -r -c '.artifacts | map(select(.name|startswith("transient_"))) | .[].id')"
16031603
for id in $BUNDLE_ARTIFACT_IDS; do
16041604
echo "Removing $id"

.jcheck/conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[general]
22
project=jdk8u
33
jbs=JDK
4-
version=openjdk8u432
4+
version=openjdk8u442
55

66
[checks]
77
error=author,committer,reviewers,merge,issues,executable,symlink,message,hg-tag,whitespace

SECURITY.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# JDK Vulnerabilities
2+
3+
Please follow the process outlined in the [OpenJDK Vulnerability Policy](https://openjdk.org/groups/vulnerability/report) to disclose vulnerabilities in the JDK.

THIRD_PARTY_README

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1725,7 +1725,7 @@ THE SOFTWARE.
17251725

17261726
-------------------------------------------------------------------------------
17271727

1728-
%% This notice is provided with respect to Little CMS 2.11, which may be
1728+
%% This notice is provided with respect to Little CMS 2.12, which may be
17291729
included with JRE 8, JDK 8, and OpenJDK 8.
17301730

17311731
--- begin of LICENSE ---

common/autoconf/version-numbers

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
JDK_MAJOR_VERSION=1
2727
JDK_MINOR_VERSION=8
2828
JDK_MICRO_VERSION=0
29-
JDK_UPDATE_VERSION=432
29+
JDK_UPDATE_VERSION=442
3030
LAUNCHER_NAME=openjdk
3131
PRODUCT_NAME=OpenJDK
3232
PRODUCT_SUFFIX="Runtime Environment"

hotspot/src/share/vm/c1/c1_Canonicalizer.cpp

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 1999, 2016, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 1999, 2019, 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
@@ -303,24 +303,20 @@ void Canonicalizer::do_ShiftOp (ShiftOp* x) {
303303
}
304304
if (t2->is_constant()) {
305305
if (t->tag() == intTag) {
306-
int value = t->as_IntConstant()->value();
307-
int shift = t2->as_IntConstant()->value() & 31;
308-
jint mask = ~(~0 << (32 - shift));
309-
if (shift == 0) mask = ~0;
306+
jint value = t->as_IntConstant()->value();
307+
jint shift = t2->as_IntConstant()->value();
310308
switch (x->op()) {
311-
case Bytecodes::_ishl: set_constant(value << shift); return;
312-
case Bytecodes::_ishr: set_constant(value >> shift); return;
313-
case Bytecodes::_iushr: set_constant((value >> shift) & mask); return;
309+
case Bytecodes::_ishl: set_constant(java_shift_left(value, shift)); return;
310+
case Bytecodes::_ishr: set_constant(java_shift_right(value, shift)); return;
311+
case Bytecodes::_iushr: set_constant(java_shift_right_unsigned(value, shift)); return;
314312
}
315313
} else if (t->tag() == longTag) {
316314
jlong value = t->as_LongConstant()->value();
317-
int shift = t2->as_IntConstant()->value() & 63;
318-
jlong mask = ~(~jlong_cast(0) << (64 - shift));
319-
if (shift == 0) mask = ~jlong_cast(0);
315+
jint shift = t2->as_IntConstant()->value();
320316
switch (x->op()) {
321-
case Bytecodes::_lshl: set_constant(value << shift); return;
322-
case Bytecodes::_lshr: set_constant(value >> shift); return;
323-
case Bytecodes::_lushr: set_constant((value >> shift) & mask); return;
317+
case Bytecodes::_lshl: set_constant(java_shift_left(value, shift)); return;
318+
case Bytecodes::_lshr: set_constant(java_shift_right(value, shift)); return;
319+
case Bytecodes::_lushr: set_constant(java_shift_right_unsigned(value, shift)); return;
324320
}
325321
}
326322
}

hotspot/src/share/vm/opto/doCall.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -892,6 +892,8 @@ void Parse::catch_inline_exceptions(SafePointNode* ex_map) {
892892
tty->print_cr(" Catching every inline exception bci:%d -> handler_bci:%d", bci(), handler_bci);
893893
}
894894
#endif
895+
// If this is a backwards branch in the bytecodes, add safepoint
896+
maybe_add_safepoint(handler_bci);
895897
merge_exception(handler_bci); // jump to handler
896898
return; // No more handling to be done here!
897899
}
@@ -925,6 +927,8 @@ void Parse::catch_inline_exceptions(SafePointNode* ex_map) {
925927
tty->cr();
926928
}
927929
#endif
930+
// If this is a backwards branch in the bytecodes, add safepoint
931+
maybe_add_safepoint(handler_bci);
928932
merge_exception(handler_bci);
929933
}
930934
set_control(not_subtype_ctrl);

hotspot/src/share/vm/runtime/reflection.cpp

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -867,17 +867,16 @@ oop Reflection::new_field(fieldDescriptor* fd, bool intern_name, TRAPS) {
867867

868868
oop Reflection::new_parameter(Handle method, int index, Symbol* sym,
869869
int flags, TRAPS) {
870-
Handle name;
871870

872-
// A null symbol here translates to the empty string
871+
Handle rh = java_lang_reflect_Parameter::create(CHECK_NULL);
872+
873873
if(NULL != sym) {
874-
name = java_lang_String::create_from_symbol(sym, CHECK_NULL);
874+
Handle name = java_lang_String::create_from_symbol(sym, CHECK_NULL);
875+
java_lang_reflect_Parameter::set_name(rh(), name());
875876
} else {
876-
name = java_lang_String::create_from_str("", CHECK_NULL);
877+
java_lang_reflect_Parameter::set_name(rh(), NULL);
877878
}
878879

879-
Handle rh = java_lang_reflect_Parameter::create(CHECK_NULL);
880-
java_lang_reflect_Parameter::set_name(rh(), name());
881880
java_lang_reflect_Parameter::set_modifiers(rh(), flags);
882881
java_lang_reflect_Parameter::set_executable(rh(), method());
883882
java_lang_reflect_Parameter::set_index(rh(), index);

hotspot/src/share/vm/utilities/globalDefinitions.hpp

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1280,6 +1280,42 @@ inline intx byte_size(void* from, void* to) {
12801280
return (address)to - (address)from;
12811281
}
12821282

1283+
#ifdef ASSERT
1284+
#define RHS_MASK_ASSERT(rhs_mask) \
1285+
if (rhs_mask != 31 && rhs_mask != 63) { \
1286+
basic_fatal("rhs_mask assertion failed."); \
1287+
}
1288+
#else
1289+
#define RHS_MASK_ASSERT(rhs_mask)
1290+
#endif
1291+
1292+
// Provide integer shift operations with Java semantics. No overflow
1293+
// issues - left shifts simply discard shifted out bits. No undefined
1294+
// behavior for large or negative shift quantities; instead the actual
1295+
// shift distance is the argument modulo the lhs value's size in bits.
1296+
// No undefined or implementation defined behavior for shifting negative
1297+
// values; left shift discards bits, right shift sign extends. We use
1298+
// the same safe conversion technique as above for java_add and friends.
1299+
#define JAVA_INTEGER_SHIFT_OP(OP, NAME, TYPE, XTYPE) \
1300+
inline TYPE NAME (TYPE lhs, jint rhs) { \
1301+
const uint rhs_mask = (sizeof(TYPE) * 8) - 1; \
1302+
RHS_MASK_ASSERT(rhs_mask) \
1303+
XTYPE xres = static_cast<XTYPE>(lhs); \
1304+
xres OP ## = (rhs & rhs_mask); \
1305+
return reinterpret_cast<TYPE&>(xres); \
1306+
}
1307+
1308+
JAVA_INTEGER_SHIFT_OP(<<, java_shift_left, jint, juint)
1309+
JAVA_INTEGER_SHIFT_OP(<<, java_shift_left, jlong, julong)
1310+
// For signed shift right, assume C++ implementation >> sign extends.
1311+
JAVA_INTEGER_SHIFT_OP(>>, java_shift_right, jint, jint)
1312+
JAVA_INTEGER_SHIFT_OP(>>, java_shift_right, jlong, jlong)
1313+
// For >>> use C++ unsigned >>.
1314+
JAVA_INTEGER_SHIFT_OP(>>, java_shift_right_unsigned, jint, juint)
1315+
JAVA_INTEGER_SHIFT_OP(>>, java_shift_right_unsigned, jlong, julong)
1316+
1317+
#undef JAVA_INTEGER_SHIFT_OP
1318+
12831319
//----------------------------------------------------------------------------------------------------
12841320
// Avoid non-portable casts with these routines (DEPRECATED)
12851321

hotspot/test/compiler/6891750/Test6891750.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2009, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2009, 2018, 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
@@ -27,7 +27,7 @@
2727
* @bug 6891750
2828
* @summary deopt blob kills values in O5
2929
*
30-
* @run main Test6891750
30+
* @run main/othervm Test6891750
3131
*/
3232

3333
abstract class Base6891750 extends Thread {

0 commit comments

Comments
 (0)