8204850: BarrierSet::make_* should be static
authorshade
Tue, 12 Jun 2018 10:01:23 +0200
changeset 50521 32ab7150a270
parent 50520 12be4323b0a5
child 50522 99f4d3b6d487
8204850: BarrierSet::make_* should be static Reviewed-by: stuefe, tschatzl
src/hotspot/share/gc/shared/barrierSet.hpp
--- a/src/hotspot/share/gc/shared/barrierSet.hpp	Tue Jun 12 11:11:59 2018 +0000
+++ b/src/hotspot/share/gc/shared/barrierSet.hpp	Tue Jun 12 10:01:23 2018 +0200
@@ -103,17 +103,17 @@
   ~BarrierSet() { }
 
   template <class BarrierSetAssemblerT>
-  BarrierSetAssembler* make_barrier_set_assembler() {
+  static BarrierSetAssembler* make_barrier_set_assembler() {
     return NOT_ZERO(new BarrierSetAssemblerT()) ZERO_ONLY(NULL);
   }
 
   template <class BarrierSetC1T>
-  BarrierSetC1* make_barrier_set_c1() {
+  static BarrierSetC1* make_barrier_set_c1() {
     return COMPILER1_PRESENT(new BarrierSetC1T()) NOT_COMPILER1(NULL);
   }
 
   template <class BarrierSetC2T>
-  BarrierSetC2* make_barrier_set_c2() {
+  static BarrierSetC2* make_barrier_set_c2() {
     return COMPILER2_PRESENT(new BarrierSetC2T()) NOT_COMPILER2(NULL);
   }