hotspot/src/share/vm/oops/klass.cpp
changeset 46271 979ebd346ecf
parent 42639 762117d57d05
child 46324 8764956ec928
equal deleted inserted replaced
46270:2e7898927798 46271:979ebd346ecf
     1 /*
     1 /*
     2  * Copyright (c) 1997, 2016, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 1997, 2017, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.
     7  * published by the Free Software Foundation.
   517 
   517 
   518   // Recreate the class mirror.
   518   // Recreate the class mirror.
   519   // Only recreate it if not present.  A previous attempt to restore may have
   519   // Only recreate it if not present.  A previous attempt to restore may have
   520   // gotten an OOM later but keep the mirror if it was created.
   520   // gotten an OOM later but keep the mirror if it was created.
   521   if (java_mirror() == NULL) {
   521   if (java_mirror() == NULL) {
   522     Handle loader = loader_data->class_loader();
   522     Handle loader(THREAD, loader_data->class_loader());
   523     ModuleEntry* module_entry = NULL;
   523     ModuleEntry* module_entry = NULL;
   524     Klass* k = this;
   524     Klass* k = this;
   525     if (k->is_objArray_klass()) {
   525     if (k->is_objArray_klass()) {
   526       k = ObjArrayKlass::cast(k)->bottom_klass();
   526       k = ObjArrayKlass::cast(k)->bottom_klass();
   527     }
   527     }