Mercurial > hg > truffle
diff src/share/vm/oops/methodOop.cpp @ 1187:cf0685d550f1
6911204: generated adapters with large signatures can fill up the code cache
Reviewed-by: kvn, jrose
author | never |
---|---|
date | Wed, 20 Jan 2010 22:10:33 -0800 |
parents | cd37471eaecc |
children | 5f24d0319e54 |
line wrap: on
line diff
--- a/src/share/vm/oops/methodOop.cpp Wed Jan 20 12:54:25 2010 -0800 +++ b/src/share/vm/oops/methodOop.cpp Wed Jan 20 22:10:33 2010 -0800 @@ -688,7 +688,7 @@ // 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);