8011802: NPG: init_dependencies in class loader data graph can cause invalid CLD

Restructure initialization of ClassLoaderData to not add a new instance if init_dependencies fail

Reviewed-by: stefank, coleenp
This commit is contained in:
Mikael Gerdin 2013-04-23 08:39:55 +02:00
parent ddbf6ad621
commit c47ec9b4ca
3 changed files with 30 additions and 24 deletions

View file

@ -62,7 +62,7 @@ class ClassLoaderDataGraph : public AllStatic {
// CMS support.
static ClassLoaderData* _saved_head;
static ClassLoaderData* add(ClassLoaderData** loader_data_addr, Handle class_loader, TRAPS);
static ClassLoaderData* add(Handle class_loader, bool anonymous, TRAPS);
public:
static ClassLoaderData* find_or_create(Handle class_loader, TRAPS);
static void purge();