# HG changeset patch # User shade # Date 1528790483 -7200 # Node ID 32ab7150a27067dafb522d67061e48dc3565fe02 # Parent 12be4323b0a51b63d129456cffe84105c19ea21a 8204850: BarrierSet::make_* should be static Reviewed-by: stuefe, tschatzl diff -r 12be4323b0a5 -r 32ab7150a270 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 - BarrierSetAssembler* make_barrier_set_assembler() { + static BarrierSetAssembler* make_barrier_set_assembler() { return NOT_ZERO(new BarrierSetAssemblerT()) ZERO_ONLY(NULL); } template - BarrierSetC1* make_barrier_set_c1() { + static BarrierSetC1* make_barrier_set_c1() { return COMPILER1_PRESENT(new BarrierSetC1T()) NOT_COMPILER1(NULL); } template - BarrierSetC2* make_barrier_set_c2() { + static BarrierSetC2* make_barrier_set_c2() { return COMPILER2_PRESENT(new BarrierSetC2T()) NOT_COMPILER2(NULL); }