Skip to content
Permalink
Browse files
8261509: Move per-thread StackWatermark from Thread to JavaThread class
Reviewed-by: eosterlund
  • Loading branch information
zhengyu123 committed Feb 11, 2021
1 parent eef86a8 commit 4a72cea01987c4217e5e43978ce759cdb5c7d5a9
Showing with 5 additions and 6 deletions.
  1. +5 −6 src/hotspot/share/runtime/thread.hpp
@@ -274,12 +274,6 @@ class Thread: public ThreadShadow {
// suspend/resume lock: used for self-suspend
Monitor* _SR_lock;

// Stack watermark barriers.
StackWatermarks _stack_watermarks;

public:
inline StackWatermarks* stack_watermarks() { return &_stack_watermarks; }

protected:
enum SuspendFlags {
// NOTE: avoid using the sign-bit as cc generates different test code
@@ -1061,6 +1055,11 @@ class JavaThread: public Thread {
friend class ThreadWaitTransition;
friend class VM_Exit;

// Stack watermark barriers.
StackWatermarks _stack_watermarks;

public:
inline StackWatermarks* stack_watermarks() { return &_stack_watermarks; }

public:
// Constructor

1 comment on commit 4a72cea

@openjdk-notifier

This comment has been minimized.

Copy link

@openjdk-notifier openjdk-notifier bot commented on 4a72cea Feb 11, 2021

Please sign in to comment.