6911204: generated adapters with large signatures can fill up the code cache

Reviewed-by: kvn, jrose
This commit is contained in:
Tom Rodriguez 2010-01-20 22:10:33 -08:00
parent ae60c05fee
commit bac125984c
7 changed files with 373 additions and 131 deletions

View file

@ -688,7 +688,7 @@ address methodOopDesc::make_adapters(methodHandle mh, TRAPS) {
// so making them eagerly shouldn't be too expensive.
AdapterHandlerEntry* adapter = AdapterHandlerLibrary::get_adapter(mh);
if (adapter == NULL ) {
THROW_0(vmSymbols::java_lang_OutOfMemoryError());
THROW_MSG_NULL(vmSymbols::java_lang_VirtualMachineError(), "out of space in CodeCache for adapters");
}
mh->set_adapter_entry(adapter);