n_in_count, n_in_osize, n_in_tsize,
safe_idiv(10*n_in_tsize, n_in_osize),
n_in_sc_count,
- (int) (n_in_tsize / n_in_count));
+ (int) (n_in_tsize / (n_in_count ? n_in_count : 1)));
VG_(message)(Vg_DebugMsg,
" transtab: dumped %'llu (%'llu -> ?" "?) "
"(sectors recycled %'llu)\n",
VG_(printf)( " libhb: %lu entries in vts_set\n",
VG_(sizeFM)( vts_set ) );
+ VG_(printf)("%s","\n");
+ {
+ UInt live = 0;
+ UInt llexit_done = 0;
+ UInt joinedwith_done = 0;
+ UInt llexit_and_joinedwith_done = 0;
+
+ Thread* hgthread = get_admin_threads();
+ tl_assert(hgthread);
+ while (hgthread) {
+ Thr* hbthr = hgthread->hbthr;
+ tl_assert(hbthr);
+ if (hbthr->llexit_done && hbthr->joinedwith_done)
+ llexit_and_joinedwith_done++;
+ else if (hbthr->llexit_done)
+ llexit_done++;
+ else if (hbthr->joinedwith_done)
+ joinedwith_done++;
+ else
+ live++;
+ hgthread = hgthread->admin;
+ }
+ VG_(printf)(" libhb: threads live: %d exit_and_joinedwith %d"
+ " exit %d joinedwith %d\n",
+ live, llexit_and_joinedwith_done,
+ llexit_done, joinedwith_done);
+ }
+
VG_(printf)("%s","\n");
VG_(printf)( " libhb: ctxt__rcdec: 1=%lu(%lu eq), 2=%lu, 3=%lu\n",
stats__ctxt_rcdec1, stats__ctxt_rcdec1_eq,