hotspot/src/share/vm/runtime/jniHandles.cpp

Print this page

        

*** 171,181 **** // If there is no java frame, then this must be top level code, such // as the java command executable, in which case, this type of handle // is not permitted. return (thr->has_last_Java_frame() && (void*)obj < (void*)thr->stack_base() && ! (void*)obj >= (void*)thr->last_Java_sp()); } bool JNIHandles::is_global_handle(jobject handle) { return _global_handles->chain_contains(handle); --- 171,186 ---- // If there is no java frame, then this must be top level code, such // as the java command executable, in which case, this type of handle // is not permitted. return (thr->has_last_Java_frame() && (void*)obj < (void*)thr->stack_base() && ! #ifdef ZERO ! (void*)obj >= (void*)thr->zero_stack()->sp() ! #else ! (void*)obj >= (void*)thr->last_Java_sp() ! #endif // ZERO ! ); } bool JNIHandles::is_global_handle(jobject handle) { return _global_handles->chain_contains(handle);