equal
deleted
inserted
replaced
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 } |