< prev index next >
src/hotspot/share/runtime/thread.hpp
Print this page
*** 1,7 ****
/*
! * Copyright (c) 1997, 2020, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
--- 1,7 ----
/*
! * Copyright (c) 1997, 2019, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*** 1316,1343 ****
private:
// Support for thread handshake operations
HandshakeState _handshake;
public:
void set_handshake_operation(HandshakeOperation* op) {
! _handshake.set_operation(op);
}
bool has_handshake() const {
return _handshake.has_operation();
}
void handshake_process_by_self() {
! _handshake.process_by_self();
}
! bool handshake_try_process(HandshakeOperation* op) {
! return _handshake.try_process(op);
}
#ifdef ASSERT
! Thread* get_active_handshaker() const {
! return _handshake.get_active_handshaker();
}
#endif
// Suspend/resume support for JavaThread
private:
--- 1316,1343 ----
private:
// Support for thread handshake operations
HandshakeState _handshake;
public:
void set_handshake_operation(HandshakeOperation* op) {
! _handshake.set_operation(this, op);
}
bool has_handshake() const {
return _handshake.has_operation();
}
void handshake_process_by_self() {
! _handshake.process_by_self(this);
}
! bool handshake_try_process_by_vmThread() {
! return _handshake.try_process_by_vmThread(this);
}
#ifdef ASSERT
! bool is_vmthread_processing_handshake() const {
! return _handshake.is_vmthread_processing_handshake();
}
#endif
// Suspend/resume support for JavaThread
private:
< prev index next >