mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-20 19:14:38 +02:00
8140274: methodHandles and constantPoolHandles should be passed as const references
Modified code to use const reference parameters Reviewed-by: sspitsyn, twisti
This commit is contained in:
parent
686fb800c8
commit
f1e89ea4cc
111 changed files with 521 additions and 515 deletions
|
@ -60,7 +60,7 @@ class MethodMatcher : public CHeapObj<mtCompiler> {
|
|||
void init(Symbol* class_name, Mode class_mode, Symbol* method_name, Mode method_mode, Symbol* signature);
|
||||
static void parse_method_pattern(char*& line, const char*& error_msg, MethodMatcher* m);
|
||||
static void print_symbol(outputStream* st, Symbol* h, Mode mode);
|
||||
bool matches(methodHandle method) const;
|
||||
bool matches(const methodHandle& method) const;
|
||||
void print_base(outputStream* st);
|
||||
|
||||
private:
|
||||
|
@ -101,7 +101,7 @@ public:
|
|||
return bm;
|
||||
}
|
||||
|
||||
bool match(methodHandle method) {
|
||||
bool match(const methodHandle& method) {
|
||||
for (BasicMatcher* current = this; current != NULL; current = current->next()) {
|
||||
if (current->matches(method)) {
|
||||
return true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue