mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 23:04:50 +02:00
6711316: Open source the Garbage-First garbage collector
First mercurial integration of the code for the Garbage-First garbage collector. Reviewed-by: apetrusenko, iveresov, jmasa, sgoldman, tonyp, ysr
This commit is contained in:
parent
39463bb3fc
commit
18f3386a98
215 changed files with 36088 additions and 1249 deletions
|
@ -377,7 +377,11 @@ JVM_END
|
|||
JVM_ENTRY_NO_ENV(jlong, JVM_FreeMemory(void))
|
||||
JVMWrapper("JVM_FreeMemory");
|
||||
CollectedHeap* ch = Universe::heap();
|
||||
size_t n = ch->capacity() - ch->used();
|
||||
size_t n;
|
||||
{
|
||||
MutexLocker x(Heap_lock);
|
||||
n = ch->capacity() - ch->used();
|
||||
}
|
||||
return convert_size_t_to_jlong(n);
|
||||
JVM_END
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue