--- a/src/hotspot/share/gc/shared/generationCounters.cpp Wed Sep 11 14:16:27 2019 +0200
+++ b/src/hotspot/share/gc/shared/generationCounters.cpp Wed Sep 11 14:16:30 2019 +0200
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2002, 2015, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2002, 2019, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -80,9 +80,7 @@
}
GenerationCounters::~GenerationCounters() {
- if (_name_space != NULL) {
- FREE_C_HEAP_ARRAY(char, _name_space);
- }
+ FREE_C_HEAP_ARRAY(char, _name_space);
}
void GenerationCounters::update_all() {