--- old/src/hotspot/share/memory/metadataFactory.hpp 2018-08-06 13:58:46.350837651 -0700 +++ new/src/hotspot/share/memory/metadataFactory.hpp 2018-08-06 13:58:46.006824685 -0700 @@ -1,5 +1,5 @@ /* - * 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 @@ -49,7 +49,7 @@ } template - static void free_array(ClassLoaderData* loader_data, Array* data) { + static void free_array(ClassLoaderData* loader_data, const Array* data) { if (data != NULL) { assert(loader_data != NULL, "shouldn't pass null"); assert(!data->is_shared(), "cannot deallocate array in shared spaces");