< prev index next >

src/hotspot/share/memory/metaspaceTracer.cpp

Print this page
rev 57511 : [mq]: metaspace-improvement

*** 41,66 **** } void MetaspaceTracer::report_metaspace_allocation_failure(ClassLoaderData *cld, size_t word_size, MetaspaceObj::Type objtype, ! Metaspace::MetadataType mdtype) const { send_allocation_failure_event<EventMetaspaceAllocationFailure>(cld, word_size, objtype, mdtype); } void MetaspaceTracer::report_metadata_oom(ClassLoaderData *cld, size_t word_size, MetaspaceObj::Type objtype, ! Metaspace::MetadataType mdtype) const { send_allocation_failure_event<EventMetaspaceOOM>(cld, word_size, objtype, mdtype); } template <typename E> void MetaspaceTracer::send_allocation_failure_event(ClassLoaderData *cld, size_t word_size, MetaspaceObj::Type objtype, ! Metaspace::MetadataType mdtype) const { E event; if (event.should_commit()) { event.set_classLoader(cld); if (cld->is_unsafe_anonymous()) { event.set_unsafeAnonymousClassLoader(true); --- 41,66 ---- } void MetaspaceTracer::report_metaspace_allocation_failure(ClassLoaderData *cld, size_t word_size, MetaspaceObj::Type objtype, ! metaspace::MetadataType mdtype) const { send_allocation_failure_event<EventMetaspaceAllocationFailure>(cld, word_size, objtype, mdtype); } void MetaspaceTracer::report_metadata_oom(ClassLoaderData *cld, size_t word_size, MetaspaceObj::Type objtype, ! metaspace::MetadataType mdtype) const { send_allocation_failure_event<EventMetaspaceOOM>(cld, word_size, objtype, mdtype); } template <typename E> void MetaspaceTracer::send_allocation_failure_event(ClassLoaderData *cld, size_t word_size, MetaspaceObj::Type objtype, ! metaspace::MetadataType mdtype) const { E event; if (event.should_commit()) { event.set_classLoader(cld); if (cld->is_unsafe_anonymous()) { event.set_unsafeAnonymousClassLoader(true);
< prev index next >