src/share/vm/runtime/thread.hpp

changeset 2036
126ea7725993
parent 1995
bfc89697cccb
child 2044
f4f596978298
     1.1 --- a/src/share/vm/runtime/thread.hpp	Wed Jul 28 17:57:43 2010 -0400
     1.2 +++ b/src/share/vm/runtime/thread.hpp	Tue Aug 03 08:13:38 2010 -0400
     1.3 @@ -410,9 +410,6 @@
     1.4    // Sweeper support
     1.5    void nmethods_do(CodeBlobClosure* cf);
     1.6  
     1.7 -  // Tells if adr belong to this thread. This is used
     1.8 -  // for checking if a lock is owned by the running thread.
     1.9 -
    1.10    // Used by fast lock support
    1.11    virtual bool is_lock_owned(address adr) const;
    1.12  
    1.13 @@ -609,7 +606,7 @@
    1.14   private:
    1.15    static WatcherThread* _watcher_thread;
    1.16  
    1.17 -  static bool _should_terminate;
    1.18 +  volatile static bool _should_terminate; // updated without holding lock
    1.19   public:
    1.20    enum SomeConstants {
    1.21      delay_interval = 10                          // interrupt delay in milliseconds
    1.22 @@ -839,6 +836,10 @@
    1.23      return (struct JNINativeInterface_ *)_jni_environment.functions;
    1.24    }
    1.25  
    1.26 +  // This function is called at thread creation to allow
    1.27 +  // platform specific thread variables to be initialized.
    1.28 +  void cache_global_variables();
    1.29 +
    1.30    // Executes Shutdown.shutdown()
    1.31    void invoke_shutdown_hooks();
    1.32  

mercurial