equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. |
7 * published by the Free Software Foundation. |
241 static MetaWord* allocate(ClassLoaderData* loader_data, size_t word_size, |
241 static MetaWord* allocate(ClassLoaderData* loader_data, size_t word_size, |
242 bool read_only, MetaspaceObj::Type type, TRAPS); |
242 bool read_only, MetaspaceObj::Type type, TRAPS); |
243 void deallocate(MetaWord* ptr, size_t byte_size, bool is_class); |
243 void deallocate(MetaWord* ptr, size_t byte_size, bool is_class); |
244 |
244 |
245 static bool contains(const void* ptr); |
245 static bool contains(const void* ptr); |
|
246 static bool contains_non_shared(const void* ptr); |
246 |
247 |
247 void dump(outputStream* const out) const; |
248 void dump(outputStream* const out) const; |
248 |
249 |
249 // Free empty virtualspaces |
250 // Free empty virtualspaces |
250 static void purge(MetadataType mdtype); |
251 static void purge(MetadataType mdtype); |