mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-16 17:14:41 +02:00
8253275: Remove unused methods after CMS removal
Reviewed-by: pliden, tschatzl
This commit is contained in:
parent
4ac6934965
commit
a9993f9464
3 changed files with 2 additions and 24 deletions
|
@ -931,11 +931,7 @@ HeapWord* DefNewGeneration::allocate(size_t word_size, bool is_tlab) {
|
||||||
// Note that since DefNewGeneration supports lock-free allocation, we
|
// Note that since DefNewGeneration supports lock-free allocation, we
|
||||||
// have to use it here, as well.
|
// have to use it here, as well.
|
||||||
HeapWord* result = eden()->par_allocate(word_size);
|
HeapWord* result = eden()->par_allocate(word_size);
|
||||||
if (result != NULL) {
|
if (result == NULL) {
|
||||||
if (_old_gen != NULL) {
|
|
||||||
_old_gen->sample_eden_chunk();
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
// If the eden is full and the last collection bailed out, we are running
|
// 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.
|
// 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
|
// 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,
|
HeapWord* DefNewGeneration::par_allocate(size_t word_size,
|
||||||
bool is_tlab) {
|
bool is_tlab) {
|
||||||
HeapWord* res = eden()->par_allocate(word_size);
|
return eden()->par_allocate(word_size);
|
||||||
if (_old_gen != NULL) {
|
|
||||||
_old_gen->sample_eden_chunk();
|
|
||||||
}
|
|
||||||
return res;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
size_t DefNewGeneration::tlab_capacity() const {
|
size_t DefNewGeneration::tlab_capacity() const {
|
||||||
|
|
|
@ -371,17 +371,6 @@ class Generation: public CHeapObj<mtGC> {
|
||||||
virtual void post_compact() { ShouldNotReachHere(); }
|
virtual void post_compact() { ShouldNotReachHere(); }
|
||||||
#endif
|
#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
|
// Some generations may require some cleanup actions before allowing
|
||||||
// a verification.
|
// a verification.
|
||||||
virtual void prepare_for_verify() {}
|
virtual void prepare_for_verify() {}
|
||||||
|
|
|
@ -271,9 +271,6 @@ class oopDesc {
|
||||||
inline uint age() const;
|
inline uint age() const;
|
||||||
inline void incr_age();
|
inline void incr_age();
|
||||||
|
|
||||||
// mark-sweep support
|
|
||||||
void follow_body(int begin, int end);
|
|
||||||
|
|
||||||
template <typename OopClosureType>
|
template <typename OopClosureType>
|
||||||
inline void oop_iterate(OopClosureType* cl);
|
inline void oop_iterate(OopClosureType* cl);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue