hotspot/src/share/vm/runtime/javaCalls.cpp
changeset 46727 6e4a84748e2c
parent 46630 75aa3e39d02c
child 46968 9119841280f4
equal deleted inserted replaced
46726:7801367e3cc9 46727:6e4a84748e2c
    47 #endif
    47 #endif
    48 
    48 
    49 // -----------------------------------------------------
    49 // -----------------------------------------------------
    50 // Implementation of JavaCallWrapper
    50 // Implementation of JavaCallWrapper
    51 
    51 
    52 JavaCallWrapper::JavaCallWrapper(methodHandle callee_method, Handle receiver, JavaValue* result, TRAPS) {
    52 JavaCallWrapper::JavaCallWrapper(const methodHandle& callee_method, Handle receiver, JavaValue* result, TRAPS) {
    53   JavaThread* thread = (JavaThread *)THREAD;
    53   JavaThread* thread = (JavaThread *)THREAD;
    54   bool clear_pending_exception = true;
    54   bool clear_pending_exception = true;
    55 
    55 
    56   guarantee(thread->is_Java_thread(), "crucial check - the VM thread cannot and must not escape to Java code");
    56   guarantee(thread->is_Java_thread(), "crucial check - the VM thread cannot and must not escape to Java code");
    57   assert(!thread->owns_locks(), "must release all locks when leaving VM");
    57   assert(!thread->owns_locks(), "must release all locks when leaving VM");