Lines Matching defs:thread

54     Thread* thread = Thread::current();
56 return thread->active_handles()->allocate_handle(obj);
63 jobject JNIHandles::make_local(Thread* thread, oop obj) {
68 return thread->active_handles()->allocate_handle(obj);
77 JavaThread* thread = JavaThread::thread_from_jni_environment(env);
79 return thread->active_handles()->allocate_handle(obj);
170 bool JNIHandles::is_local_handle(Thread* thread, jobject handle) {
171 JNIHandleBlock* block = thread->active_handles();
184 // Determine if the handle is somewhere in the current thread's stack.
288 JNIHandleBlock* JNIHandleBlock::allocate_block(Thread* thread) {
289 assert(thread == NULL || thread == Thread::current(), "sanity check");
291 // Check the thread-local free list for a block so we don't
293 if (thread != NULL && thread->free_handle_block() != NULL) {
294 block = thread->free_handle_block();
295 thread->set_free_handle_block(block->_next);
335 void JNIHandleBlock::release_block(JNIHandleBlock* block, Thread* thread) {
336 assert(thread == NULL || thread == Thread::current(), "sanity check");
338 // Put returned block at the beginning of the thread-local free list.
339 // Note that if thread == NULL, we use it as an implicit argument that
342 if (thread != NULL ) {
344 JNIHandleBlock* freelist = thread->free_handle_block();
346 thread->set_free_handle_block(block);
375 release_block(pop_frame_link, thread);
491 Thread* thread = Thread::current();
492 Handle obj_handle(thread, obj);
494 _last->_next = JNIHandleBlock::allocate_block(thread);
560 // This method is not thread-safe, i.e., must be called whule holding a lock on the