Print this page


Split Close
Expand all
Collapse all
          --- old/src/cpu/sparc/vm/stubGenerator_sparc.cpp
          +++ new/src/cpu/sparc/vm/stubGenerator_sparc.cpp
↓ open down ↓ 371 lines elided ↑ open up ↑
 372  372      }
 373  373  #endif
 374  374  
 375  375      // compute exception handler into handler_reg
 376  376      __ get_thread();
 377  377      __ ld_ptr(exception_addr, Oexception);
 378  378      __ verify_oop(Oexception);
 379  379      __ save_frame(0);             // compensates for compiler weakness
 380  380      __ add(O7->after_save(), frame::pc_return_offset, Lscratch); // save the issuing PC
 381  381      BLOCK_COMMENT("call exception_handler_for_return_address");
 382      -    __ call_VM_leaf(L7_thread_cache, CAST_FROM_FN_PTR(address, SharedRuntime::exception_handler_for_return_address), Lscratch);
      382 +    __ call_VM_leaf(L7_thread_cache, CAST_FROM_FN_PTR(address, SharedRuntime::exception_handler_for_return_address), G2_thread, Lscratch);
 383  383      __ mov(O0, handler_reg);
 384  384      __ restore();                 // compensates for compiler weakness
 385  385  
 386  386      __ ld_ptr(exception_addr, Oexception);
 387  387      __ add(O7, frame::pc_return_offset, Oissuing_pc); // save the issuing PC
 388  388  
 389  389  #ifdef ASSERT
 390  390      // make sure exception is set
 391  391      { Label L;
 392  392        __ br_notnull(Oexception, false, Assembler::pt, L);
↓ open down ↓ 2551 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX