< prev index next >

src/share/vm/classfile/moduleEntry.cpp

Print this page

        

@@ -52,10 +52,21 @@
   if (location != NULL) {
     location->increment_refcount();
   }
 }
 
+bool ModuleEntry::is_non_jdk_module() {
+  ResourceMark rm;
+  if (location() != NULL) {
+    const char* loc = location()->as_C_string();
+    if (strncmp(loc, "jrt:/java.", 10) != 0 && strncmp(loc, "jrt:/jdk.", 9) != 0) {
+      return true;
+    }
+  }
+  return false;
+}
+
 void ModuleEntry::set_version(Symbol* version) {
   if (_version != NULL) {
     // _version symbol's refcounts are managed by ModuleEntry,
     // must decrement the old one before updating.
     _version->decrement_refcount();
< prev index next >