Skip to content
This repository has been archived by the owner on Aug 27, 2022. It is now read-only.

Commit

Permalink
8259287: AbstractCompiler marks const in wrong position for is_c1/is_…
Browse files Browse the repository at this point in the history
…c2/is_jvmci

Reviewed-by: thartmann, chagedorn, shade
  • Loading branch information
Xin Liu authored and shipilev committed Jan 6, 2021
1 parent 32538b5 commit e3b9da1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/hotspot/share/compiler/abstractCompiler.hpp
Expand Up @@ -149,10 +149,10 @@ class AbstractCompiler : public CHeapObj<mtCompiler> {
}

// Compiler type queries.
const bool is_c1() { return _type == compiler_c1; }
const bool is_c2() { return _type == compiler_c2; }
const bool is_jvmci() { return _type == compiler_jvmci; }
const CompilerType type() { return _type; }
bool is_c1() const { return _type == compiler_c1; }
bool is_c2() const { return _type == compiler_c2; }
bool is_jvmci() const { return _type == compiler_jvmci; }
CompilerType type() const { return _type; }

// Customization
virtual void initialize () = 0;
Expand Down

0 comments on commit e3b9da1

Please sign in to comment.