< prev index next >

src/hotspot/share/gc/z/zVirtualMemory.hpp

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 2015, 2018, 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 * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. --- 1,7 ---- /* ! * Copyright (c) 2015, 2019, 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 * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation.
*** 23,33 **** #ifndef SHARE_GC_Z_ZVIRTUALMEMORY_HPP #define SHARE_GC_Z_ZVIRTUALMEMORY_HPP #include "gc/z/zMemory.hpp" - #include "memory/allocation.hpp" class ZVirtualMemory { friend class VMStructs; private: --- 23,32 ----
*** 40,51 **** bool is_null() const; uintptr_t start() const; uintptr_t end() const; size_t size() const; ZVirtualMemory split(size_t size); - void clear(); }; class ZVirtualMemoryManager { private: ZMemoryManager _manager; --- 39,50 ---- bool is_null() const; uintptr_t start() const; uintptr_t end() const; size_t size() const; + ZVirtualMemory split(size_t size); }; class ZVirtualMemoryManager { private: ZMemoryManager _manager;
*** 58,66 **** ZVirtualMemoryManager(); bool is_initialized() const; ZVirtualMemory alloc(size_t size, bool alloc_from_front = false); ! void free(ZVirtualMemory vmem); }; #endif // SHARE_GC_Z_ZVIRTUALMEMORY_HPP --- 57,65 ---- ZVirtualMemoryManager(); bool is_initialized() const; ZVirtualMemory alloc(size_t size, bool alloc_from_front = false); ! void free(const ZVirtualMemory& vmem); }; #endif // SHARE_GC_Z_ZVIRTUALMEMORY_HPP
< prev index next >