< prev index next >

src/hotspot/share/runtime/interfaceSupport.inline.hpp

Print this page
*** 82,11 ***
      assert(thread != NULL, "must be active Java thread");
      assert(thread == Thread::current(), "must be current thread");
    }
  
    static inline void transition_from_java(JavaThread *thread, JavaThreadState to) {
!     assert(thread->thread_state() == _thread_in_Java, "coming from wrong thread state");
      assert(to == _thread_in_vm || to == _thread_in_native, "invalid transition");
      thread->set_thread_state(to);
    }
  
    // We never install asynchronous exceptions when coming (back) in to the runtime
--- 82,11 ---
      assert(thread != NULL, "must be active Java thread");
      assert(thread == Thread::current(), "must be current thread");
    }
  
    static inline void transition_from_java(JavaThread *thread, JavaThreadState to) {
!     assert(thread->thread_state() == _thread_in_Java, "coming from wrong thread state: %s", thread->thread_state_name());
      assert(to == _thread_in_vm || to == _thread_in_native, "invalid transition");
      thread->set_thread_state(to);
    }
  
    // We never install asynchronous exceptions when coming (back) in to the runtime
< prev index next >