8201212: Remove INCLUDE_ALL_GCS from OopStorage files

Reviewed-by: kbarrett
This commit is contained in:
Stefan Karlsson 2018-04-06 11:37:33 +02:00
parent 4387825322
commit 48d527c5bd
5 changed files with 0 additions and 21 deletions

View File

@ -687,7 +687,6 @@ size_t OopStorage::total_memory_usage() const {
}
// Parallel iteration support
#if INCLUDE_ALL_GCS
static char* not_started_marker_dummy = NULL;
static void* const not_started_marker = &not_started_marker_dummy;
@ -737,8 +736,6 @@ OopStorage::Block* OopStorage::BasicParState::claim_next_block() {
return static_cast<Block*>(next);
}
#endif // INCLUDE_ALL_GCS
const char* OopStorage::name() const { return _name; }
#ifndef PRODUCT

View File

@ -146,11 +146,9 @@ public:
template<typename IsAliveClosure, typename Closure>
inline void weak_oops_do(IsAliveClosure* is_alive, Closure* closure);
#if INCLUDE_ALL_GCS
// Parallel iteration is for the exclusive use of the GC.
// Other clients must use serial iteration.
template<bool concurrent, bool is_const> class ParState;
#endif // INCLUDE_ALL_GCS
// Block cleanup functions are for the exclusive use of the GC.
// Both stop deleting if there is an in-progress concurrent iteration.
@ -244,10 +242,8 @@ private:
template<typename F, typename Storage>
static bool iterate_impl(F f, Storage* storage);
#if INCLUDE_ALL_GCS
// Implementation support for parallel iteration
class BasicParState;
#endif // INCLUDE_ALL_GCS
// Wrapper for OopClosure-style function, so it can be used with
// iterate. Assume p is of type oop*. Then cl->do_oop(p) must be a

View File

@ -28,8 +28,6 @@
#include "gc/shared/oopStorage.hpp"
#include "utilities/macros.hpp"
#if INCLUDE_ALL_GCS
//////////////////////////////////////////////////////////////////////////////
// Support for parallel and optionally concurrent state iteration.
//
@ -192,6 +190,4 @@ public:
void weak_oops_do(IsAliveClosure* is_alive, Closure* cl);
};
#endif // INCLUDE_ALL_GCS
#endif // SHARE_GC_SHARED_OOPSTORAGEPARSTATE_HPP

View File

@ -30,8 +30,6 @@
#include "metaprogramming/conditional.hpp"
#include "utilities/macros.hpp"
#if INCLUDE_ALL_GCS
template<typename F>
class OopStorage::BasicParState::AlwaysTrueFn {
F _f;
@ -86,6 +84,4 @@ inline void OopStorage::ParState<false, false>::weak_oops_do(IsAliveClosure* is_
this->iterate(if_alive_fn(is_alive, oop_fn(cl)));
}
#endif // INCLUDE_ALL_GCS
#endif // SHARE_GC_SHARED_OOPSTORAGEPARSTATE_INLINE_HPP

View File

@ -856,9 +856,6 @@ TEST_VM_F(OopStorageTestIteration, oops_do) {
vstate.check();
}
// Parallel iteration not available unless INCLUDE_ALL_GCS
#if INCLUDE_ALL_GCS
class OopStorageTestParIteration : public OopStorageTestIteration {
public:
WorkGang* workers();
@ -1017,8 +1014,6 @@ TEST_VM_F(OopStorageTestParIteration, par_state_concurrent_const_oops_do) {
vstate.check();
}
#endif // INCLUDE_ALL_GCS
TEST_VM_F(OopStorageTestWithAllocation, delete_empty_blocks_safepoint) {
TestAccess::BlockList& active_list = TestAccess::active_list(_storage);
@ -1384,4 +1379,3 @@ TEST_F(OopStorageBlockListTestWithList, two_lists) {
}
EXPECT_EQ(NULL_BLOCK, active_block);
}