hotspot/src/cpu/sparc/vm/sharedRuntime_sparc.cpp
changeset 30244 d4e471395ff5
parent 28947 2ea471384931
child 33160 c59f1676d27e
child 33105 294e48b4f704
equal deleted inserted replaced
30240:a7ba42fa1df6 30244:d4e471395ff5
     1 /*
     1 /*
     2  * Copyright (c) 2003, 2013, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2003, 2015, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.
     7  * published by the Free Software Foundation.
  2662 
  2662 
  2663     // slow case of monitor enter.  Inline a special case of call_VM that
  2663     // slow case of monitor enter.  Inline a special case of call_VM that
  2664     // disallows any pending_exception.
  2664     // disallows any pending_exception.
  2665     __ mov(L3_box, O1);
  2665     __ mov(L3_box, O1);
  2666 
  2666 
       
  2667     // Pass in current thread pointer
       
  2668     __ mov(G2_thread, O2);
       
  2669 
  2667     __ call(CAST_FROM_FN_PTR(address, SharedRuntime::complete_monitor_unlocking_C), relocInfo::runtime_call_type);
  2670     __ call(CAST_FROM_FN_PTR(address, SharedRuntime::complete_monitor_unlocking_C), relocInfo::runtime_call_type);
  2668     __ delayed()->mov(L4, O0);              // Need oop in O0
  2671     __ delayed()->mov(L4, O0);              // Need oop in O0
  2669 
  2672 
  2670     __ restore_thread(L7_thread_cache); // restore G2_thread
  2673     __ restore_thread(L7_thread_cache); // restore G2_thread
  2671 
  2674