Skip to content

Commit

Permalink
fix trailing whitesdpae errors
Browse files Browse the repository at this point in the history
  • Loading branch information
stooke committed Dec 4, 2024
1 parent 7fddda4 commit 0718454
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/hotspot/os/bsd/memMapPrinter_macosx.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -187,10 +187,10 @@ class ProcSmapsSummary {
|| region_info.pri_share_mode == SM_SHARED_ALIASED
|| region_info.pri_share_mode == SM_TRUESHARED
|| region_info.pri_share_mode == SM_COW;
bool is_committed = region_info.pri_share_mode == SM_EMPTY
bool is_committed = region_info.pri_share_mode == SM_EMPTY
&& region_info.pri_max_protection == VM_PROT_ALL
&& ((region_info.pri_protection & VM_PROT_DEFAULT) == VM_PROT_DEFAULT);
bool is_reserved = region_info.pri_share_mode == SM_EMPTY
bool is_reserved = region_info.pri_share_mode == SM_EMPTY
&& region_info.pri_max_protection == VM_PROT_ALL
&& region_info.pri_protection == VM_PROT_NONE;

Expand Down Expand Up @@ -298,7 +298,7 @@ class ProcSmapsPrinter {
};

static bool is_interesting(const proc_regionwithpathinfo& info) {
return info.prp_prinfo.pri_share_mode != SM_EMPTY
return info.prp_prinfo.pri_share_mode != SM_EMPTY
|| info.prp_prinfo.pri_user_tag != 0
|| info.prp_vip.vip_path[0] != '\0'
|| info.prp_prinfo.pri_protection != 0
Expand Down

0 comments on commit 0718454

Please sign in to comment.