equal
deleted
inserted
replaced
24 #ifndef SHARE_VM_GC_EPSILON_BARRIERSET_HPP |
24 #ifndef SHARE_VM_GC_EPSILON_BARRIERSET_HPP |
25 #define SHARE_VM_GC_EPSILON_BARRIERSET_HPP |
25 #define SHARE_VM_GC_EPSILON_BARRIERSET_HPP |
26 |
26 |
27 #include "gc/shared/collectorPolicy.hpp" |
27 #include "gc/shared/collectorPolicy.hpp" |
28 #include "gc/shared/barrierSetAssembler.hpp" |
28 #include "gc/shared/barrierSetAssembler.hpp" |
29 //#include "gc/shared/c1/barrierSetC1.hpp" |
|
30 #include "gc/shared/barrierSet.hpp" |
29 #include "gc/shared/barrierSet.hpp" |
31 |
30 |
32 // No interaction with application is required for Epsilon, and therefore |
31 // No interaction with application is required for Epsilon, and therefore |
33 // the barrier set is empty. |
32 // the barrier set is empty. |
34 class EpsilonBarrierSet: public BarrierSet { |
33 class EpsilonBarrierSet: public BarrierSet { |
36 |
35 |
37 public: |
36 public: |
38 EpsilonBarrierSet(); |
37 EpsilonBarrierSet(); |
39 |
38 |
40 virtual void print_on(outputStream *st) const {} |
39 virtual void print_on(outputStream *st) const {} |
|
40 |
|
41 virtual void on_thread_create(Thread* thread); |
|
42 virtual void on_thread_destroy(Thread* thread); |
41 |
43 |
42 template <DecoratorSet decorators, typename BarrierSetT = EpsilonBarrierSet> |
44 template <DecoratorSet decorators, typename BarrierSetT = EpsilonBarrierSet> |
43 class AccessBarrier: public BarrierSet::AccessBarrier<decorators, BarrierSetT> {}; |
45 class AccessBarrier: public BarrierSet::AccessBarrier<decorators, BarrierSetT> {}; |
44 }; |
46 }; |
45 |
47 |