Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
8259287: AbstractCompiler marks const in wrong position for is_c1/is_…
…c2/is_jvmci

Reviewed-by: thartmann, chagedorn, shade
  • Loading branch information
Xin Liu authored and shipilev committed Jan 6, 2021
1 parent 32538b5 commit e3b9da145645d10e10fa6d8c21590899a342cfc9
Showing with 4 additions and 4 deletions.
  1. +4 −4 src/hotspot/share/compiler/abstractCompiler.hpp
@@ -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;

0 comments on commit e3b9da1

Please sign in to comment.