hotspot/src/share/vm/code/codeBlob.cpp
changeset 26432 9b974e2eae27
parent 25715 d5a8dbdc5150
child 26796 666464578742
--- a/hotspot/src/share/vm/code/codeBlob.cpp	Fri Aug 29 13:46:50 2014 +0000
+++ b/hotspot/src/share/vm/code/codeBlob.cpp	Fri Aug 29 19:45:49 2014 -0400
@@ -238,6 +238,7 @@
 
 void BufferBlob::free( BufferBlob *blob ) {
   ThreadInVMfromUnknown __tiv;  // get to VM state in case we block on CodeCache_lock
+  blob->flush();
   {
     MutexLockerEx mu(CodeCache_lock, Mutex::_no_safepoint_check_flag);
     CodeCache::free((CodeBlob*)blob);