12 * version 2 for more details (a copy is included in the LICENSE file that
13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 *
23 */
24
25 #include "precompiled.hpp"
26 #include "classfile/classFileParser.hpp"
27 #include "classfile/classFileStream.hpp"
28 #include "classfile/classLoader.hpp"
29 #include "classfile/classLoaderData.hpp"
30 #include "classfile/classLoaderData.inline.hpp"
31 #include "classfile/klassFactory.hpp"
32 #include "classfile/sharedClassUtil.hpp"
33 #include "memory/metaspaceShared.hpp"
34 #include "memory/resourceArea.hpp"
35 #include "prims/jvmtiEnvBase.hpp"
36 #include "prims/jvmtiRedefineClasses.hpp"
37 #include "runtime/handles.inline.hpp"
38 #include "trace/traceMacros.hpp"
39
40 // called during initial loading of a shared class
41 InstanceKlass* KlassFactory::check_shared_class_file_load_hook(
42 InstanceKlass* ik,
43 Symbol* class_name,
44 Handle class_loader,
45 Handle protection_domain, TRAPS) {
46 #if INCLUDE_CDS && INCLUDE_JVMTI
47 assert(ik != NULL, "sanity");
48 assert(ik->is_shared(), "expecting a shared class");
49
50 if (JvmtiExport::should_post_class_file_load_hook()) {
51 assert(THREAD->is_Java_thread(), "must be JavaThread");
52
|
12 * version 2 for more details (a copy is included in the LICENSE file that
13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 *
23 */
24
25 #include "precompiled.hpp"
26 #include "classfile/classFileParser.hpp"
27 #include "classfile/classFileStream.hpp"
28 #include "classfile/classLoader.hpp"
29 #include "classfile/classLoaderData.hpp"
30 #include "classfile/classLoaderData.inline.hpp"
31 #include "classfile/klassFactory.hpp"
32 #include "memory/filemap.hpp"
33 #include "memory/metaspaceShared.hpp"
34 #include "memory/resourceArea.hpp"
35 #include "prims/jvmtiEnvBase.hpp"
36 #include "prims/jvmtiRedefineClasses.hpp"
37 #include "runtime/handles.inline.hpp"
38 #include "trace/traceMacros.hpp"
39
40 // called during initial loading of a shared class
41 InstanceKlass* KlassFactory::check_shared_class_file_load_hook(
42 InstanceKlass* ik,
43 Symbol* class_name,
44 Handle class_loader,
45 Handle protection_domain, TRAPS) {
46 #if INCLUDE_CDS && INCLUDE_JVMTI
47 assert(ik != NULL, "sanity");
48 assert(ik->is_shared(), "expecting a shared class");
49
50 if (JvmtiExport::should_post_class_file_load_hook()) {
51 assert(THREAD->is_Java_thread(), "must be JavaThread");
52
|