6679708: No_Safepoint_Verifier and BacktraceBuilder have uninitialized fields

Fix or remove uninitialized fields

Reviewed-by: kvn, rasbold
This commit is contained in:
Tom Rodriguez 2008-03-26 12:25:06 -07:00
parent 446895de2d
commit 50bc5573a8
2 changed files with 4 additions and 5 deletions

View File

@ -1015,7 +1015,6 @@ class BacktraceBuilder: public StackObj {
typeArrayOop _bcis;
int _index;
bool _dirty;
bool _done;
No_Safepoint_Verifier _nsv;
public:
@ -1029,12 +1028,10 @@ class BacktraceBuilder: public StackObj {
};
// constructor for new backtrace
BacktraceBuilder(TRAPS): _methods(NULL), _bcis(NULL), _head(NULL) {
BacktraceBuilder(TRAPS): _methods(NULL), _bcis(NULL), _head(NULL), _dirty(false) {
expand(CHECK);
_backtrace = _head;
_index = 0;
_dirty = false;
_done = false;
}
void flush() {

View File

@ -184,7 +184,9 @@ class No_Safepoint_Verifier : public No_GC_Verifier {
Thread *_thread;
public:
#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();
if (_activated) {
_thread->_allow_allocation_count++;