hotspot/src/os/solaris/vm/osThread_solaris.hpp
changeset 23443 15e8ed68f73a
parent 18025 b7bcf7497f93
child 23865 ba4aeedb2a9f
equal deleted inserted replaced
23442:be6bd2c1f2a8 23443:15e8ed68f73a
     1 /*
     1 /*
     2  * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.
     7  * published by the Free Software Foundation.
    80  public:
    80  public:
    81   ucontext_t* ucontext() const { return _ucontext; }
    81   ucontext_t* ucontext() const { return _ucontext; }
    82   void set_ucontext(ucontext_t* ptr) { _ucontext = ptr; }
    82   void set_ucontext(ucontext_t* ptr) { _ucontext = ptr; }
    83   static void SR_handler(Thread* thread, ucontext_t* uc);
    83   static void SR_handler(Thread* thread, ucontext_t* uc);
    84 
    84 
    85  // ***************************************************************
       
    86  // java.lang.Thread.interrupt state.
       
    87  // ***************************************************************
       
    88 
       
    89  private:
       
    90 
       
    91   JavaThreadState      _saved_interrupt_thread_state;       // the thread state before a system call -- restored afterward
       
    92 
       
    93  public:
       
    94 
       
    95 
       
    96   JavaThreadState   saved_interrupt_thread_state()                              { return _saved_interrupt_thread_state; }
       
    97   void              set_saved_interrupt_thread_state(JavaThreadState state)     { _saved_interrupt_thread_state = state; }
       
    98 
       
    99   static void       handle_spinlock_contention(int tries);                      // Used for thread local eden locking
    85   static void       handle_spinlock_contention(int tries);                      // Used for thread local eden locking
   100 
    86 
   101   // ***************************************************************
    87   // ***************************************************************
   102   // Platform dependent initialization and cleanup
    88   // Platform dependent initialization and cleanup
   103   // ***************************************************************
    89   // ***************************************************************