8218151: Simplify JavaThread::thread_state definition

Reviewed-by: stefank, dholmes, kbarrett
This commit is contained in:
Aleksey Shipilev 2019-02-01 16:03:16 +01:00
parent 8f65fa9303
commit 5ce7eb34e4
2 changed files with 12 additions and 9 deletions

View file

@ -1280,15 +1280,8 @@ class JavaThread: public Thread {
address last_Java_pc(void) { return _anchor.last_Java_pc(); }
// Safepoint support
#if !(defined(PPC64) || defined(AARCH64))
JavaThreadState thread_state() const { return _thread_state; }
void set_thread_state(JavaThreadState s) { _thread_state = s; }
#else
// Use membars when accessing volatile _thread_state. See
// Threads::create_vm() for size checks.
inline JavaThreadState thread_state() const;
inline void set_thread_state(JavaThreadState s);
#endif
inline ThreadSafepointState* safepoint_state() const;
inline void set_safepoint_state(ThreadSafepointState* state);
inline bool is_at_poll_safepoint();