src/hotspot/share/runtime/thread.hpp
changeset 54209 a8e7194c2b0d
parent 54205 d9f43dfbe524
child 54259 d25b24c70126
equal deleted inserted replaced
54208:79fcfc6c02e8 54209:a8e7194c2b0d
  1346  private:
  1346  private:
  1347   inline void set_ext_suspended();
  1347   inline void set_ext_suspended();
  1348   inline void clear_ext_suspended();
  1348   inline void clear_ext_suspended();
  1349 
  1349 
  1350  public:
  1350  public:
  1351   void java_suspend(); // higher-level suspension logic called by the public APIs
  1351   void java_suspend();
  1352   void java_resume();  // higher-level resume logic called by the public APIs
  1352   void java_resume();
  1353   int  java_suspend_self(); // low-level self-suspension mechanics
  1353   int  java_suspend_self();
  1354 
  1354 
  1355  private:
       
  1356   // mid-level wrapper around java_suspend_self to set up correct state and
       
  1357   // check for a pending safepoint at the end
       
  1358   void java_suspend_self_with_safepoint_check();
       
  1359 
       
  1360  public:
       
  1361   void check_and_wait_while_suspended() {
  1355   void check_and_wait_while_suspended() {
  1362     assert(JavaThread::current() == this, "sanity check");
  1356     assert(JavaThread::current() == this, "sanity check");
  1363 
  1357 
  1364     bool do_self_suspend;
  1358     bool do_self_suspend;
  1365     do {
  1359     do {