< prev index next >
src/share/vm/gc/shared/strongRootsScope.hpp
Print this page
*** 27,46 ****
#include "memory/allocation.hpp"
class MarkScope : public StackObj {
protected:
! bool _active;
! public:
! MarkScope(bool activate = true);
~MarkScope();
};
// Sets up and tears down the required state for parallel root processing.
class StrongRootsScope : public MarkScope {
public:
! StrongRootsScope(bool activate = true);
~StrongRootsScope();
};
#endif // SHARE_VM_GC_SHARED_STRONGROOTSSCOPE_HPP
--- 27,49 ----
#include "memory/allocation.hpp"
class MarkScope : public StackObj {
protected:
! MarkScope();
~MarkScope();
};
// Sets up and tears down the required state for parallel root processing.
class StrongRootsScope : public MarkScope {
+ // Number of threads participating in the roots processing.
+ const uint _n_threads;
+
public:
! StrongRootsScope(uint n_threads);
~StrongRootsScope();
+
+ uint n_threads() const { return _n_threads; }
};
#endif // SHARE_VM_GC_SHARED_STRONGROOTSSCOPE_HPP
< prev index next >