Skip to content

Commit

Permalink
8272791: java -XX:BlockZeroingLowLimit=1 crashes after 8270947
Browse files Browse the repository at this point in the history
Backport-of: e17118aa8afb14dfca049f19fd98a1483b2b5c1b
  • Loading branch information
GoeLin committed Oct 18, 2022
1 parent 39e6ebd commit 75ce374
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/hotspot/cpu/aarch64/globals_aarch64.hpp
Expand Up @@ -106,7 +106,7 @@ define_pd_global(intx, InlineSmallCode, 1000);
"Use DC ZVA for block zeroing") \
product(intx, BlockZeroingLowLimit, 256, \
"Minimum size in bytes when block zeroing will be used") \
range(1, max_jint) \
range(wordSize, max_jint) \
product(bool, TraceTraps, false, "Trace all traps the signal handler")\
product(int, SoftwarePrefetchHintDistance, -1, \
"Use prfm hint with specified distance in compiled code." \
Expand Down
2 changes: 1 addition & 1 deletion src/hotspot/cpu/aarch64/macroAssembler_aarch64.cpp
Expand Up @@ -4885,7 +4885,7 @@ address MacroAssembler::zero_words(Register ptr, Register cnt)
// r10, r11, rscratch1, and rscratch2 are clobbered.
address MacroAssembler::zero_words(Register base, uint64_t cnt)
{
guarantee(zero_words_block_size < BlockZeroingLowLimit,
assert(wordSize <= BlockZeroingLowLimit,
"increase BlockZeroingLowLimit");
address result = nullptr;
if (cnt <= (uint64_t)BlockZeroingLowLimit / BytesPerWord) {
Expand Down

0 comments on commit 75ce374

Please sign in to comment.