8074561: Wrong volatile qualifier for field ClassLoaderDataGraphKlassIteratorAtomic::_next_klass
Reviewed-by: mgerdin, stefank
This commit is contained in:
parent
d0d14d12ca
commit
1a8c911881
@ -902,7 +902,7 @@ Klass* ClassLoaderDataGraphKlassIteratorAtomic::next_klass_in_cldg(Klass* klass)
|
|||||||
}
|
}
|
||||||
|
|
||||||
Klass* ClassLoaderDataGraphKlassIteratorAtomic::next_klass() {
|
Klass* ClassLoaderDataGraphKlassIteratorAtomic::next_klass() {
|
||||||
Klass* head = (Klass*)_next_klass;
|
Klass* head = _next_klass;
|
||||||
|
|
||||||
while (head != NULL) {
|
while (head != NULL) {
|
||||||
Klass* next = next_klass_in_cldg(head);
|
Klass* next = next_klass_in_cldg(head);
|
||||||
|
@ -315,7 +315,7 @@ class ClassLoaderData : public CHeapObj<mtClass> {
|
|||||||
|
|
||||||
// An iterator that distributes Klasses to parallel worker threads.
|
// An iterator that distributes Klasses to parallel worker threads.
|
||||||
class ClassLoaderDataGraphKlassIteratorAtomic : public StackObj {
|
class ClassLoaderDataGraphKlassIteratorAtomic : public StackObj {
|
||||||
volatile Klass* _next_klass;
|
Klass* volatile _next_klass;
|
||||||
public:
|
public:
|
||||||
ClassLoaderDataGraphKlassIteratorAtomic();
|
ClassLoaderDataGraphKlassIteratorAtomic();
|
||||||
Klass* next_klass();
|
Klass* next_klass();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user