diff src/share/vm/memory/metaspace.cpp @ 11039:71963b3f802a

8013590: NPG: Add a memory pool MXBean for Metaspace Reviewed-by: jmasa, mgerdin
author ehelin
date Wed, 26 Jun 2013 16:58:37 +0200
parents df7e1c0e3dc1
children cedf20e2a655
line wrap: on
line diff
--- a/src/share/vm/memory/metaspace.cpp	Tue Jun 25 15:17:11 2013 -0700
+++ b/src/share/vm/memory/metaspace.cpp	Wed Jun 26 16:58:37 2013 +0200
@@ -1556,19 +1556,7 @@
 
 // ChunkManager methods
 
-// Verification of _free_chunks_total and _free_chunks_count does not
-// work with the CMS collector because its use of additional locks
-// complicate the mutex deadlock detection but it can still be useful
-// for detecting errors in the chunk accounting with other collectors.
-
 size_t ChunkManager::free_chunks_total() {
-#ifdef ASSERT
-  if (!UseConcMarkSweepGC && !SpaceManager::expand_lock()->is_locked()) {
-    MutexLockerEx cl(SpaceManager::expand_lock(),
-                     Mutex::_no_safepoint_check_flag);
-    slow_locked_verify_free_chunks_total();
-  }
-#endif
   return _free_chunks_total;
 }