Skip to content

Commit 90e48f0

Browse files
Tidying up inconsistencies.
1 parent 7811407 commit 90e48f0

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

src/hotspot/share/classfile/classLoader.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -253,9 +253,10 @@ Symbol* ClassLoader::package_from_class_name(const Symbol* name, bool* bad_class
253253
// The following jimage_xxx static functions encapsulate all JImage_file and JImage_mode access.
254254
// This is done to make it easy to reason about the JImage file state (exists vs initialized etc.).
255255

256-
// Opens the named JImage file.
256+
// Opens the named JImage file and sets the JImage file reference.
257+
// Returns true if opening the JImage file was successful (see also jimage_exists()).
257258
static bool jimage_open(const char* modules_path) {
258-
// Current 'error' is not set to anything useful so ignore it here.
259+
// Currently 'error' is not set to anything useful, so ignore it here.
259260
jint error;
260261
JImage_file = (*JImageOpen)(modules_path, &error);
261262
return JImage_file != nullptr;

src/hotspot/share/runtime/arguments.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3556,8 +3556,8 @@ jint Arguments::parse(const JavaVMInitArgs* initial_cmd_args) {
35563556

35573557
// Parse the options in the /java.base/jdk/internal/vm/options resource, if present.
35583558
// This opens the JImage file for lookup of the options, but a subsequent call to
3559-
// ClassLoader::enable_preview(bool) MUST be made before other resources can be
3560-
// read (see finalize_patch_module()).
3559+
// ClassLoader::init_jimage(bool) MUST be made before other resources can be read
3560+
// (see finalize_patch_module()).
35613561
char *vmoptions = ClassLoader::lookup_vm_options();
35623562
if (vmoptions != nullptr) {
35633563
code = parse_options_buffer("vm options resource", vmoptions, strlen(vmoptions), &initial_vm_options_args);

0 commit comments

Comments
 (0)