Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8166501

compilation error in stackwalk.cpp on some gccs

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 9
    • Component/s: core-libs
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b140

      Description

      This should be THREAD in the return statement. It gets a compilation error on my version of gcc.

      diff --git a/src/share/vm/prims/stackwalk.cpp b/src/share/vm/prims/stackwalk.cpp
      --- a/src/share/vm/prims/stackwalk.cpp
      +++ b/src/share/vm/prims/stackwalk.cpp
      @@ -331,10 +331,10 @@
           assert (use_frames_array(mode), "Bad mode for get live frame");
           RegisterMap regMap(jt, true);
           LiveFrameStream stream(jt, &regMap);
      - return fetchFirstBatch(stream, stackStream, mode, skip_frames, frame_count, start_index, frames_array, CHECK_NULL);
      + return fetchFirstBatch(stream, stackStream, mode, skip_frames, frame_count, start_index, frames_array, THREAD);
         } else {
           JavaFrameStream stream(jt, mode);
      - return fetchFirstBatch(stream, stackStream, mode, skip_frames, frame_count, start_index, frames_array, CHECK_NULL);
      + return fetchFirstBatch(stream, stackStream, mode, skip_frames, frame_count, start_index, frames_array, THREAD);
         }
       }

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              bchristi Brent Christian
              Reporter:
              coleenp Coleen Phillimore
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: