RFR: 8244670: convert clhsdb "whatis" command from javascript to java [v3]

Chris Plummer cjplummer at openjdk.java.net
Mon Dec 20 17:46:45 UTC 2021


> "whatis" is one of the old clhsdb commands that was written in javascript and lost when Nashorn support was removed. The old "whatis" is the same as the old "findpc", but also called LoadObject.lookup() on the address and also tried to determine the C++ Type of the address. However, with the improvements made to PointerFinder by JDK-8247514, findpc now also includes support for this (plus other types of address lookups), so these two commands will do the same thing. I'm still adding "whatis" since some people might still rely on it from when it worked in JDK 8, and may not know that findpc will do the same.

Chris Plummer has updated the pull request incrementally with one additional commit since the last revision:

  fix typo

-------------

Changes:
  - all: https://git.openjdk.java.net/jdk/pull/6887/files
  - new: https://git.openjdk.java.net/jdk/pull/6887/files/d23db30b..b158e66a

Webrevs:
 - full: https://webrevs.openjdk.java.net/?repo=jdk&pr=6887&range=02
 - incr: https://webrevs.openjdk.java.net/?repo=jdk&pr=6887&range=01-02

  Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod
  Patch: https://git.openjdk.java.net/jdk/pull/6887.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk pull/6887/head:pull/6887

PR: https://git.openjdk.java.net/jdk/pull/6887


More information about the serviceability-dev mailing list