Ignore:
Timestamp:
Feb 21, 2011, 12:02:20 AM (14 years ago)
Author:
dmik
Message:

make: Global DLL rename by adding the 'j' prefix to avoid possible conflicts with system DLLs (#52)

Location:
trunk/openjdk/hotspot/src/share/vm
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/openjdk/hotspot/src/share/vm/classfile/classLoader.cpp

    r2 r263  
    560560  char path[JVM_MAXPATHLEN];
    561561  char ebuf[1024];
     562#ifdef __WIN32OS2__ 
     563  hpi::dll_build_name(path, sizeof(path), Arguments::get_dll_dir(), "jzip");
     564#else 
    562565  hpi::dll_build_name(path, sizeof(path), Arguments::get_dll_dir(), "zip");
     566#endif
    563567  void* handle = hpi::dll_load(path, ebuf, sizeof ebuf);
    564568  if (handle == NULL) {
  • trunk/openjdk/hotspot/src/share/vm/runtime/arguments.cpp

    r2 r263  
    18881888        }
    18891889#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)) {
    18911897          warning("profiling and debugging agents are not supported with Kernel VM");
    18921898        } else
     
    19081914        }
    19091915#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)) {
    19111923          warning("profiling and debugging agents are not supported with Kernel VM");
    19121924        } else
  • trunk/openjdk/hotspot/src/share/vm/runtime/os.cpp

    r2 r263  
    339339    // always able to find it when the loading executable is outside the JDK.
    340340    // 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   
    341344    dll_build_name(buffer, sizeof(buffer), Arguments::get_dll_dir(), "verify");
     345#endif   
    342346    dll_load(buffer, ebuf, sizeof(ebuf));
    343347
Note: See TracChangeset for help on using the changeset viewer.