sjohanss@7118: /* sjohanss@7118: * Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved. sjohanss@7118: * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. sjohanss@7118: * sjohanss@7118: * This code is free software; you can redistribute it and/or modify it sjohanss@7118: * under the terms of the GNU General Public License version 2 only, as sjohanss@7118: * published by the Free Software Foundation. sjohanss@7118: * sjohanss@7118: * This code is distributed in the hope that it will be useful, but WITHOUT sjohanss@7118: * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or sjohanss@7118: * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License sjohanss@7118: * version 2 for more details (a copy is included in the LICENSE file that sjohanss@7118: * accompanied this code). sjohanss@7118: * sjohanss@7118: * You should have received a copy of the GNU General Public License version sjohanss@7118: * 2 along with this work; if not, write to the Free Software Foundation, sjohanss@7118: * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. sjohanss@7118: * sjohanss@7118: * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA sjohanss@7118: * or visit www.oracle.com if you need additional information or have any sjohanss@7118: * questions. sjohanss@7118: * sjohanss@7118: */ sjohanss@7118: sjohanss@7118: #ifndef SHARE_VM_GC_IMPLEMENTATION_G1_G1ALLOCATIONCONTEXT_HPP sjohanss@7118: #define SHARE_VM_GC_IMPLEMENTATION_G1_G1ALLOCATIONCONTEXT_HPP sjohanss@7118: sjohanss@7118: #include "memory/allocation.hpp" sjohanss@7118: sjohanss@7118: typedef unsigned char AllocationContext_t; sjohanss@7118: sjohanss@7118: class AllocationContext : AllStatic { sjohanss@7118: public: sjohanss@7118: // Currently used context sjohanss@7118: static AllocationContext_t current() { sjohanss@7118: return 0; sjohanss@7118: } sjohanss@7118: // System wide default context sjohanss@7118: static AllocationContext_t system() { sjohanss@7118: return 0; sjohanss@7118: } sjohanss@7118: }; sjohanss@7118: jcoomes@7159: class AllocationContextStats: public StackObj { jcoomes@7159: public: jcoomes@7159: inline void clear() { } jcoomes@7159: inline void update(bool full_gc) { } sjohanss@7370: inline void update_after_mark() { } jcoomes@7164: inline bool available() { return false; } jcoomes@7159: }; jcoomes@7159: sjohanss@7118: #endif // SHARE_VM_GC_IMPLEMENTATION_G1_G1ALLOCATIONCONTEXT_HPP