Skip to content
This repository has been archived by the owner on May 29, 2024. It is now read-only.

Commit

Permalink
[GR-36838] Merge in jdk-11.0.15+4.
Browse files Browse the repository at this point in the history
PullRequest: labsjdk-ce-11/254
  • Loading branch information
marwan-hallaoui committed Mar 2, 2022
2 parents de9f344 + f26c3d9 commit 94be892
Show file tree
Hide file tree
Showing 31 changed files with 1,789 additions and 213 deletions.
6 changes: 3 additions & 3 deletions src/hotspot/cpu/aarch64/macroAssembler_aarch64.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1492,7 +1492,7 @@ void MacroAssembler::movptr(Register r, uintptr_t imm64) {
#ifndef PRODUCT
{
char buffer[64];
snprintf(buffer, sizeof(buffer), "0x%"PRIX64, (uint64_t)imm64);
snprintf(buffer, sizeof(buffer), "0x%" PRIX64, (uint64_t)imm64);
block_comment(buffer);
}
#endif
Expand Down Expand Up @@ -1555,7 +1555,7 @@ void MacroAssembler::mov_immediate64(Register dst, uint64_t imm64)
#ifndef PRODUCT
{
char buffer[64];
snprintf(buffer, sizeof(buffer), "0x%"PRIX64, imm64);
snprintf(buffer, sizeof(buffer), "0x%" PRIX64, imm64);
block_comment(buffer);
}
#endif
Expand Down Expand Up @@ -1668,7 +1668,7 @@ void MacroAssembler::mov_immediate32(Register dst, uint32_t imm32)
#ifndef PRODUCT
{
char buffer[64];
snprintf(buffer, sizeof(buffer), "0x%"PRIX32, imm32);
snprintf(buffer, sizeof(buffer), "0x%" PRIX32, imm32);
block_comment(buffer);
}
#endif
Expand Down
2 changes: 1 addition & 1 deletion src/hotspot/cpu/aarch64/macroAssembler_aarch64.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ class MacroAssembler: public Assembler {
= (operand_valid_for_logical_immediate(false /*is32*/,
(uint64_t)Universe::narrow_klass_base())
&& ((uint64_t)Universe::narrow_klass_base()
> (1ULL << log2_intptr(Universe::narrow_klass_range()))));
> (1ULL << log2_intptr(checked_cast<uintptr_t>(Universe::narrow_klass_range())))));
}

// These routines should emit JVMTI PopFrame and ForceEarlyReturn handling code.
Expand Down
1 change: 1 addition & 0 deletions src/hotspot/share/runtime/thread.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4854,6 +4854,7 @@ void Threads::print_threads_compiling(outputStream* st, char* buf, int buflen, b
CompileTask* task = ct->task();
if (task != NULL) {
thread->print_name_on_error(st, buf, buflen);
st->print(" ");
task->print(st, NULL, short_form, true);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1030,10 +1030,10 @@ public static ICC_Profile getInstance(InputStream s) throws IOException {
static byte[] getProfileDataFromStream(InputStream s) throws IOException {

BufferedInputStream bis = new BufferedInputStream(s);
bis.mark(128);
bis.mark(128); // 128 is the length of the ICC profile header

byte[] header = bis.readNBytes(128);
if (header[36] != 0x61 || header[37] != 0x63 ||
if (header.length < 128 || header[36] != 0x61 || header[37] != 0x63 ||
header[38] != 0x73 || header[39] != 0x70) {
return null; /* not a valid profile */
}
Expand Down
Loading

0 comments on commit 94be892

Please sign in to comment.