Mercurial > hg > truffle
diff src/share/vm/oops/constantPool.cpp @ 7185:90273fc0a981
8000662: NPG: nashorn ant clean test262 out-of-memory with Java heap
Summary: Add ClassLoaderData object for each anonymous class with metaspaces to allocate in.
Reviewed-by: twisti, jrose, stefank
author | coleenp |
---|---|
date | Thu, 29 Nov 2012 16:50:29 -0500 |
parents | 18fb7da42534 |
children | 291ffc492eb6 b14da2e6f2dc |
line wrap: on
line diff
--- a/src/share/vm/oops/constantPool.cpp Tue Nov 27 14:11:37 2012 -0800 +++ b/src/share/vm/oops/constantPool.cpp Thu Nov 29 16:50:29 2012 -0500 @@ -340,9 +340,7 @@ do_resolve = this_oop->tag_at(which).is_unresolved_klass(); if (do_resolve) { ClassLoaderData* this_key = this_oop->pool_holder()->class_loader_data(); - if (!this_key->is_the_null_class_loader_data()) { - this_key->record_dependency(k(), CHECK_NULL); // Can throw OOM - } + this_key->record_dependency(k(), CHECK_NULL); // Can throw OOM this_oop->klass_at_put(which, k()); } }