Skip to content

Commit

Permalink
Merge pull request #15919 from keithc-ca/dump_size
Browse files Browse the repository at this point in the history
Testing for 64-bit dump should ignore DDRInteractiveCommandException
  • Loading branch information
pshipton committed Sep 19, 2022
2 parents 2270a93 + a04e1ef commit 96fd6f9
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -461,14 +461,14 @@ public static void resetList() {
coveredStructures.clear();
}

/* Check whether core is generated on 64 bit platform or not.
* Run setvm with the address that can exist only on 64 bit platform
/* Check whether core is generated on a 64-bit platform or not.
* Run setvm with an address that can exist only on a 64-bit platform.
*/
public boolean is64BitPlatform() {
String setVMOutput = exec(Constants.SETVM_CMD, new String[] { CommandUtils.UDATA_MAX_64BIT.toString() });
boolean is64BitPlatform = true;
/* If it is 32-bit platform, then it will complain about address being too large. */
if (validate(setVMOutput, "is larger than the max available memory address: 0xFFFFFFFF", null)) {
/* If it is a 32-bit platform, then it will complain about address being too large. */
if (validate(setVMOutput, "is larger than the max available memory address: 0xFFFFFFFF", 1)) {
is64BitPlatform = false;
}
return is64BitPlatform;
Expand Down

0 comments on commit 96fd6f9

Please sign in to comment.