< prev index next >
src/hotspot/share/memory/metadataFactory.hpp
Print this page
@@ -1,7 +1,7 @@
/*
- * Copyright (c) 2010, 2017, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2010, 2018, 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.
@@ -47,11 +47,11 @@
}
return array;
}
template <typename T>
- static void free_array(ClassLoaderData* loader_data, Array<T>* data) {
+ static void free_array(ClassLoaderData* loader_data, const Array<T>* data) {
if (data != NULL) {
assert(loader_data != NULL, "shouldn't pass null");
assert(!data->is_shared(), "cannot deallocate array in shared spaces");
int size = data->size();
loader_data->metaspace_non_null()->deallocate((MetaWord*)data, size, false);
< prev index next >