1.1 --- a/src/cpu/zero/vm/stack_zero.inline.hpp Tue Nov 23 15:01:43 2010 -0500 1.2 +++ b/src/cpu/zero/vm/stack_zero.inline.hpp Tue Nov 23 13:22:55 2010 -0800 1.3 @@ -1,5 +1,5 @@ 1.4 /* 1.5 - * Copyright (c) 2003, 2007, Oracle and/or its affiliates. All rights reserved. 1.6 + * Copyright (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved. 1.7 * Copyright 2010 Red Hat, Inc. 1.8 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 1.9 * 1.10 @@ -23,6 +23,12 @@ 1.11 * 1.12 */ 1.13 1.14 +#ifndef CPU_ZERO_VM_STACK_ZERO_INLINE_HPP 1.15 +#define CPU_ZERO_VM_STACK_ZERO_INLINE_HPP 1.16 + 1.17 +#include "runtime/thread.hpp" 1.18 +#include "stack_zero.hpp" 1.19 + 1.20 // This function should match SharkStack::CreateStackOverflowCheck 1.21 inline void ZeroStack::overflow_check(int required_words, TRAPS) { 1.22 // Check the Zero stack 1.23 @@ -46,3 +52,5 @@ 1.24 int stack_free = thread->stack_size() - stack_used; 1.25 return stack_free - shadow_pages_size(); 1.26 } 1.27 + 1.28 +#endif // CPU_ZERO_VM_STACK_ZERO_INLINE_HPP