mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-20 02:54:35 +02:00
8134797: Remove explicit casts in CollectorPolicy hierarchy
Removed the explicit casts. Reviewed-by: jwilhelm, tschatzl, pliden
This commit is contained in:
parent
30b987f6b7
commit
802664728f
8 changed files with 19 additions and 18 deletions
|
@ -213,7 +213,7 @@ DefNewGeneration::DefNewGeneration(ReservedSpace rs,
|
|||
_max_eden_size = size - (2*_max_survivor_size);
|
||||
|
||||
// allocate the performance counters
|
||||
GenCollectorPolicy* gcp = (GenCollectorPolicy*)gch->collector_policy();
|
||||
GenCollectorPolicy* gcp = gch->gen_policy();
|
||||
|
||||
// Generation counters -- generation 0, 3 subspaces
|
||||
_gen_counters = new GenerationCounters("new", 0, 3,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue