src/hotspot/os_cpu/linux_ppc/thread_linux_ppc.hpp
changeset 49480 d7df2dd501ce
parent 47216 71c04702a3d5
child 50160 dc18db671651
equal deleted inserted replaced
49479:5865398439d4 49480:d7df2dd501ce
     1 /*
     1 /*
     2  * Copyright (c) 2000, 2017, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2000, 2018, Oracle and/or its affiliates. All rights reserved.
     3  * Copyright (c) 2012, 2013 SAP SE. All rights reserved.
     3  * Copyright (c) 2012, 2013 SAP SE. All rights reserved.
     4  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     5  *
     5  *
     6  * This code is free software; you can redistribute it and/or modify it
     6  * This code is free software; you can redistribute it and/or modify it
     7  * under the terms of the GNU General Public License version 2 only, as
     7  * under the terms of the GNU General Public License version 2 only, as
    31   void pd_initialize() {
    31   void pd_initialize() {
    32     _anchor.clear();
    32     _anchor.clear();
    33   }
    33   }
    34 
    34 
    35   // The `last' frame is the youngest Java frame on the thread's stack.
    35   // The `last' frame is the youngest Java frame on the thread's stack.
    36   frame pd_last_frame() {
    36   frame pd_last_frame();
    37     assert(has_last_Java_frame(), "must have last_Java_sp() when suspended");
       
    38 
       
    39     intptr_t* sp = last_Java_sp();
       
    40     address pc = _anchor.last_Java_pc();
       
    41 
       
    42     // Last_Java_pc ist not set, if we come here from compiled code.
       
    43     if (pc == NULL) {
       
    44       pc = (address) *(sp + 2);
       
    45     }
       
    46 
       
    47     return frame(sp, pc);
       
    48   }
       
    49 
    37 
    50  public:
    38  public:
    51 
    39 
    52   void set_base_of_stack_pointer(intptr_t* base_sp) {}
    40   void set_base_of_stack_pointer(intptr_t* base_sp) {}
    53   intptr_t* base_of_stack_pointer() { return NULL; }
    41   intptr_t* base_of_stack_pointer() { return NULL; }