--- a/hotspot/src/share/vm/memory/metaspace.cpp Tue Jun 25 15:17:11 2013 -0700
+++ b/hotspot/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;
}