diff options
Diffstat (limited to 'src/share/vm/runtime/threadCritical.hpp')
-rw-r--r-- | src/share/vm/runtime/threadCritical.hpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/share/vm/runtime/threadCritical.hpp b/src/share/vm/runtime/threadCritical.hpp index c100b18bc..340c00fa5 100644 --- a/src/share/vm/runtime/threadCritical.hpp +++ b/src/share/vm/runtime/threadCritical.hpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2001, 2002, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2001, 2010, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -22,6 +22,11 @@ * */ +#ifndef SHARE_VM_RUNTIME_THREADCRITICAL_HPP +#define SHARE_VM_RUNTIME_THREADCRITICAL_HPP + +#include "memory/allocation.hpp" + // ThreadCritical is used to protect short non-blocking critical sections. // This class must use no vm facilities that require initialization. // It is used very early in the vm's initialization, in allocation @@ -51,3 +56,5 @@ class ThreadCritical : public StackObj { ThreadCritical(); ~ThreadCritical(); }; + +#endif // SHARE_VM_RUNTIME_THREADCRITICAL_HPP |