mirror of
https://github.com/openjdk/jdk.git
synced 2026-03-09 07:35:49 +00:00
8379192: Use an initializer list in the ObjectWaiter constructor
Reviewed-by: coleenp, dholmes, aartemov
This commit is contained in:
parent
c9da76bf33
commit
c87ecaddfb
@ -2541,19 +2541,19 @@ bool ObjectMonitor::try_spin(JavaThread* current) {
|
||||
// -----------------------------------------------------------------------------
|
||||
// wait_set management ...
|
||||
|
||||
ObjectWaiter::ObjectWaiter(JavaThread* current) {
|
||||
_next = nullptr;
|
||||
_prev = nullptr;
|
||||
_thread = current;
|
||||
_monitor = nullptr;
|
||||
_notifier_tid = 0;
|
||||
_recursions = 0;
|
||||
TState = TS_RUN;
|
||||
_is_wait = false;
|
||||
_at_reenter = false;
|
||||
_interrupted = false;
|
||||
_do_timed_park = false;
|
||||
_active = false;
|
||||
ObjectWaiter::ObjectWaiter(JavaThread* current)
|
||||
: _next(nullptr),
|
||||
_prev(nullptr),
|
||||
_thread(current),
|
||||
_monitor(nullptr),
|
||||
_notifier_tid(0),
|
||||
_recursions(0),
|
||||
TState(TS_RUN),
|
||||
_is_wait(false),
|
||||
_at_reenter(false),
|
||||
_interrupted(false),
|
||||
_do_timed_park(false),
|
||||
_active(false) {
|
||||
}
|
||||
|
||||
const char* ObjectWaiter::getTStateName(ObjectWaiter::TStates state) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user