mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-17 01:24:33 +02:00
8264565: Templatize num_arguments() functions of DCmd subclasses
Reviewed-by: coleenp, dholmes
This commit is contained in:
parent
54b4070da7
commit
ff223530b6
8 changed files with 36 additions and 250 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue