test/hotspot/gtest/threadHelper.inline.hpp
changeset 53105 6ac04cfbefdf
parent 53103 67e3a8b3449c
child 53268 c02949731190
equal deleted inserted replaced
53104:95937fc2a05e 53105:6ac04cfbefdf
    49   Semaphore _ready;
    49   Semaphore _ready;
    50   Semaphore _unblock;
    50   Semaphore _unblock;
    51   VMThreadBlocker() {}
    51   VMThreadBlocker() {}
    52   virtual ~VMThreadBlocker() {}
    52   virtual ~VMThreadBlocker() {}
    53   const char* get_thread_name_string(char* buf, int buflen) const {
    53   const char* get_thread_name_string(char* buf, int buflen) const {
    54     return (char*) "VMThreadBlocker";
    54     return "VMThreadBlocker";
    55   }
    55   }
    56   void run() {
    56   void run() {
    57     this->set_thread_state(_thread_in_vm);
    57     this->set_thread_state(_thread_in_vm);
    58     {
    58     {
    59       MutexLocker ml(Threads_lock);
    59       MutexLocker ml(Threads_lock);
    93     : _post(post) {
    93     : _post(post) {
    94   }
    94   }
    95   virtual ~JavaTestThread() {}
    95   virtual ~JavaTestThread() {}
    96 
    96 
    97   const char* get_thread_name_string(char* buf, int buflen) const {
    97   const char* get_thread_name_string(char* buf, int buflen) const {
    98     return (char*) "JavaTestThread";
    98     return "JavaTestThread";
    99   }
    99   }
   100 
   100 
   101   void pre_run() {
   101   void pre_run() {
   102     this->set_thread_state(_thread_in_vm);
   102     this->set_thread_state(_thread_in_vm);
   103     {
   103     {