src/share/vm/classfile/classLoaderData.cpp

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

*** 900,910 **** return next; } Klass* ClassLoaderDataGraphKlassIteratorAtomic::next_klass() { ! Klass* head = (Klass*)_next_klass; while (head != NULL) { Klass* next = next_klass_in_cldg(head); Klass* old_head = (Klass*)Atomic::cmpxchg_ptr(next, &_next_klass, head); --- 900,910 ---- return next; } Klass* ClassLoaderDataGraphKlassIteratorAtomic::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);