comparison src/share/vm/classfile/classFileParser.hpp @ 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 4735d2c84362
children 35431a769282
comparison
equal deleted inserted replaced
7181:2fc0334f613a 7185:90273fc0a981
361 // The system dictionary hookup is done by the caller. 361 // The system dictionary hookup is done by the caller.
362 // 362 //
363 // "parsed_name" is updated by this method, and is the name found 363 // "parsed_name" is updated by this method, and is the name found
364 // while parsing the stream. 364 // while parsing the stream.
365 instanceKlassHandle parseClassFile(Symbol* name, 365 instanceKlassHandle parseClassFile(Symbol* name,
366 Handle class_loader, 366 ClassLoaderData* loader_data,
367 Handle protection_domain, 367 Handle protection_domain,
368 TempNewSymbol& parsed_name, 368 TempNewSymbol& parsed_name,
369 bool verify, 369 bool verify,
370 TRAPS) { 370 TRAPS) {
371 KlassHandle no_host_klass; 371 KlassHandle no_host_klass;
372 return parseClassFile(name, class_loader, protection_domain, no_host_klass, NULL, parsed_name, verify, THREAD); 372 return parseClassFile(name, loader_data, protection_domain, no_host_klass, NULL, parsed_name, verify, THREAD);
373 } 373 }
374 instanceKlassHandle parseClassFile(Symbol* name, 374 instanceKlassHandle parseClassFile(Symbol* name,
375 Handle class_loader, 375 ClassLoaderData* loader_data,
376 Handle protection_domain, 376 Handle protection_domain,
377 KlassHandle host_klass, 377 KlassHandle host_klass,
378 GrowableArray<Handle>* cp_patches, 378 GrowableArray<Handle>* cp_patches,
379 TempNewSymbol& parsed_name, 379 TempNewSymbol& parsed_name,
380 bool verify, 380 bool verify,