src/os_cpu/linux_zero/vm/thread_linux_zero.hpp

changeset 1814
f9271ff9d324
parent 1445
354d3184f6b2
child 1860
0c5b3cf3c1f5
     1.1 --- a/src/os_cpu/linux_zero/vm/thread_linux_zero.hpp	Wed Apr 14 15:30:13 2010 -0700
     1.2 +++ b/src/os_cpu/linux_zero/vm/thread_linux_zero.hpp	Thu Apr 15 02:40:12 2010 -0700
     1.3 @@ -1,6 +1,6 @@
     1.4  /*
     1.5   * Copyright 2000-2007 Sun Microsystems, Inc.  All Rights Reserved.
     1.6 - * Copyright 2007, 2008, 2009 Red Hat, Inc.
     1.7 + * Copyright 2007, 2008, 2009, 2010 Red Hat, Inc.
     1.8   * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     1.9   *
    1.10   * This code is free software; you can redistribute it and/or modify it
    1.11 @@ -68,12 +68,13 @@
    1.12  
    1.13   public:
    1.14    void set_last_Java_frame() {
    1.15 -    JavaFrameAnchor *jfa = frame_anchor();
    1.16 -    jfa->set_last_Java_sp((intptr_t *) top_zero_frame());
    1.17 +    set_last_Java_frame(top_zero_frame());
    1.18    }
    1.19    void reset_last_Java_frame() {
    1.20 -    JavaFrameAnchor *jfa = frame_anchor();
    1.21 -    jfa->set_last_Java_sp(NULL);
    1.22 +    set_last_Java_frame(NULL);
    1.23 +  }
    1.24 +  void set_last_Java_frame(ZeroFrame* frame) {
    1.25 +    frame_anchor()->set_last_Java_sp((intptr_t *) frame);
    1.26    }
    1.27  
    1.28   private:

mercurial