src/hotspot/share/gc/g1/sparsePRT.cpp
changeset 58084 cddef3bde924
parent 55510 3e31a8beaae4
child 58679 9c3209ff7550
child 59290 97d13893ec3c
--- a/src/hotspot/share/gc/g1/sparsePRT.cpp	Wed Sep 11 14:16:27 2019 +0200
+++ b/src/hotspot/share/gc/g1/sparsePRT.cpp	Wed Sep 11 14:16:30 2019 +0200
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2001, 2018, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2001, 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
@@ -104,14 +104,8 @@
 }
 
 RSHashTable::~RSHashTable() {
-  if (_entries != NULL) {
-    FREE_C_HEAP_ARRAY(SparsePRTEntry, _entries);
-    _entries = NULL;
-  }
-  if (_buckets != NULL) {
-    FREE_C_HEAP_ARRAY(int, _buckets);
-    _buckets = NULL;
-  }
+  FREE_C_HEAP_ARRAY(SparsePRTEntry, _entries);
+  FREE_C_HEAP_ARRAY(int, _buckets);
 }
 
 void RSHashTable::clear() {