mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8000662: NPG: nashorn ant clean test262 out-of-memory with Java heap
Add ClassLoaderData object for each anonymous class with metaspaces to allocate in. Reviewed-by: twisti, jrose, stefank
This commit is contained in:
parent
c00c803b89
commit
7aa43fc5d8
26 changed files with 365 additions and 249 deletions
|
@ -88,11 +88,6 @@ Klass* ObjArrayKlass::allocate_objArray_klass(ClassLoaderData* loader_data,
|
|||
}
|
||||
if (!supers_exist) {
|
||||
// Oops. Not allocated yet. Back out, allocate it, and retry.
|
||||
#ifndef PRODUCT
|
||||
if (WizardMode) {
|
||||
tty->print_cr("Must retry array klass creation for depth %d",n);
|
||||
}
|
||||
#endif
|
||||
KlassHandle ek;
|
||||
{
|
||||
MutexUnlocker mu(MultiArray_lock);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue