Skip to content

Commit

Permalink
Update (2024.01.12)
Browse files Browse the repository at this point in the history
32519: Fix for 31967 set default MaxGCPauseMillis
31967: [G1GC] Set default MaxGCPauseMillis=150ms
32446: Fix the error of assert(v_align > 1) when MaxVectorSize is 4 or 8
  • Loading branch information
loongson-jvm authored Jan 11, 2024
1 parent 1ec5e04 commit 7307520
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion src/hotspot/cpu/loongarch/loongarch_64.ad
Original file line number Diff line number Diff line change
Expand Up @@ -1155,7 +1155,11 @@ bool Matcher::pd_clone_address_expressions(AddPNode* m, Matcher::MStack& mstack,

// Max vector size in bytes. 0 if not supported.
const int Matcher::vector_width_in_bytes(BasicType bt) {
return (int)MaxVectorSize;
int size = (int)MaxVectorSize;
if (size < 2*type2aelembytes(bt)) size = 0;
// But never < 4
if (size < 4) size = 0;
return size;
}

// Limits on vector size (number of elements) loaded into vector.
Expand Down
2 changes: 1 addition & 1 deletion src/hotspot/cpu/loongarch/vm_version_loongarch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ void VM_Version::get_processor_features() {
_supports_cx8 = true;

if (UseG1GC && FLAG_IS_DEFAULT(MaxGCPauseMillis)) {
FLAG_SET_CMDLINE(MaxGCPauseMillis, 650);
FLAG_SET_DEFAULT(MaxGCPauseMillis, 150);
}

if (supports_lsx()) {
Expand Down

0 comments on commit 7307520

Please sign in to comment.