Skip to content
This repository was archived by the owner on Aug 27, 2022. It is now read-only.
/ lanai Public archive

Commit 5fab769

Browse files
author
duke
committedSep 19, 2020
Automatic merge of jdk:master into master
2 parents 057fc7c + 22f7af7 commit 5fab769

File tree

87 files changed

+533
-211
lines changed

Some content is hidden

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

87 files changed

+533
-211
lines changed
 

‎make/autoconf/flags-cflags.m4

+4
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,10 @@ AC_DEFUN([FLAGS_SETUP_WARNINGS],
134134
135135
WARNINGS_ENABLE_ALL="-W3"
136136
DISABLED_WARNINGS="4800"
137+
if test "x$TOOLCHAIN_VERSION" = x2017; then
138+
# VS2017 incorrectly triggers this warning for constexpr
139+
DISABLED_WARNINGS+=" 4307"
140+
fi
137141
;;
138142
139143
gcc)

‎src/hotspot/share/c1/c1_Runtime1.cpp

+1-2
Original file line numberDiff line numberDiff line change
@@ -465,9 +465,7 @@ static nmethod* counter_overflow_helper(JavaThread* THREAD, int branch_bci, Meth
465465
}
466466
bci = branch_bci + offset;
467467
}
468-
assert(!HAS_PENDING_EXCEPTION, "Should not have any exceptions pending");
469468
osr_nm = CompilationPolicy::policy()->event(enclosing_method, method, branch_bci, bci, level, nm, THREAD);
470-
assert(!HAS_PENDING_EXCEPTION, "Event handler should not throw any exceptions");
471469
return osr_nm;
472470
}
473471

@@ -1416,6 +1414,7 @@ JRT_ENTRY(void, Runtime1::predicate_failed_trap(JavaThread* thread))
14161414
// that simply means we won't have an MDO to update.
14171415
Method::build_interpreter_method_data(m, THREAD);
14181416
if (HAS_PENDING_EXCEPTION) {
1417+
// Only metaspace OOM is expected. No Java code executed.
14191418
assert((PENDING_EXCEPTION->is_a(SystemDictionary::OutOfMemoryError_klass())), "we expect only an OOM error here");
14201419
CLEAR_PENDING_EXCEPTION;
14211420
}

0 commit comments

Comments
 (0)