< prev index next > src/hotspot/share/gc/z/zArray.inline.hpp
Print this page
/*
! * Copyright (c) 2015, 2017, 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
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
/*
! * 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
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
_size(0),
_capacity(0) {}
template <typename T>
inline ZArray<T>::~ZArray() {
! if (_array != NULL) {
- FREE_C_HEAP_ARRAY(T, _array);
- }
}
template <typename T>
inline size_t ZArray<T>::size() const {
return _size;
_size(0),
_capacity(0) {}
template <typename T>
inline ZArray<T>::~ZArray() {
! FREE_C_HEAP_ARRAY(T, _array);
}
template <typename T>
inline size_t ZArray<T>::size() const {
return _size;
< prev index next >