Skip to content

Commit 0081d8c

Browse files
committedJan 19, 2024
8324147: Serial: Remove generation::compute_new_size
Reviewed-by: ehelin
1 parent 5f71419 commit 0081d8c

File tree

3 files changed

+2
-7
lines changed

3 files changed

+2
-7
lines changed
 

‎src/hotspot/share/gc/serial/defNewGeneration.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ class DefNewGeneration: public Generation {
250250
void reset_scratch();
251251

252252
// GC support
253-
virtual void compute_new_size();
253+
void compute_new_size();
254254

255255
// Returns true if the collection is likely to be safely
256256
// completed. Even if this method returns true, a collection

‎src/hotspot/share/gc/serial/generation.hpp

-5
Original file line numberDiff line numberDiff line change
@@ -248,11 +248,6 @@ class Generation: public CHeapObj<mtGC> {
248248
// generation since the last call to "save_marks".
249249
virtual bool no_allocs_since_save_marks() = 0;
250250

251-
// When an older generation has been collected, and perhaps resized,
252-
// this method will be invoked on all younger generations (from older to
253-
// younger), allowing them to resize themselves as appropriate.
254-
virtual void compute_new_size() = 0;
255-
256251
// Printing
257252
virtual const char* name() const = 0;
258253
virtual const char* short_name() const = 0;

‎src/hotspot/share/gc/serial/tenuredGeneration.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ class TenuredGeneration: public Generation {
8181

8282
void compute_new_size_inner();
8383
public:
84-
virtual void compute_new_size();
84+
void compute_new_size();
8585

8686
TenuredSpace* space() const { return _the_space; }
8787

0 commit comments

Comments
 (0)
Please sign in to comment.