src/hotspot/share/runtime/sharedRuntime.cpp
changeset 51267 2cd8bbccbd2d
parent 50761 cb07f4b539fc
child 51446 0fc5fb135f2d
equal deleted inserted replaced
51266:f8696e0ab9b7 51267:2cd8bbccbd2d
  2861   // Lock and unlock a critical section to give the system a chance to block
  2861   // Lock and unlock a critical section to give the system a chance to block
  2862   GCLocker::lock_critical(thread);
  2862   GCLocker::lock_critical(thread);
  2863   GCLocker::unlock_critical(thread);
  2863   GCLocker::unlock_critical(thread);
  2864 JRT_END
  2864 JRT_END
  2865 
  2865 
       
  2866 JRT_LEAF(oopDesc*, SharedRuntime::pin_object(JavaThread* thread, oopDesc* obj))
       
  2867   assert(Universe::heap()->supports_object_pinning(), "Why we are here?");
       
  2868   assert(obj != NULL, "Should not be null");
       
  2869   oop o(obj);
       
  2870   o = Universe::heap()->pin_object(thread, o);
       
  2871   assert(o != NULL, "Should not be null");
       
  2872   return o;
       
  2873 JRT_END
       
  2874 
       
  2875 JRT_LEAF(void, SharedRuntime::unpin_object(JavaThread* thread, oopDesc* obj))
       
  2876   assert(Universe::heap()->supports_object_pinning(), "Why we are here?");
       
  2877   assert(obj != NULL, "Should not be null");
       
  2878   oop o(obj);
       
  2879   Universe::heap()->unpin_object(thread, o);
       
  2880 JRT_END
       
  2881 
  2866 // -------------------------------------------------------------------------
  2882 // -------------------------------------------------------------------------
  2867 // Java-Java calling convention
  2883 // Java-Java calling convention
  2868 // (what you use when Java calls Java)
  2884 // (what you use when Java calls Java)
  2869 
  2885 
  2870 //------------------------------name_for_receiver----------------------------------
  2886 //------------------------------name_for_receiver----------------------------------