src/hotspot/os_cpu/bsd_x86/thread_bsd_x86.hpp
changeset 49480 d7df2dd501ce
parent 47216 71c04702a3d5
child 53244 9807daeb47c4
equal deleted inserted replaced
49479:5865398439d4 49480:d7df2dd501ce
     1 /*
     1 /*
     2  * Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2000, 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.
    28  private:
    28  private:
    29   void pd_initialize() {
    29   void pd_initialize() {
    30     _anchor.clear();
    30     _anchor.clear();
    31   }
    31   }
    32 
    32 
    33   frame pd_last_frame() {
    33   frame pd_last_frame();
    34     assert(has_last_Java_frame(), "must have last_Java_sp() when suspended");
       
    35     vmassert(_anchor.last_Java_pc() != NULL, "not walkable");
       
    36     return frame(_anchor.last_Java_sp(), _anchor.last_Java_fp(), _anchor.last_Java_pc());
       
    37   }
       
    38 
    34 
    39  public:
    35  public:
    40   // Mutators are highly dangerous....
    36   // Mutators are highly dangerous....
    41   intptr_t* last_Java_fp()                       { return _anchor.last_Java_fp(); }
    37   intptr_t* last_Java_fp()                       { return _anchor.last_Java_fp(); }
    42   void  set_last_Java_fp(intptr_t* fp)           { _anchor.set_last_Java_fp(fp);   }
    38   void  set_last_Java_fp(intptr_t* fp)           { _anchor.set_last_Java_fp(fp);   }