8022968: Some codecache allocation failures don't result in invoking the sweeper

Add calls to CompileBroker::handle_full_code_cache() or fail gracefully whenever allocation in the code cache fails.

Reviewed-by: iveresov, vlivanov
This commit is contained in:
Tobias Hartmann 2014-07-03 08:46:44 +02:00
parent b5e96ad985
commit fa6b220619
5 changed files with 11 additions and 0 deletions

View file

@ -1093,6 +1093,7 @@ IRT_END
address SignatureHandlerLibrary::set_handler_blob() {
BufferBlob* handler_blob = BufferBlob::create("native signature handlers", blob_size);
if (handler_blob == NULL) {
CompileBroker::handle_full_code_cache();
return NULL;
}
address handler = handler_blob->code_begin();