comparison src/share/vm/prims/jvm.cpp @ 362:f8199438385b

Merge
author apetrusenko
date Wed, 17 Sep 2008 16:49:18 +0400
parents 1ee8caae33af
children f008d3631bd1
comparison
equal deleted inserted replaced
316:5fa96a5a7e76 362:f8199438385b
375 375
376 376
377 JVM_ENTRY_NO_ENV(jlong, JVM_FreeMemory(void)) 377 JVM_ENTRY_NO_ENV(jlong, JVM_FreeMemory(void))
378 JVMWrapper("JVM_FreeMemory"); 378 JVMWrapper("JVM_FreeMemory");
379 CollectedHeap* ch = Universe::heap(); 379 CollectedHeap* ch = Universe::heap();
380 size_t n = ch->capacity() - ch->used(); 380 size_t n;
381 {
382 MutexLocker x(Heap_lock);
383 n = ch->capacity() - ch->used();
384 }
381 return convert_size_t_to_jlong(n); 385 return convert_size_t_to_jlong(n);
382 JVM_END 386 JVM_END
383 387
384 388
385 JVM_ENTRY_NO_ENV(jlong, JVM_MaxMemory(void)) 389 JVM_ENTRY_NO_ENV(jlong, JVM_MaxMemory(void))