提交 df8542c1 编写于 作者: A asiebenborn

8074561: Wrong volatile qualifier for field ClassLoaderDataGraphKlassIteratorAtomic::_next_klass

Reviewed-by: mgerdin, stefank
上级 19334be9
...@@ -882,7 +882,7 @@ Klass* ClassLoaderDataGraphKlassIteratorAtomic::next_klass_in_cldg(Klass* klass) ...@@ -882,7 +882,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);
......
...@@ -307,7 +307,7 @@ class ClassLoaderData : public CHeapObj<mtClass> { ...@@ -307,7 +307,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();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册