Changeset 263 for trunk/openjdk/hotspot/src
- Timestamp:
- Feb 21, 2011, 12:02:20 AM (14 years ago)
- Location:
- trunk/openjdk/hotspot/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/openjdk/hotspot/src/os/windows/vm/hpi_windows.cpp
r2 r263 26 26 # include "incls/_hpi_windows.cpp.incl" 27 27 28 #ifdef __WIN32OS2__ 29 # define HPI_LIBNAME "jhpi" 30 #else 31 # define HPI_LIBNAME "hpi" 32 #endif 33 28 34 typedef jint (JNICALL *init_t)(GetInterfaceFunc *, void *); 29 35 … … 40 46 41 47 #ifdef PRODUCT 42 const char *hpi_lib = "\\ hpi.dll";48 const char *hpi_lib = "\\" HPI_LIBNAME ".dll"; 43 49 #else 44 50 char *ptr = strrchr(lib_name, '\\'); 45 51 // On Win98 GetModuleFileName() returns the path in the upper case. 46 52 assert(_strnicmp(ptr, "\\jvm",4) == 0, "invalid library name"); 47 const char *hpi_lib = (_strnicmp(ptr, "\\jvm_g",6) == 0) ? "\\hpi_g.dll" : "\\hpi.dll"; 53 const char *hpi_lib = (_strnicmp(ptr, "\\jvm_g",6) == 0) ? 54 "\\" HPI_LIBNAME "_g.dll" : "\\" HPI_LIBNAME ".dll"; 48 55 #endif 49 56 -
trunk/openjdk/hotspot/src/share/vm/classfile/classLoader.cpp
r2 r263 560 560 char path[JVM_MAXPATHLEN]; 561 561 char ebuf[1024]; 562 #ifdef __WIN32OS2__ 563 hpi::dll_build_name(path, sizeof(path), Arguments::get_dll_dir(), "jzip"); 564 #else 562 565 hpi::dll_build_name(path, sizeof(path), Arguments::get_dll_dir(), "zip"); 566 #endif 563 567 void* handle = hpi::dll_load(path, ebuf, sizeof ebuf); 564 568 if (handle == NULL) { -
trunk/openjdk/hotspot/src/share/vm/runtime/arguments.cpp
r2 r263 1888 1888 } 1889 1889 #ifdef JVMTI_KERNEL 1890 if ((strcmp(name, "hprof") == 0) || (strcmp(name, "jdwp") == 0)) { 1890 if ( 1891 #ifdef __WIN32OS2__ 1892 (strcmp(name, "jhprof") == 0) || 1893 #else 1894 (strcmp(name, "hprof") == 0) || 1895 #endif 1896 (strcmp(name, "jdwp") == 0)) { 1891 1897 warning("profiling and debugging agents are not supported with Kernel VM"); 1892 1898 } else … … 1908 1914 } 1909 1915 #ifdef JVMTI_KERNEL 1910 if ((strcmp(name, "hprof") == 0) || (strcmp(name, "jdwp") == 0)) { 1916 if ( 1917 #ifdef __WIN32OS2__ 1918 (strcmp(name, "jhprof") == 0) || 1919 #else 1920 (strcmp(name, "hprof") == 0) || 1921 #endif 1922 (strcmp(name, "jdwp") == 0)) { 1911 1923 warning("profiling and debugging agents are not supported with Kernel VM"); 1912 1924 } else -
trunk/openjdk/hotspot/src/share/vm/runtime/os.cpp
r2 r263 339 339 // always able to find it when the loading executable is outside the JDK. 340 340 // In order to keep working with 1.2 we ignore any loading errors. 341 #if __WIN32OS2__ 342 dll_build_name(buffer, sizeof(buffer), Arguments::get_dll_dir(), "jverify"); 343 #else 341 344 dll_build_name(buffer, sizeof(buffer), Arguments::get_dll_dir(), "verify"); 345 #endif 342 346 dll_load(buffer, ebuf, sizeof(ebuf)); 343 347
Note:
See TracChangeset
for help on using the changeset viewer.