src/hotspot/share/classfile/classLoader.cpp
changeset 50206 adec398d9051
parent 50079 5830a17d9fc8
child 50254 61657d4a99e5
equal deleted inserted replaced
50205:95ba3a1dc2b2 50206:adec398d9051
  1408   // Lookup stream for parsing .class file
  1408   // Lookup stream for parsing .class file
  1409   ClassFileStream* stream = NULL;
  1409   ClassFileStream* stream = NULL;
  1410   s2 classpath_index = 0;
  1410   s2 classpath_index = 0;
  1411   ClassPathEntry* e = NULL;
  1411   ClassPathEntry* e = NULL;
  1412 
  1412 
  1413   // If DumpSharedSpaces is true boot loader visibility boundaries are set to:
       
  1414   //   - [jimage] + [_first_append_entry to _last_append_entry] (all path entries).
       
  1415   //
       
  1416   // If search_append_only is true, boot loader visibility boundaries are
  1413   // If search_append_only is true, boot loader visibility boundaries are
  1417   // set to be _first_append_entry to the end. This includes:
  1414   // set to be _first_append_entry to the end. This includes:
  1418   //   [-Xbootclasspath/a]; [jvmti appended entries]
  1415   //   [-Xbootclasspath/a]; [jvmti appended entries]
  1419   //
  1416   //
  1420   // If both DumpSharedSpaces and search_append_only are false, boot loader
  1417   // If search_append_only is false, boot loader visibility boundaries are
  1421   // visibility boundaries are set to be the --patch-module entries plus the base piece.
  1418   // set to be the --patch-module entries plus the base piece. This includes:
  1422   // This would include:
       
  1423   //   [--patch-module=<module>=<file>(<pathsep><file>)*]; [jimage | exploded module build]
  1419   //   [--patch-module=<module>=<file>(<pathsep><file>)*]; [jimage | exploded module build]
  1424   //
  1420   //
  1425 
  1421 
  1426   // Load Attempt #1: --patch-module
  1422   // Load Attempt #1: --patch-module
  1427   // Determine the class' defining module.  If it appears in the _patch_mod_entries,
  1423   // Determine the class' defining module.  If it appears in the _patch_mod_entries,
  1453       stream = search_module_entries(_exploded_entries, class_name, file_name, CHECK_NULL);
  1449       stream = search_module_entries(_exploded_entries, class_name, file_name, CHECK_NULL);
  1454     }
  1450     }
  1455   }
  1451   }
  1456 
  1452 
  1457   // Load Attempt #3: [-Xbootclasspath/a]; [jvmti appended entries]
  1453   // Load Attempt #3: [-Xbootclasspath/a]; [jvmti appended entries]
  1458   if ((search_append_only || DumpSharedSpaces) && (NULL == stream)) {
  1454   if (search_append_only && (NULL == stream)) {
  1459     // For the boot loader append path search, the starting classpath_index
  1455     // For the boot loader append path search, the starting classpath_index
  1460     // for the appended piece is always 1 to account for either the
  1456     // for the appended piece is always 1 to account for either the
  1461     // _jrt_entry or the _exploded_entries.
  1457     // _jrt_entry or the _exploded_entries.
  1462     assert(classpath_index == 0, "The classpath_index has been incremented incorrectly");
  1458     assert(classpath_index == 0, "The classpath_index has been incremented incorrectly");
  1463     classpath_index = 1;
  1459     classpath_index = 1;