comparison src/share/vm/runtime/sharedRuntime.cpp @ 14309:63a4eb8bcd23

8025856: Fix typos in the GC code Summary: Fix about 440 typos in comments in the VM code Reviewed-by: mgerdin, tschatzl, coleenp, kmo, jcoomes
author jwilhelm
date Thu, 23 Jan 2014 14:47:23 +0100
parents 7c0122ed05fb
children e6195383bcaf 8a9bb7821e28
comparison
equal deleted inserted replaced
14308:870aedf4ba4f 14309:63a4eb8bcd23
470 470
471 JRT_LEAF(jdouble, SharedRuntime::l2d(jlong x)) 471 JRT_LEAF(jdouble, SharedRuntime::l2d(jlong x))
472 return (jdouble)x; 472 return (jdouble)x;
473 JRT_END 473 JRT_END
474 474
475 // Exception handling accross interpreter/compiler boundaries 475 // Exception handling across interpreter/compiler boundaries
476 // 476 //
477 // exception_handler_for_return_address(...) returns the continuation address. 477 // exception_handler_for_return_address(...) returns the continuation address.
478 // The continuation address is the entry point of the exception handler of the 478 // The continuation address is the entry point of the exception handler of the
479 // previous frame depending on the return address. 479 // previous frame depending on the return address.
480 480
692 HandlerTableEntry *t = table.entry_for(catch_pco, handler_bci, scope_depth); 692 HandlerTableEntry *t = table.entry_for(catch_pco, handler_bci, scope_depth);
693 if (t == NULL && (nm->is_compiled_by_c1() || handler_bci != -1)) { 693 if (t == NULL && (nm->is_compiled_by_c1() || handler_bci != -1)) {
694 // Allow abbreviated catch tables. The idea is to allow a method 694 // Allow abbreviated catch tables. The idea is to allow a method
695 // to materialize its exceptions without committing to the exact 695 // to materialize its exceptions without committing to the exact
696 // routing of exceptions. In particular this is needed for adding 696 // routing of exceptions. In particular this is needed for adding
697 // a synthethic handler to unlock monitors when inlining 697 // a synthetic handler to unlock monitors when inlining
698 // synchonized methods since the unlock path isn't represented in 698 // synchronized methods since the unlock path isn't represented in
699 // the bytecodes. 699 // the bytecodes.
700 t = table.entry_for(catch_pco, -1, 0); 700 t = table.entry_for(catch_pco, -1, 0);
701 } 701 }
702 702
703 #ifdef COMPILER1 703 #ifdef COMPILER1
817 if (cb == NULL) return NULL; 817 if (cb == NULL) return NULL;
818 818
819 // Exception happened in CodeCache. Must be either: 819 // Exception happened in CodeCache. Must be either:
820 // 1. Inline-cache check in C2I handler blob, 820 // 1. Inline-cache check in C2I handler blob,
821 // 2. Inline-cache check in nmethod, or 821 // 2. Inline-cache check in nmethod, or
822 // 3. Implict null exception in nmethod 822 // 3. Implicit null exception in nmethod
823 823
824 if (!cb->is_nmethod()) { 824 if (!cb->is_nmethod()) {
825 bool is_in_blob = cb->is_adapter_blob() || cb->is_method_handles_adapter_blob(); 825 bool is_in_blob = cb->is_adapter_blob() || cb->is_method_handles_adapter_blob();
826 if (!is_in_blob) { 826 if (!is_in_blob) {
827 cb->print(); 827 cb->print();
2848 // 2848 //
2849 // This code is used convert interpreter frames into compiled frames. It is 2849 // This code is used convert interpreter frames into compiled frames. It is
2850 // called from very start of a compiled OSR nmethod. A temp array is 2850 // called from very start of a compiled OSR nmethod. A temp array is
2851 // allocated to hold the interesting bits of the interpreter frame. All 2851 // allocated to hold the interesting bits of the interpreter frame. All
2852 // active locks are inflated to allow them to move. The displaced headers and 2852 // active locks are inflated to allow them to move. The displaced headers and
2853 // active interpeter locals are copied into the temp buffer. Then we return 2853 // active interpreter locals are copied into the temp buffer. Then we return
2854 // back to the compiled code. The compiled code then pops the current 2854 // back to the compiled code. The compiled code then pops the current
2855 // interpreter frame off the stack and pushes a new compiled frame. Then it 2855 // interpreter frame off the stack and pushes a new compiled frame. Then it
2856 // copies the interpreter locals and displaced headers where it wants. 2856 // copies the interpreter locals and displaced headers where it wants.
2857 // Finally it calls back to free the temp buffer. 2857 // Finally it calls back to free the temp buffer.
2858 // 2858 //