comparison src/cpu/zero/vm/entryFrame_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.
45 call_wrapper_off = jf_header_words, 45 call_wrapper_off = jf_header_words,
46 header_words 46 header_words
47 }; 47 };
48 48
49 public: 49 public:
50 static EntryFrame *build(ZeroStack* stack, 50 static EntryFrame *build(const intptr_t* parameters,
51 const intptr_t* parameters,
52 int parameter_words, 51 int parameter_words,
53 JavaCallWrapper* call_wrapper); 52 JavaCallWrapper* call_wrapper,
53 TRAPS);
54 public: 54 public:
55 JavaCallWrapper *call_wrapper() const { 55 JavaCallWrapper *call_wrapper() const {
56 return (JavaCallWrapper *) value_of_word(call_wrapper_off); 56 return (JavaCallWrapper *) value_of_word(call_wrapper_off);
57 } 57 }
58 58