8264565: Templatize num_arguments() functions of DCmd subclasses

Reviewed-by: coleenp, dholmes
This commit is contained in:
Ioi Lam 2021-04-06 03:27:09 +00:00
parent 54b4070da7
commit ff223530b6
8 changed files with 36 additions and 250 deletions

View file

@ -881,14 +881,3 @@ void SymboltableDCmd::execute(DCmdSource source, TRAPS) {
_verbose.value());
VMThread::execute(&dumper);
}
int SymboltableDCmd::num_arguments() {
ResourceMark rm;
SymboltableDCmd* dcmd = new SymboltableDCmd(NULL, false);
if (dcmd != NULL) {
DCmdMark mark(dcmd);
return dcmd->_dcmdparser.num_arguments();
} else {
return 0;
}
}