diff src/share/vm/code/codeCache.cpp @ 2482:dbccacb79c63

7036236: VM crashes assert((!inside_attrs()) || is_error_reported()) failed ... Summary: Eliminate the race condition. Reviewed-by: kvn
author iveresov
date Thu, 14 Apr 2011 00:02:21 -0700
parents 3f49d30f8184
children 167b70ff3abc
line wrap: on
line diff
--- a/src/share/vm/code/codeCache.cpp	Wed Apr 13 14:33:03 2011 -0700
+++ b/src/share/vm/code/codeCache.cpp	Thu Apr 14 00:02:21 2011 -0700
@@ -971,8 +971,6 @@
   if (CodeCache_lock->owned_by_self()) {
     return _heap->largest_free_block();
   } else {
-    // Avoid lock ordering problems with ttyLock.
-    ttyUnlocker ttyul;
     MutexLockerEx mu(CodeCache_lock, Mutex::_no_safepoint_check_flag);
     return _heap->largest_free_block();
   }