src/hotspot/share/prims/stackwalk.cpp
changeset 49480 d7df2dd501ce
parent 47818 2f6ab27efb60
child 49658 8237a91c1cca
equal deleted inserted replaced
49479:5865398439d4 49480:d7df2dd501ce
     1 /*
     1 /*
     2  * Copyright (c) 2015, 2017, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2015, 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.
    33 #include "oops/objArrayOop.inline.hpp"
    33 #include "oops/objArrayOop.inline.hpp"
    34 #include "prims/stackwalk.hpp"
    34 #include "prims/stackwalk.hpp"
    35 #include "runtime/globals.hpp"
    35 #include "runtime/globals.hpp"
    36 #include "runtime/handles.inline.hpp"
    36 #include "runtime/handles.inline.hpp"
    37 #include "runtime/javaCalls.hpp"
    37 #include "runtime/javaCalls.hpp"
    38 #include "runtime/vframe.hpp"
    38 #include "runtime/vframe.inline.hpp"
    39 #include "utilities/globalDefinitions.hpp"
    39 #include "utilities/globalDefinitions.hpp"
    40 
    40 
    41 // setup and cleanup actions
    41 // setup and cleanup actions
    42 void BaseFrameStream::setup_magic_on_entry(objArrayHandle frames_array) {
    42 void BaseFrameStream::setup_magic_on_entry(objArrayHandle frames_array) {
    43   frames_array->obj_at_put(magic_pos, _thread->threadObj());
    43   frames_array->obj_at_put(magic_pos, _thread->threadObj());
    61 
    61 
    62 JavaFrameStream::JavaFrameStream(JavaThread* thread, int mode)
    62 JavaFrameStream::JavaFrameStream(JavaThread* thread, int mode)
    63   : BaseFrameStream(thread), _vfst(thread) {
    63   : BaseFrameStream(thread), _vfst(thread) {
    64   _need_method_info = StackWalk::need_method_info(mode);
    64   _need_method_info = StackWalk::need_method_info(mode);
    65 }
    65 }
       
    66 
       
    67 void JavaFrameStream::next() { _vfst.next();}
    66 
    68 
    67 // Returns the BaseFrameStream for the current stack being traversed.
    69 // Returns the BaseFrameStream for the current stack being traversed.
    68 //
    70 //
    69 // Parameters:
    71 // Parameters:
    70 //  thread         Current Java thread.
    72 //  thread         Current Java thread.