7006810: G1: Introduce peace-of-mind checking in the Suspendible Thread Set

Add asserts to ensure thread is in the right state.

Reviewed-by: tschatzl, pliden
This commit is contained in:
Joseph Provino 2015-05-08 09:52:51 -04:00
parent a890eee817
commit f979b6f8f6
3 changed files with 21 additions and 1 deletions

View file

@ -190,6 +190,7 @@ Thread::Thread() {
set_stack_size(0);
set_self_raw_id(0);
set_lgrp_id(-1);
DEBUG_ONLY(clear_suspendible_thread();)
// allocated data structures
set_osthread(NULL);