src/cpu/sparc/vm/frame_sparc.cpp

changeset 3445
82e5a84b7436
parent 3130
5432047c7db7
child 3451
5dbed2f542ff
     1.1 --- a/src/cpu/sparc/vm/frame_sparc.cpp	Sun Jan 22 14:03:20 2012 -0800
     1.2 +++ b/src/cpu/sparc/vm/frame_sparc.cpp	Tue Jan 24 15:41:17 2012 +0100
     1.3 @@ -1,5 +1,5 @@
     1.4  /*
     1.5 - * Copyright (c) 1997, 2011, Oracle and/or its affiliates. All rights reserved.
     1.6 + * Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved.
     1.7   * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     1.8   *
     1.9   * This code is free software; you can redistribute it and/or modify it
    1.10 @@ -820,11 +820,19 @@
    1.11      values.describe(frame_no, sp() + w, err_msg("register save area word %d", w), 1);
    1.12    }
    1.13  
    1.14 -  if (is_interpreted_frame()) {
    1.15 +  if (is_ricochet_frame()) {
    1.16 +    MethodHandles::RicochetFrame::describe(this, values, frame_no);
    1.17 +  } else if (is_interpreted_frame()) {
    1.18      DESCRIBE_FP_OFFSET(interpreter_frame_d_scratch_fp);
    1.19      DESCRIBE_FP_OFFSET(interpreter_frame_l_scratch_fp);
    1.20      DESCRIBE_FP_OFFSET(interpreter_frame_padding);
    1.21      DESCRIBE_FP_OFFSET(interpreter_frame_oop_temp);
    1.22 +
    1.23 +    // esp, according to Lesp (e.g. not depending on bci), if seems valid
    1.24 +    intptr_t* esp = *interpreter_frame_esp_addr();
    1.25 +    if ((esp >= sp()) && (esp < fp())) {
    1.26 +      values.describe(-1, esp, "*Lesp");
    1.27 +    }
    1.28    }
    1.29  
    1.30    if (!is_compiled_frame()) {
    1.31 @@ -844,4 +852,3 @@
    1.32    // unused... but returns fp() to minimize changes introduced by 7087445
    1.33    return fp();
    1.34  }
    1.35 -

mercurial