Mercurial > hg > graal-compiler
comparison src/share/vm/graal/graalCompilerToVM.cpp @ 8526:3a105dec912f
Respect the PrintCodeCacheOnCompilation flag in the graal compiler
author | Gilles Duboscq <duboscq@ssw.jku.at> |
---|---|
date | Wed, 27 Mar 2013 14:20:07 +0100 |
parents | c36e8ded27d4 |
children | 8a526d8b4604 |
comparison
equal
deleted
inserted
replaced
8525:54f0a88e4523 | 8526:3a105dec912f |
---|---|
812 Handle installed_code_handle = JNIHandles::resolve(installed_code); | 812 Handle installed_code_handle = JNIHandles::resolve(installed_code); |
813 Handle triggered_deoptimizations_handle = JNIHandles::resolve(triggered_deoptimizations); | 813 Handle triggered_deoptimizations_handle = JNIHandles::resolve(triggered_deoptimizations); |
814 GraalEnv::CodeInstallResult result; | 814 GraalEnv::CodeInstallResult result; |
815 CodeInstaller installer(compResultHandle, method, result, nm, installed_code_handle, triggered_deoptimizations_handle); | 815 CodeInstaller installer(compResultHandle, method, result, nm, installed_code_handle, triggered_deoptimizations_handle); |
816 | 816 |
817 if (PrintCodeCacheOnCompilation) { | |
818 stringStream s; | |
819 // Dump code cache into a buffer before locking the tty, | |
820 { | |
821 MutexLockerEx mu(CodeCache_lock, Mutex::_no_safepoint_check_flag); | |
822 CodeCache::print_summary(&s, false); | |
823 } | |
824 ttyLocker ttyl; | |
825 tty->print_cr(s.as_string()); | |
826 } | |
827 | |
817 if (result != GraalEnv::ok) { | 828 if (result != GraalEnv::ok) { |
818 assert(nm == NULL, "should be"); | 829 assert(nm == NULL, "should be"); |
819 } else { | 830 } else { |
820 if (!installed_code_handle.is_null()) { | 831 if (!installed_code_handle.is_null()) { |
821 assert(installed_code_handle->is_a(HotSpotInstalledCode::klass()), "wrong type"); | 832 assert(installed_code_handle->is_a(HotSpotInstalledCode::klass()), "wrong type"); |