src/share/vm/runtime/deoptimization.cpp

changeset 2620
4f148718983e
parent 2508
b92c45f2bc75
child 2868
2e038ad0c1d0
     1.1 --- a/src/share/vm/runtime/deoptimization.cpp	Mon Mar 07 16:03:28 2011 -0500
     1.2 +++ b/src/share/vm/runtime/deoptimization.cpp	Thu Mar 10 17:44:32 2011 +0100
     1.3 @@ -101,9 +101,9 @@
     1.4    _frame_pcs                 = frame_pcs;
     1.5    _register_block            = NEW_C_HEAP_ARRAY(intptr_t, RegisterMap::reg_count * 2);
     1.6    _return_type               = return_type;
     1.7 +  _initial_fp                = 0;
     1.8    // PD (x86 only)
     1.9    _counter_temp              = 0;
    1.10 -  _initial_fp                = 0;
    1.11    _unpack_kind               = 0;
    1.12    _sender_sp_temp            = 0;
    1.13  
    1.14 @@ -459,18 +459,9 @@
    1.15                                        frame_sizes,
    1.16                                        frame_pcs,
    1.17                                        return_type);
    1.18 -#if defined(IA32) || defined(AMD64)
    1.19 -  // We need a way to pass fp to the unpacking code so the skeletal frames
    1.20 -  // come out correct. This is only needed for x86 because of c2 using ebp
    1.21 -  // as an allocatable register. So this update is useless (and harmless)
    1.22 -  // on the other platforms. It would be nice to do this in a different
    1.23 -  // way but even the old style deoptimization had a problem with deriving
    1.24 -  // this value. NEEDS_CLEANUP
    1.25 -  // Note: now that c1 is using c2's deopt blob we must do this on all
    1.26 -  // x86 based platforms
    1.27 -  intptr_t** fp_addr = (intptr_t**) (((address)info) + info->initial_fp_offset_in_bytes());
    1.28 -  *fp_addr = array->sender().fp(); // was adapter_caller
    1.29 -#endif /* IA32 || AMD64 */
    1.30 +  // On some platforms, we need a way to pass fp to the unpacking code
    1.31 +  // so the skeletal frames come out correct.
    1.32 +  info->set_initial_fp((intptr_t) array->sender().fp());
    1.33  
    1.34    if (array->frames() > 1) {
    1.35      if (VerifyStack && TraceDeoptimization) {

mercurial