hotspot/src/share/vm/classfile/moduleEntry.cpp
changeset 42575 bd1618170c93
parent 42073 89e056fd82cc
child 42634 7459867ebf98
equal deleted inserted replaced
42573:a20695c30be5 42575:bd1618170c93
    52   if (location != NULL) {
    52   if (location != NULL) {
    53     location->increment_refcount();
    53     location->increment_refcount();
    54   }
    54   }
    55 }
    55 }
    56 
    56 
       
    57 bool ModuleEntry::is_non_jdk_module() {
       
    58   ResourceMark rm;
       
    59   if (location() != NULL) {
       
    60     const char* loc = location()->as_C_string();
       
    61     if (strncmp(loc, "jrt:/java.", 10) != 0 && strncmp(loc, "jrt:/jdk.", 9) != 0) {
       
    62       return true;
       
    63     }
       
    64   }
       
    65   return false;
       
    66 }
       
    67 
    57 void ModuleEntry::set_version(Symbol* version) {
    68 void ModuleEntry::set_version(Symbol* version) {
    58   if (_version != NULL) {
    69   if (_version != NULL) {
    59     // _version symbol's refcounts are managed by ModuleEntry,
    70     // _version symbol's refcounts are managed by ModuleEntry,
    60     // must decrement the old one before updating.
    71     // must decrement the old one before updating.
    61     _version->decrement_refcount();
    72     _version->decrement_refcount();