src/share/vm/classfile/classLoaderData.cpp

Print this page
rev 7903 : fix volatile qualifier ClassLoaderDataGraphKlassIteratorAtomic::next_klass

@@ -900,11 +900,11 @@
 
   return next;
 }
 
 Klass* ClassLoaderDataGraphKlassIteratorAtomic::next_klass() {
-  Klass* head = (Klass*)_next_klass;
+  Klass* head = _next_klass;
 
   while (head != NULL) {
     Klass* next = next_klass_in_cldg(head);
 
     Klass* old_head = (Klass*)Atomic::cmpxchg_ptr(next, &_next_klass, head);