8291056: Remove unused Generation::par_promote*()

Reviewed-by: kbarrett
This commit is contained in:
Zhengyu Gu 2022-07-27 12:25:35 +00:00
parent 48b77a6969
commit adaf3b9014
2 changed files with 0 additions and 21 deletions

View File

@ -184,13 +184,6 @@ oop Generation::promote(oop obj, size_t obj_size) {
return new_obj;
}
oop Generation::par_promote(int thread_num,
oop obj, markWord m, size_t word_sz) {
// Could do a bad general impl here that gets a lock. But no.
ShouldNotCallThis();
return NULL;
}
Space* Generation::space_containing(const void* p) const {
GenerationIsInReservedClosure blk(p);
// Cast away const

View File

@ -249,20 +249,6 @@ class Generation: public CHeapObj<mtGC> {
// avoid repeating the virtual call to retrieve it.
virtual oop promote(oop obj, size_t obj_size);
// Thread "thread_num" (0 <= i < ParalleGCThreads) wants to promote
// object "obj", whose original mark word was "m", and whose size is
// "word_sz". If possible, allocate space for "obj", copy obj into it
// (taking care to copy "m" into the mark word when done, since the mark
// word of "obj" may have been overwritten with a forwarding pointer, and
// also taking care to copy the klass pointer *last*. Returns the new
// object if successful, or else NULL.
virtual oop par_promote(int thread_num, oop obj, markWord m, size_t word_sz);
// Informs the current generation that all par_promote_alloc's in the
// collection have been completed; any supporting data structures can be
// reset. Default is to do nothing.
virtual void par_promote_alloc_done(int thread_num) {}
// Informs the current generation that all oop_since_save_marks_iterates
// performed by "thread_num" in the current collection, if any, have been
// completed; any supporting data structures can be reset. Default is to