1967 // }
1968 // _owner = 0x0000000000000000
1969 // _previous_owner_tid = 0
1970 // _recursions = 0
1971 // _EntryList = 0x0000000000000000
1972 // _cxq = 0x0000000000000000
1973 // _succ = 0x0000000000000000
1974 // _Responsible = 0x0000000000000000
1975 // _Spinner = 0
1976 // _SpinDuration = 5000
1977 // _contentions = 0
1978 // _WaitSet = 0x0000700009756248
1979 // _waiters = 1
1980 // _WaitSetLock = 0
1981 // }
1982 //
1983 void ObjectMonitor::print_debug_style_on(outputStream* st) const {
1984 st->print_cr("(ObjectMonitor*) " INTPTR_FORMAT " = {", p2i(this));
1985 st->print_cr(" _header = " INTPTR_FORMAT, header().value());
1986 st->print_cr(" _object = " INTPTR_FORMAT, p2i(_object));
1987 st->print_cr(" _next_om = " INTPTR_FORMAT, p2i(_next_om));
1988 st->print_cr(" _pad_buf0 = {");
1989 st->print_cr(" [0] = '\\0'");
1990 st->print_cr(" ...");
1991 st->print_cr(" [%d] = '\\0'", (int)sizeof(_pad_buf0) - 1);
1992 st->print_cr(" }");
1993 st->print_cr(" _owner = " INTPTR_FORMAT, p2i(_owner));
1994 st->print_cr(" _previous_owner_tid = " JLONG_FORMAT, _previous_owner_tid);
1995 st->print_cr(" _recursions = " INTX_FORMAT, _recursions);
1996 st->print_cr(" _EntryList = " INTPTR_FORMAT, p2i(_EntryList));
1997 st->print_cr(" _cxq = " INTPTR_FORMAT, p2i(_cxq));
1998 st->print_cr(" _succ = " INTPTR_FORMAT, p2i(_succ));
1999 st->print_cr(" _Responsible = " INTPTR_FORMAT, p2i(_Responsible));
2000 st->print_cr(" _Spinner = %d", _Spinner);
2001 st->print_cr(" _SpinDuration = %d", _SpinDuration);
2002 st->print_cr(" _contentions = %d", _contentions);
2003 st->print_cr(" _WaitSet = " INTPTR_FORMAT, p2i(_WaitSet));
2004 st->print_cr(" _waiters = %d", _waiters);
2005 st->print_cr(" _WaitSetLock = %d", _WaitSetLock);
2006 st->print_cr("}");
2007 }
|
1967 // }
1968 // _owner = 0x0000000000000000
1969 // _previous_owner_tid = 0
1970 // _recursions = 0
1971 // _EntryList = 0x0000000000000000
1972 // _cxq = 0x0000000000000000
1973 // _succ = 0x0000000000000000
1974 // _Responsible = 0x0000000000000000
1975 // _Spinner = 0
1976 // _SpinDuration = 5000
1977 // _contentions = 0
1978 // _WaitSet = 0x0000700009756248
1979 // _waiters = 1
1980 // _WaitSetLock = 0
1981 // }
1982 //
1983 void ObjectMonitor::print_debug_style_on(outputStream* st) const {
1984 st->print_cr("(ObjectMonitor*) " INTPTR_FORMAT " = {", p2i(this));
1985 st->print_cr(" _header = " INTPTR_FORMAT, header().value());
1986 st->print_cr(" _object = " INTPTR_FORMAT, p2i(_object));
1987 st->print_cr(" _next_om = " INTPTR_FORMAT, p2i(Atomic::load(&_next_om)));
1988 st->print_cr(" _pad_buf0 = {");
1989 st->print_cr(" [0] = '\\0'");
1990 st->print_cr(" ...");
1991 st->print_cr(" [%d] = '\\0'", (int)sizeof(_pad_buf0) - 1);
1992 st->print_cr(" }");
1993 st->print_cr(" _owner = " INTPTR_FORMAT, p2i(_owner));
1994 st->print_cr(" _previous_owner_tid = " JLONG_FORMAT, _previous_owner_tid);
1995 st->print_cr(" _recursions = " INTX_FORMAT, _recursions);
1996 st->print_cr(" _EntryList = " INTPTR_FORMAT, p2i(_EntryList));
1997 st->print_cr(" _cxq = " INTPTR_FORMAT, p2i(_cxq));
1998 st->print_cr(" _succ = " INTPTR_FORMAT, p2i(_succ));
1999 st->print_cr(" _Responsible = " INTPTR_FORMAT, p2i(_Responsible));
2000 st->print_cr(" _Spinner = %d", _Spinner);
2001 st->print_cr(" _SpinDuration = %d", _SpinDuration);
2002 st->print_cr(" _contentions = %d", _contentions);
2003 st->print_cr(" _WaitSet = " INTPTR_FORMAT, p2i(_WaitSet));
2004 st->print_cr(" _waiters = %d", _waiters);
2005 st->print_cr(" _WaitSetLock = %d", _WaitSetLock);
2006 st->print_cr("}");
2007 }
|