예제 #1
0
 static void prim_array_increment_with_loader(Klass* array, ClassLoaderData* loader_data) {
   JvmtiGetLoadedClassesClosure* that = JvmtiGetLoadedClassesClosure::get_this();
   oop class_loader = loader_data->class_loader();
   if (class_loader == JNIHandles::resolve(that->get_initiatingLoader())) {
     that->set_count(that->get_count() + 1);
   }
 }
예제 #2
0
 static void increment_with_loader(klassOop k, oop loader) {
   JvmtiGetLoadedClassesClosure* that = JvmtiGetLoadedClassesClosure::get_this();
   if (loader == JNIHandles::resolve(that->get_initiatingLoader())) {
     for (klassOop l = k; l != NULL; l = Klass::cast(l)->array_klass_or_null()) {
       that->set_count(that->get_count() + 1);
     }
   }
 }
예제 #3
0
 static void increment_with_loader(Klass* k, ClassLoaderData* loader_data) {
   JvmtiGetLoadedClassesClosure* that = JvmtiGetLoadedClassesClosure::get_this();
   oop class_loader = loader_data->class_loader();
   if (class_loader == JNIHandles::resolve(that->get_initiatingLoader())) {
     for (Klass* l = k; l != NULL; l = l->array_klass_or_null()) {
       that->set_count(that->get_count() + 1);
     }
   }
 }
예제 #4
0
 // Finally, the static methods that are the callbacks
 static void increment(klassOop k) {
   JvmtiGetLoadedClassesClosure* that = JvmtiGetLoadedClassesClosure::get_this();
   if (that->get_initiatingLoader() == NULL) {
     for (klassOop l = k; l != NULL; l = Klass::cast(l)->array_klass_or_null()) {
       that->set_count(that->get_count() + 1);
     }
   } else if (k != NULL) {
     // if initiating loader not null, just include the instance with 1 dimension
     that->set_count(that->get_count() + 1);
   }
 }
예제 #5
0
 static void add_with_loader(klassOop k, oop loader) {
   JvmtiGetLoadedClassesClosure* that = JvmtiGetLoadedClassesClosure::get_this();
   if (that->available()) {
     if (loader == JNIHandles::resolve(that->get_initiatingLoader())) {
       for (klassOop l = k; l != NULL; l = Klass::cast(l)->array_klass_or_null()) {
         oop mirror = Klass::cast(l)->java_mirror();
         that->set_element(that->get_index(), mirror);
         that->set_index(that->get_index() + 1);
       }
     }
   }
 }
예제 #6
0
 static void add_with_loader(Klass* k, ClassLoaderData* loader_data) {
   JvmtiGetLoadedClassesClosure* that = JvmtiGetLoadedClassesClosure::get_this();
   if (that->available()) {
     oop class_loader = loader_data->class_loader();
     if (class_loader == JNIHandles::resolve(that->get_initiatingLoader())) {
       for (Klass* l = k; l != NULL; l = l->array_klass_or_null()) {
         oop mirror = l->java_mirror();
         that->set_element(that->get_index(), mirror);
         that->set_index(that->get_index() + 1);
       }
     }
   }
 }
예제 #7
0
 static void add(klassOop k) {
   JvmtiGetLoadedClassesClosure* that = JvmtiGetLoadedClassesClosure::get_this();
   if (that->available()) {
     if (that->get_initiatingLoader() == NULL) {
       for (klassOop l = k; l != NULL; l = Klass::cast(l)->array_klass_or_null()) {
         oop mirror = Klass::cast(l)->java_mirror();
         that->set_element(that->get_index(), mirror);
         that->set_index(that->get_index() + 1);
       }
     } else if (k != NULL) {
       // if initiating loader not null, just include the instance with 1 dimension
       oop mirror = Klass::cast(k)->java_mirror();
       that->set_element(that->get_index(), mirror);
       that->set_index(that->get_index() + 1);
     }
   }
 }
예제 #8
0
 static void prim_array_increment_with_loader(klassOop array, oop loader) {
   JvmtiGetLoadedClassesClosure* that = JvmtiGetLoadedClassesClosure::get_this();
   if (loader == JNIHandles::resolve(that->get_initiatingLoader())) {
     that->set_count(that->get_count() + 1);
   }
 }