Skip to content

Commit

Permalink
8300178: JDK-8286496 causes build failure on older GCC
Browse files Browse the repository at this point in the history
Reviewed-by: sgehwolf
  • Loading branch information
gnu-andrew committed Jan 16, 2023
1 parent 056d5a7 commit dfd2fe8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hotspot/src/share/vm/jfr/writers/jfrWriterHost.inline.hpp
Expand Up @@ -70,7 +70,7 @@ template <typename T>
inline void WriterHost<BE, IE, WriterPolicyImpl>::write(const T* value, size_t len) {
assert(value != NULL, "invariant");
assert(len > 0, "invariant");
assert(len <= max_jint, "invariant");
assert(len <= static_cast<size_t>(max_jint), "invariant");
// Might need T + 1 size
u1* const pos = ensure_size(sizeof(T) * len + len);
if (pos) {
Expand Down Expand Up @@ -126,7 +126,7 @@ template <typename T>
inline void WriterHost<BE, IE, WriterPolicyImpl>::be_write(const T* value, size_t len) {
assert(value != NULL, "invariant");
assert(len > 0, "invariant");
assert(len <= max_jint, "invariant");
assert(len <= static_cast<size_t>(max_jint), "invariant");
// Big endian writes map one-to-one for length, so no extra space is needed.
u1* const pos = ensure_size(sizeof(T) * len);
if (pos) {
Expand Down

0 comments on commit dfd2fe8

Please sign in to comment.