Mercurial > hg > graal-jvmci-8
comparison src/share/vm/memory/heap.hpp @ 14518:d8041d695d19
Merged with jdk9/dev/hotspot changeset 3812c088b945
author | twisti |
---|---|
date | Tue, 11 Mar 2014 18:45:59 -0700 |
parents | 63a4eb8bcd23 |
children | 480b0109db65 4ca6dc0799b6 |
comparison
equal
deleted
inserted
replaced
14141:f97c5ec83832 | 14518:d8041d695d19 |
---|---|
1 /* | 1 /* |
2 * Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved. | 2 * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. | 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * | 4 * |
5 * This code is free software; you can redistribute it and/or modify it | 5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as | 6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. | 7 * published by the Free Software Foundation. |
125 CodeHeap(); | 125 CodeHeap(); |
126 | 126 |
127 // Heap extents | 127 // Heap extents |
128 bool reserve(size_t reserved_size, size_t committed_size, size_t segment_size); | 128 bool reserve(size_t reserved_size, size_t committed_size, size_t segment_size); |
129 void release(); // releases all allocated memory | 129 void release(); // releases all allocated memory |
130 bool expand_by(size_t size); // expands commited memory by size | 130 bool expand_by(size_t size); // expands committed memory by size |
131 void shrink_by(size_t size); // shrinks commited memory by size | 131 void shrink_by(size_t size); // shrinks committed memory by size |
132 void clear(); // clears all heap contents | 132 void clear(); // clears all heap contents |
133 | 133 |
134 // Memory allocation | 134 // Memory allocation |
135 void* allocate (size_t size, bool is_critical); // allocates a block of size or returns NULL | 135 void* allocate (size_t size, bool is_critical); // allocates a block of size or returns NULL |
136 void deallocate(void* p); // deallocates a block | 136 void deallocate(void* p); // deallocates a block |