< prev index next >
src/hotspot/share/gc/z/zVirtualMemory.hpp
Print this page
@@ -1,7 +1,7 @@
/*
- * Copyright (c) 2015, 2018, Oracle and/or its affiliates. All rights reserved.
+ * 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,11 +23,10 @@
#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:
@@ -40,12 +39,12 @@
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;
@@ -58,9 +57,9 @@
ZVirtualMemoryManager();
bool is_initialized() const;
ZVirtualMemory alloc(size_t size, bool alloc_from_front = false);
- void free(ZVirtualMemory vmem);
+ void free(const ZVirtualMemory& vmem);
};
#endif // SHARE_GC_Z_ZVIRTUALMEMORY_HPP
< prev index next >