Skip to content


Browse files Browse the repository at this point in the history
8265414: Variable assigned but not used in G1FreeHumongousRegionClosure
Reviewed-by: tschatzl, iwalulya
  • Loading branch information
albertnetymk committed Apr 19, 2021
1 parent d9e19f1 commit 7d01c98
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/hotspot/share/gc/g1/g1CollectedHeap.cpp
Expand Up @@ -4347,14 +4347,13 @@ void G1CollectedHeap::free_collection_set(G1CollectionSet* collection_set, G1Eva

class G1FreeHumongousRegionClosure : public HeapRegionClosure {
HeapRegionSet* _proxy_set;
uint _humongous_objects_reclaimed;
uint _humongous_regions_reclaimed;
size_t _freed_bytes;

G1FreeHumongousRegionClosure() :
_proxy_set(NULL), _humongous_objects_reclaimed(0), _humongous_regions_reclaimed(0), _freed_bytes(0) {
_humongous_objects_reclaimed(0), _humongous_regions_reclaimed(0), _freed_bytes(0) {

virtual bool do_heap_region(HeapRegion* r) {
Expand Down

1 comment on commit 7d01c98

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.