Skip to content

Commit d0ea7c9

Browse files
committed
8279024: Remove javascript references from clhsdb.html
Reviewed-by: kevinw, sspitsyn
1 parent bf28264 commit d0ea7c9

File tree

2 files changed

+3
-51
lines changed

2 files changed

+3
-51
lines changed

src/jdk.hotspot.agent/doc/clhsdb.html

Lines changed: 2 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -10,26 +10,17 @@ <h1>Command line HSDB</h1>
1010
<p>
1111
When debugging remote core dumps it is easier to work with command line tools instead of
1212
GUI tools. Command line HSDB (CLHSDB) tool is alternative to SA GUI tool HSDB.
13+
CLHSDB is launched from the command line using the "jhsdb clhsdb" command.
1314
</p>
1415

1516
<p>
16-
There is also JavaScript based SA command line interface called <a href="jsdb.html">jsdb</a>.
17-
But, CLHSDB supports Unix shell-like (or dbx/gdb-like) command line interface with
17+
CLHSDB supports Unix shell-like (or dbx/gdb-like) command line interface with
1818
support for output redirection/appending (familiar &gt;, &gt;&gt;), command history and so on.
1919
Each CLHSDB command can have zero or more arguments and optionally end with output redirection
2020
(or append) to a file. Commands may be stored in a file and run using <b>source</b> command.
2121
<b>help</b> command prints usage message for all supported commands (or a specific command)
2222
</p>
2323

24-
<h3>Shell/batch scripts to run command line HSDB</h3>
25-
26-
<ul>
27-
<li>clhsdbproc.sh
28-
<li>clhsdbproc64.sh
29-
<li>clhsdbwindbg.bat
30-
<li>clhsdbwindbg64.bat
31-
</ul>
32-
3324
<h3>Annotated output of CLHSDB help command</h3>
3425

3526
<pre>
@@ -62,8 +53,6 @@ <h3>Annotated output of CLHSDB help command</h3>
6253
intConstant [ name [ value ] ] <font color="red">print out hotspot integer constant(s)</font>
6354
jdis address <font color="red">show bytecode disassembly of a given Method*</font>
6455
jhisto <font color="red">show Java heap histogram</font>
65-
jseval script <font color="red">evaluate a given string as JavaScript code</font>
66-
jsload file <font color="red">load and evaluate a JavaScript file</font>
6756
jstack [-v] <font color="red">show Java stack trace of all Java threads. -v is verbose mode</font>
6857
livenmethods <font color="red">show all live nmethods</font>
6958
longConstant [ name [ value ] ] <font color="red">print out hotspot long constant(s)s</font>
@@ -95,39 +84,6 @@ <h3>Annotated output of CLHSDB help command</h3>
9584
</code>
9685
</pre>
9786

98-
<h3>JavaScript integration</h3>
99-
100-
<p>Few CLHSDB commands are already implemented in JavaScript. It is possible to extend CLHSDB command set
101-
by implementing more commands in a JavaScript file and by loading it by <b>jsload</b> command. <b>jseval</b>
102-
command may be used to evaluate arbitrary JavaScript expression from a string. Any JavaScript function
103-
may be exposed as a CLHSDB command by registering it using JavaScript <b><code>registerCommand</code></b>
104-
function. This function accepts command name, usage and name of the JavaScript implementation function
105-
as arguments.
106-
</p>
107-
108-
<h3>Simple CLHSDB command implemented in JavaScript</h3>
109-
110-
<b>File: test.js</b>
111-
<pre>
112-
<code>
113-
function helloImpl(name) {
114-
println("hello, " + name);
115-
}
116-
117-
// register the above JavaScript function as CLHSDB command
118-
registerCommand("hello", "hello name", "helloImpl");
119-
</code>
120-
</pre>
121-
---------<br>
122-
123-
"test.js" can be loaded in CLHSDB prompt using <b>jsload</b> command using
124-
125-
<pre>
126-
<code>
127-
hsdb&gt; jsload test.js
128-
</code>
129-
</pre>
130-
13187
<h3>Compilation Replay</h3>
13288
<p>
13389
When a java process crashes in compiled method, usually a core file is saved.

src/jdk.hotspot.agent/doc/index.html

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,9 @@ <h3>SA Modes</h3>
3535

3636
<h3>Command line HSDB</h3>
3737
<p>
38-
There are also command line HSDB variants ("clhsdbproc.sh" or "clhsdbwindbg.bat"
39-
or 64-bit variants). There is also a JavaScript based command line interface
40-
called "jsdbproc.sh" [or "jsdbwindbg.bat" or 64-bit variants]. More details on
41-
command line interfaces can be found in
38+
There is also a command line HSDB variant. More details on the command line interface can be found in:
4239
<ul>
4340
<li><a href="clhsdb.html">clhsdb.html</a>
44-
<li><a href="jsdb.html">jsdb.html</a>
4541
</ul>
4642
</p>
4743

0 commit comments

Comments
 (0)