diff -r 9046db64ca39 -r cddef3bde924 src/hotspot/share/gc/z/zArray.inline.hpp --- a/src/hotspot/share/gc/z/zArray.inline.hpp Wed Sep 11 14:16:27 2019 +0200 +++ b/src/hotspot/share/gc/z/zArray.inline.hpp Wed Sep 11 14:16:30 2019 +0200 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2015, 2017, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2015, 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 @@ -36,9 +36,7 @@ template inline ZArray::~ZArray() { - if (_array != NULL) { - FREE_C_HEAP_ARRAY(T, _array); - } + FREE_C_HEAP_ARRAY(T, _array); } template