Skip to content

Commit

Permalink
8175382: clhsdb pmap should print the end addresses of the load modules
Browse files Browse the repository at this point in the history
Reviewed-by: sspitsyn, ysuenaga
  • Loading branch information
plummercj committed Sep 1, 2022
1 parent 9444a08 commit 07616de
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2003, 2021, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2003, 2022, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
Expand Down Expand Up @@ -72,8 +72,11 @@ public void run(PrintStream out, Debugger dbg) {
}
while (itr.hasNext()) {
LoadObject lo = itr.next();
out.print(lo.getBase() + "\t");
out.print(lo.getSize()/1024 + "K\t");
long base = lo.getBase().asLongValue();
long size = lo.getSize();
long end = base + size;
out.print("0x" + Long.toHexString(base) + "-0x" + Long.toHexString(end) + "\t");
out.print(size/1024 + "K\t");
out.println(lo.getName());
}
} else {
Expand Down

1 comment on commit 07616de

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.