Skip to content

Commit

Permalink
Remove macro for file extension.
Browse files Browse the repository at this point in the history
  • Loading branch information
suchismith1993 committed Nov 20, 2023
1 parent 5fc54aa commit 0068c71
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/hotspot/os/aix/os_aix.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -177,8 +177,8 @@ class os::Aix {

// Simulate the library search algorithm of dlopen() (in os::dll_load)
static int stat64x_via_LIBPATH(const char* path, struct stat64x* stat);
// Provide alternate path name,if file does not exist.
static void mapAlternateName(char* buffer, const char *extension);

};

#endif // OS_AIX_OS_AIX_HPP
3 changes: 2 additions & 1 deletion src/hotspot/share/prims/jvmtiAgent.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,8 @@ static void* load_agent_from_relative_path(JvmtiAgent* agent, bool vm_exit_on_er
}
#ifdef AIX
if (library == nullptr) {
os::Aix::mapAlternateName(buffer,AIX_EXTENSION);
const char* aix_archive_extension=".a";
os::Aix::mapAlternateName(buffer,aix_archive_extension);
library=os::dll_load(&buffer[0], &ebuf[0], sizeof ebuf);
if(library!=nullptr) {
save_library_signature(agent, &buffer[0]);
Expand Down
1 change: 0 additions & 1 deletion src/hotspot/share/utilities/macros.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,6 @@
#ifdef AIX
#define AIX_ONLY(code) code
#define NOT_AIX(code)
#define AIX_EXTENSION ".a"
#else
#define AIX_ONLY(code)
#define NOT_AIX(code) code
Expand Down

0 comments on commit 0068c71

Please sign in to comment.