equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 1999, 2013, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1999, 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. |
26 #define OS_CPU_SOLARIS_X86_VM_THREAD_SOLARIS_X86_HPP |
26 #define OS_CPU_SOLARIS_X86_VM_THREAD_SOLARIS_X86_HPP |
27 |
27 |
28 private: |
28 private: |
29 void pd_initialize() { _anchor.clear(); } |
29 void pd_initialize() { _anchor.clear(); } |
30 |
30 |
31 frame pd_last_frame() { |
31 frame pd_last_frame(); |
32 assert(has_last_Java_frame(), "must have last_Java_sp() when suspended"); |
|
33 vmassert(_anchor.last_Java_pc() != NULL, "not walkable"); |
|
34 return frame(_anchor.last_Java_sp(), _anchor.last_Java_fp(), _anchor.last_Java_pc()); |
|
35 } |
|
36 |
32 |
37 public: |
33 public: |
38 // Mutators are highly dangerous.... |
34 // Mutators are highly dangerous.... |
39 intptr_t* last_Java_fp() { return _anchor.last_Java_fp(); } |
35 intptr_t* last_Java_fp() { return _anchor.last_Java_fp(); } |
40 void set_last_Java_fp(intptr_t* fp) { _anchor.set_last_Java_fp(fp); } |
36 void set_last_Java_fp(intptr_t* fp) { _anchor.set_last_Java_fp(fp); } |