mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-18 01:54:47 +02:00
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:
parent
a890eee817
commit
f979b6f8f6
3 changed files with 21 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue