hotspot/src/share/vm/interpreter/interpreterRuntime.cpp
changeset 46968 9119841280f4
parent 46727 6e4a84748e2c
equal deleted inserted replaced
46953:39063b484ec2 46968:9119841280f4
   206   thread->set_vm_result(obj);
   206   thread->set_vm_result(obj);
   207 IRT_END
   207 IRT_END
   208 
   208 
   209 
   209 
   210 IRT_ENTRY(void, InterpreterRuntime::register_finalizer(JavaThread* thread, oopDesc* obj))
   210 IRT_ENTRY(void, InterpreterRuntime::register_finalizer(JavaThread* thread, oopDesc* obj))
   211   assert(obj->is_oop(), "must be a valid oop");
   211   assert(oopDesc::is_oop(obj), "must be a valid oop");
   212   assert(obj->klass()->has_finalizer(), "shouldn't be here otherwise");
   212   assert(obj->klass()->has_finalizer(), "shouldn't be here otherwise");
   213   InstanceKlass::register_finalizer(instanceOop(obj), CHECK);
   213   InstanceKlass::register_finalizer(instanceOop(obj), CHECK);
   214 IRT_END
   214 IRT_END
   215 
   215 
   216 
   216 
   433     should_repeat = false;
   433     should_repeat = false;
   434 
   434 
   435     // assertions
   435     // assertions
   436 #ifdef ASSERT
   436 #ifdef ASSERT
   437     assert(h_exception.not_null(), "NULL exceptions should be handled by athrow");
   437     assert(h_exception.not_null(), "NULL exceptions should be handled by athrow");
   438     assert(h_exception->is_oop(), "just checking");
       
   439     // Check that exception is a subclass of Throwable, otherwise we have a VerifyError
   438     // Check that exception is a subclass of Throwable, otherwise we have a VerifyError
   440     if (!(h_exception->is_a(SystemDictionary::Throwable_klass()))) {
   439     if (!(h_exception->is_a(SystemDictionary::Throwable_klass()))) {
   441       if (ExitVMOnVerifyError) vm_exit(-1);
   440       if (ExitVMOnVerifyError) vm_exit(-1);
   442       ShouldNotReachHere();
   441       ShouldNotReachHere();
   443     }
   442     }