hotspot/src/share/vm/runtime/safepoint.cpp
changeset 46968 9119841280f4
parent 46702 13ae789b982e
equal deleted inserted replaced
46953:39063b484ec2 46968:9119841280f4
  1102     if (return_oop) {
  1102     if (return_oop) {
  1103       // The oop result has been saved on the stack together with all
  1103       // The oop result has been saved on the stack together with all
  1104       // the other registers. In order to preserve it over GCs we need
  1104       // the other registers. In order to preserve it over GCs we need
  1105       // to keep it in a handle.
  1105       // to keep it in a handle.
  1106       oop result = caller_fr.saved_oop_result(&map);
  1106       oop result = caller_fr.saved_oop_result(&map);
  1107       assert(result == NULL || result->is_oop(), "must be oop");
  1107       assert(oopDesc::is_oop_or_null(result), "must be oop");
  1108       return_value = Handle(thread(), result);
  1108       return_value = Handle(thread(), result);
  1109       assert(Universe::heap()->is_in_or_null(result), "must be heap pointer");
  1109       assert(Universe::heap()->is_in_or_null(result), "must be heap pointer");
  1110     }
  1110     }
  1111 
  1111 
  1112     // Block the thread
  1112     // Block the thread