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

@ -698,17 +698,6 @@ void StringtableDCmd::execute(DCmdSource source, TRAPS) {
VMThread::execute(&dumper);
}
int StringtableDCmd::num_arguments() {
ResourceMark rm;
StringtableDCmd* dcmd = new StringtableDCmd(NULL, false);
if (dcmd != NULL) {
DCmdMark mark(dcmd);
return dcmd->_dcmdparser.num_arguments();
} else {
return 0;
}
}
// Sharing
#if INCLUDE_CDS_JAVA_HEAP
oop StringTable::lookup_shared(const jchar* name, int len, unsigned int hash) {