Cherry-pick 8204850: BarrierSet::make_* should be static epsilon-gc-branch
authorshade
Tue, 12 Jun 2018 10:01:23 +0200
branchepsilon-gc-branch
changeset 56743 774caae3a3ce
parent 56742 25d779d6bafc
child 56746 6d3a485a01dc
Cherry-pick 8204850: BarrierSet::make_* should be static
src/hotspot/share/gc/shared/barrierSet.hpp
--- a/src/hotspot/share/gc/shared/barrierSet.hpp	Tue Jun 12 10:52:09 2018 +0200
+++ 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);
   }