8253275: Remove unused methods after CMS removal
Reviewed-by: pliden, tschatzl
This commit is contained in:
parent
4ac6934965
commit
a9993f9464
@ -931,11 +931,7 @@ HeapWord* DefNewGeneration::allocate(size_t word_size, bool is_tlab) {
|
||||
// Note that since DefNewGeneration supports lock-free allocation, we
|
||||
// have to use it here, as well.
|
||||
HeapWord* result = eden()->par_allocate(word_size);
|
||||
if (result != NULL) {
|
||||
if (_old_gen != NULL) {
|
||||
_old_gen->sample_eden_chunk();
|
||||
}
|
||||
} else {
|
||||
if (result == NULL) {
|
||||
// If the eden is full and the last collection bailed out, we are running
|
||||
// out of heap space, and we try to allocate the from-space, too.
|
||||
// allocate_from_space can't be inlined because that would introduce a
|
||||
@ -947,11 +943,7 @@ HeapWord* DefNewGeneration::allocate(size_t word_size, bool is_tlab) {
|
||||
|
||||
HeapWord* DefNewGeneration::par_allocate(size_t word_size,
|
||||
bool is_tlab) {
|
||||
HeapWord* res = eden()->par_allocate(word_size);
|
||||
if (_old_gen != NULL) {
|
||||
_old_gen->sample_eden_chunk();
|
||||
}
|
||||
return res;
|
||||
return eden()->par_allocate(word_size);
|
||||
}
|
||||
|
||||
size_t DefNewGeneration::tlab_capacity() const {
|
||||
|
@ -371,17 +371,6 @@ class Generation: public CHeapObj<mtGC> {
|
||||
virtual void post_compact() { ShouldNotReachHere(); }
|
||||
#endif
|
||||
|
||||
// Support for CMS's rescan. In this general form we return a pointer
|
||||
// to an abstract object that can be used, based on specific previously
|
||||
// decided protocols, to exchange information between generations,
|
||||
// information that may be useful for speeding up certain types of
|
||||
// garbage collectors. A NULL value indicates to the client that
|
||||
// no data recording is expected by the provider. The data-recorder is
|
||||
// expected to be GC worker thread-local, with the worker index
|
||||
// indicated by "thr_num".
|
||||
virtual void* get_data_recorder(int thr_num) { return NULL; }
|
||||
virtual void sample_eden_chunk() {}
|
||||
|
||||
// Some generations may require some cleanup actions before allowing
|
||||
// a verification.
|
||||
virtual void prepare_for_verify() {}
|
||||
|
@ -271,9 +271,6 @@ class oopDesc {
|
||||
inline uint age() const;
|
||||
inline void incr_age();
|
||||
|
||||
// mark-sweep support
|
||||
void follow_body(int begin, int end);
|
||||
|
||||
template <typename OopClosureType>
|
||||
inline void oop_iterate(OopClosureType* cl);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user