hotspot/src/share/vm/oops/klass.cpp
changeset 44520 0553e129e0ec
parent 42639 762117d57d05
child 46388 d7a164ad6b7f
equal deleted inserted replaced
44471:7e8e5ceecf99 44520:0553e129e0ec
     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.
   530       InstanceKlass* ik = (InstanceKlass*) k;
   530       InstanceKlass* ik = (InstanceKlass*) k;
   531       module_entry = ik->module();
   531       module_entry = ik->module();
   532     } else {
   532     } else {
   533       module_entry = ModuleEntryTable::javabase_moduleEntry();
   533       module_entry = ModuleEntryTable::javabase_moduleEntry();
   534     }
   534     }
   535     // Obtain java.lang.reflect.Module, if available
   535     // Obtain java.lang.Module, if available
   536     Handle module_handle(THREAD, ((module_entry != NULL) ? JNIHandles::resolve(module_entry->module()) : (oop)NULL));
   536     Handle module_handle(THREAD, ((module_entry != NULL) ? JNIHandles::resolve(module_entry->module()) : (oop)NULL));
   537     java_lang_Class::create_mirror(this, loader, module_handle, protection_domain, CHECK);
   537     java_lang_Class::create_mirror(this, loader, module_handle, protection_domain, CHECK);
   538   }
   538   }
   539 }
   539 }
   540 
   540