mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-16 00:54:38 +02:00
8252136: Several methods in hotspot are missing "static"
Reviewed-by: coleenp, stefank, kvn, kbarrett
This commit is contained in:
parent
f6e285103a
commit
09d4936657
71 changed files with 227 additions and 220 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 1997, 2023, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1997, 2024, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
|
@ -134,7 +134,8 @@ ClassPathEntry* ClassLoader::_last_module_path_entry = nullptr;
|
|||
#endif
|
||||
|
||||
// helper routines
|
||||
bool string_starts_with(const char* str, const char* str_to_find) {
|
||||
#if INCLUDE_CDS
|
||||
static bool string_starts_with(const char* str, const char* str_to_find) {
|
||||
size_t str_len = strlen(str);
|
||||
size_t str_to_find_len = strlen(str_to_find);
|
||||
if (str_to_find_len > str_len) {
|
||||
|
@ -142,6 +143,7 @@ bool string_starts_with(const char* str, const char* str_to_find) {
|
|||
}
|
||||
return (strncmp(str, str_to_find, str_to_find_len) == 0);
|
||||
}
|
||||
#endif
|
||||
|
||||
static const char* get_jimage_version_string() {
|
||||
static char version_string[10] = "";
|
||||
|
@ -1009,8 +1011,8 @@ const char* ClassLoader::file_name_for_class_name(const char* class_name,
|
|||
return file_name;
|
||||
}
|
||||
|
||||
ClassPathEntry* find_first_module_cpe(ModuleEntry* mod_entry,
|
||||
const GrowableArray<ModuleClassPathList*>* const module_list) {
|
||||
static ClassPathEntry* find_first_module_cpe(ModuleEntry* mod_entry,
|
||||
const GrowableArray<ModuleClassPathList*>* const module_list) {
|
||||
int num_of_entries = module_list->length();
|
||||
const Symbol* class_module_name = mod_entry->name();
|
||||
|
||||
|
@ -1355,7 +1357,7 @@ void ClassLoader::initialize(TRAPS) {
|
|||
setup_bootstrap_search_path(THREAD);
|
||||
}
|
||||
|
||||
char* lookup_vm_resource(JImageFile *jimage, const char *jimage_version, const char *path) {
|
||||
static char* lookup_vm_resource(JImageFile *jimage, const char *jimage_version, const char *path) {
|
||||
jlong size;
|
||||
JImageLocationRef location = (*JImageFindResource)(jimage, "java.base", jimage_version, path, &size);
|
||||
if (location == 0)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue