Mercurial > hg > graal-jvmci-8
comparison src/cpu/zero/vm/interpreterFrame_zero.hpp @ 1379:f9271ff9d324
6941224: Improved stack overflow handling for Zero
Summary: Adding stack overflow checking to Shark brought to light a bunch of deficiencies in Zero's stack overflow code.
Reviewed-by: twisti
Contributed-by: Gary Benson <gbenson@redhat.com>
author | twisti |
---|---|
date | Thu, 15 Apr 2010 02:40:12 -0700 |
parents | 354d3184f6b2 |
children | c18cbe5936b8 |
comparison
equal
deleted
inserted
replaced
1377:ef74d6d1ac1e | 1379:f9271ff9d324 |
---|---|
1 /* | 1 /* |
2 * Copyright 2003-2007 Sun Microsystems, Inc. All Rights Reserved. | 2 * Copyright 2003-2007 Sun Microsystems, Inc. All Rights Reserved. |
3 * Copyright 2008 Red Hat, Inc. | 3 * Copyright 2008, 2010 Red Hat, Inc. |
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 |
8 * published by the Free Software Foundation. | 8 * published by the Free Software Foundation. |
53 wordSize) >> LogBytesPerWord) - 1, | 53 wordSize) >> LogBytesPerWord) - 1, |
54 header_words | 54 header_words |
55 }; | 55 }; |
56 | 56 |
57 public: | 57 public: |
58 static InterpreterFrame *build(ZeroStack* stack, | 58 static InterpreterFrame *build(const methodOop method, TRAPS); |
59 const methodOop method, | 59 static InterpreterFrame *build(int size, TRAPS); |
60 JavaThread* thread); | |
61 static InterpreterFrame *build(ZeroStack* stack, int size); | |
62 | 60 |
63 public: | 61 public: |
64 interpreterState interpreter_state() const { | 62 interpreterState interpreter_state() const { |
65 return (interpreterState) addr_of_word(istate_off); | 63 return (interpreterState) addr_of_word(istate_off); |
66 } | 64 } |