src/hotspot/os_cpu/linux_x86/thread_linux_x86.cpp
changeset 49480 d7df2dd501ce
parent 47799 1772ebf07d1f
equal deleted inserted replaced
49479:5865398439d4 49480:d7df2dd501ce
     1 /*
     1 /*
     2  * Copyright (c) 2003, 2017, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2003, 2018, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.
     7  * published by the Free Software Foundation.
    24 
    24 
    25 #include "precompiled.hpp"
    25 #include "precompiled.hpp"
    26 #include "memory/metaspaceShared.hpp"
    26 #include "memory/metaspaceShared.hpp"
    27 #include "runtime/frame.inline.hpp"
    27 #include "runtime/frame.inline.hpp"
    28 #include "runtime/thread.inline.hpp"
    28 #include "runtime/thread.inline.hpp"
       
    29 
       
    30 frame JavaThread::pd_last_frame() {
       
    31   assert(has_last_Java_frame(), "must have last_Java_sp() when suspended");
       
    32   vmassert(_anchor.last_Java_pc() != NULL, "not walkable");
       
    33   return frame(_anchor.last_Java_sp(), _anchor.last_Java_fp(), _anchor.last_Java_pc());
       
    34 }
    29 
    35 
    30 // For Forte Analyzer AsyncGetCallTrace profiling support - thread is
    36 // For Forte Analyzer AsyncGetCallTrace profiling support - thread is
    31 // currently interrupted by SIGPROF
    37 // currently interrupted by SIGPROF
    32 bool JavaThread::pd_get_top_frame_for_signal_handler(frame* fr_addr,
    38 bool JavaThread::pd_get_top_frame_for_signal_handler(frame* fr_addr,
    33   void* ucontext, bool isInJava) {
    39   void* ucontext, bool isInJava) {