< prev index next >

src/hotspot/share/classfile/classLoaderDataGraph.hpp

Print this page
rev 58565 : 8238358: Implementation of JEP 371: Hidden Classes
Reviewed-by: duke
Contributed-by: mandy.chung@oracle.com, lois.foltan@oracle.com, david.holmes@oracle.com, harold.seigel@oracle.com, serguei.spitsyn@oracle.com, alex.buckley@oracle.com, jamsheed.c.m@oracle.com

*** 1,7 **** /* ! * Copyright (c) 2018, 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. --- 1,7 ---- /* ! * Copyright (c) 2018, 2020, 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.
*** 54,65 **** static bool _metaspace_oom; static volatile size_t _num_instance_classes; static volatile size_t _num_array_classes; ! static ClassLoaderData* add_to_graph(Handle class_loader, bool is_unsafe_anonymous); ! static ClassLoaderData* add(Handle class_loader, bool is_unsafe_anonymous); public: static ClassLoaderData* find_or_create(Handle class_loader); static void clean_module_and_package_info(); static void purge(); --- 54,65 ---- static bool _metaspace_oom; static volatile size_t _num_instance_classes; static volatile size_t _num_array_classes; ! static ClassLoaderData* add_to_graph(Handle class_loader, bool has_class_mirror_holder); ! static ClassLoaderData* add(Handle class_loader, bool has_class_mirror_holder); public: static ClassLoaderData* find_or_create(Handle class_loader); static void clean_module_and_package_info(); static void purge();
*** 74,84 **** static void loaded_cld_do(CLDClosure* cl); // klass do // Walking classes through the ClassLoaderDataGraph include array classes. It also includes // classes that are allocated but not loaded, classes that have errors, and scratch classes // for redefinition. These classes are removed during the next class unloading. ! // Walking the ClassLoaderDataGraph also includes unsafe anonymous classes. static void classes_do(KlassClosure* klass_closure); static void classes_do(void f(Klass* const)); static void methods_do(void f(Method*)); static void modules_do(void f(ModuleEntry*)); static void modules_unloading_do(void f(ModuleEntry*)); --- 74,84 ---- static void loaded_cld_do(CLDClosure* cl); // klass do // Walking classes through the ClassLoaderDataGraph include array classes. It also includes // classes that are allocated but not loaded, classes that have errors, and scratch classes // for redefinition. These classes are removed during the next class unloading. ! // Walking the ClassLoaderDataGraph also includes hidden and unsafe anonymous classes. static void classes_do(KlassClosure* klass_closure); static void classes_do(void f(Klass* const)); static void methods_do(void f(Method*)); static void modules_do(void f(ModuleEntry*)); static void modules_unloading_do(void f(ModuleEntry*));
< prev index next >