提交 c4a97731 编写于 作者: N never

6679708: No_Safepoint_Verifier and BacktraceBuilder have uninitialized fields

Summary: fix or remove uninitialized fields
Reviewed-by: kvn, rasbold
上级 0838dcdc
...@@ -1015,7 +1015,6 @@ class BacktraceBuilder: public StackObj { ...@@ -1015,7 +1015,6 @@ class BacktraceBuilder: public StackObj {
typeArrayOop _bcis; typeArrayOop _bcis;
int _index; int _index;
bool _dirty; bool _dirty;
bool _done;
No_Safepoint_Verifier _nsv; No_Safepoint_Verifier _nsv;
public: public:
...@@ -1029,12 +1028,10 @@ class BacktraceBuilder: public StackObj { ...@@ -1029,12 +1028,10 @@ class BacktraceBuilder: public StackObj {
}; };
// constructor for new backtrace // constructor for new backtrace
BacktraceBuilder(TRAPS): _methods(NULL), _bcis(NULL), _head(NULL) { BacktraceBuilder(TRAPS): _methods(NULL), _bcis(NULL), _head(NULL), _dirty(false) {
expand(CHECK); expand(CHECK);
_backtrace = _head; _backtrace = _head;
_index = 0; _index = 0;
_dirty = false;
_done = false;
} }
void flush() { void flush() {
......
...@@ -184,7 +184,9 @@ class No_Safepoint_Verifier : public No_GC_Verifier { ...@@ -184,7 +184,9 @@ class No_Safepoint_Verifier : public No_GC_Verifier {
Thread *_thread; Thread *_thread;
public: public:
#ifdef ASSERT #ifdef ASSERT
No_Safepoint_Verifier(bool activated = true, bool verifygc = true ) : No_GC_Verifier(verifygc) { No_Safepoint_Verifier(bool activated = true, bool verifygc = true ) :
No_GC_Verifier(verifygc),
_activated(activated) {
_thread = Thread::current(); _thread = Thread::current();
if (_activated) { if (_activated) {
_thread->_allow_allocation_count++; _thread->_allow_allocation_count++;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册