Changeset 263 for trunk/openjdk
- Timestamp:
- Feb 21, 2011, 12:02:20 AM (14 years ago)
- Location:
- trunk/openjdk
- Files:
-
- 77 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 -
trunk/openjdk/jdk/make/com/sun/java/pack/Makefile
r2 r263 33 33 PRODUCT = sun 34 34 PGRM = unpack200 35 36 ifeq ($(PLATFORM), os2) 37 LIBRARY_SHORT = junpack 38 endif 39 35 40 include $(BUILDDIR)/common/Defs.gmk 36 41 -
trunk/openjdk/jdk/make/java/hpi/windows/Makefile
r222 r263 33 33 LIB_LOCATION = $(BINDIR) 34 34 35 ifeq ($(PLATFORM), os2) 36 LIBRARY_SHORT = jhpi 37 endif 38 35 39 include $(BUILDDIR)/common/Defs.gmk 36 40 … … 66 70 DEF_FILE = $(OBJDIR)/$(LIBRARY).def 67 71 $(DEF_FILE): $(MAKEFILE_LIST) 68 @$(ECHO) "LIBRARY $(LIBRARY ) INITINSTANCE TERMINSTANCE" > $@72 @$(ECHO) "LIBRARY $(LIBRARY_NAME) INITINSTANCE TERMINSTANCE" > $@ 69 73 @$(ECHO) 'EXPORTS \n \ 70 74 DLL_Initialize = "_DLL_Initialize@8" \n \ -
trunk/openjdk/jdk/make/java/instrument/Makefile
r222 r263 32 32 PRODUCT = sun 33 33 34 LIBRARY_SHORT = instrmnt 34 ifeq ($(PLATFORM), os2) 35 LIBRARY_SHORT = jinstr 36 endif 35 37 36 38 # Configure the CFLAGS for this library. Use static binding so that there … … 126 128 DEF_FILE = $(OBJDIR)/$(LIBRARY).def 127 129 $(DEF_FILE): $(MAKEFILE_LIST) 128 @$(ECHO) "LIBRARY $(LIBRARY ) INITINSTANCE TERMINSTANCE" > $@130 @$(ECHO) "LIBRARY $(LIBRARY_NAME) INITINSTANCE TERMINSTANCE" > $@ 129 131 @$(ECHO) 'EXPORTS \n \ 130 132 Agent_OnAttach = "_Agent_OnAttach@12" \n \ -
trunk/openjdk/jdk/make/java/java/Makefile
r222 r263 55 55 56 56 $(DEF_FILE): $(MAKEFILE_LIST) 57 @$(ECHO) "LIBRARY $(LIBRARY ) INITINSTANCE TERMINSTANCE" > $@57 @$(ECHO) "LIBRARY $(LIBRARY_NAME) INITINSTANCE TERMINSTANCE" > $@ 58 58 @$(ECHO) 'EXPORTS \n \ 59 59 Canonicalize = _Canonicalize \n \ -
trunk/openjdk/jdk/make/java/java_crw_demo/Makefile
r203 r263 29 29 LIBRARY_OUTPUT = java_crw_demo 30 30 31 ifeq ($(PLATFORM), os2) 31 32 LIBRARY_SHORT = javacrwd 33 endif 32 34 33 35 # Configure the CFLAGS for this library. -
trunk/openjdk/jdk/make/java/java_hprof_demo/Makefile
r99 r263 28 28 PRODUCT = sun 29 29 LIBRARY_OUTPUT = hprof_jvmti 30 31 ifeq ($(PLATFORM), os2) 32 LIBRARY_SHORT = jhprof 33 endif 30 34 31 35 # Configure the CFLAGS for this library. -
trunk/openjdk/jdk/make/java/jli/Makefile
r222 r263 105 105 DEF_FILE = $(OBJDIR)/$(LIBRARY).def 106 106 $(DEF_FILE): $(MAKEFILE_LIST) 107 @$(ECHO) "LIBRARY $(LIBRARY ) INITINSTANCE TERMINSTANCE" > $@107 @$(ECHO) "LIBRARY $(LIBRARY_NAME) INITINSTANCE TERMINSTANCE" > $@ 108 108 @$(ECHO) 'EXPORTS \n \ 109 109 _JLI_ParseManifest \n \ -
trunk/openjdk/jdk/make/java/management/Makefile
r203 r263 29 29 PRODUCT = java 30 30 31 LIBRARY_SHORT = mngemnt 31 ifeq ($(PLATFORM), os2) 32 LIBRARY_SHORT = jmngmnt 33 endif 32 34 33 35 include $(BUILDDIR)/common/Defs.gmk -
trunk/openjdk/jdk/make/java/net/Makefile
r101 r263 28 28 LIBRARY = net 29 29 PRODUCT = sun 30 31 ifeq ($(PLATFORM), os2) 32 LIBRARY_SHORT = jnet 33 endif 34 30 35 include $(BUILDDIR)/common/Defs.gmk 31 36 -
trunk/openjdk/jdk/make/java/nio/Makefile
r104 r263 33 33 PRODUCT = java 34 34 OTHER_JAVACFLAGS += -Xmaxwarns 1000 -Xlint:serial -Werror 35 36 ifeq ($(PLATFORM), os2) 37 LIBRARY_SHORT = jnio 38 endif 39 35 40 include $(BUILDDIR)/common/Defs.gmk 36 41 -
trunk/openjdk/jdk/make/java/npt/Makefile
r222 r263 28 28 PRODUCT = sun 29 29 LIBRARY_OUTPUT = npt 30 31 ifeq ($(PLATFORM), os2) 32 LIBRARY_SHORT = jnpt 33 endif 30 34 31 35 # Configure the CFLAGS for this library. … … 71 75 DEF_FILE = $(OBJDIR)/$(LIBRARY).def 72 76 $(DEF_FILE): $(MAKEFILE_LIST) 73 @$(ECHO) "LIBRARY $(LIBRARY ) INITINSTANCE TERMINSTANCE" > $@77 @$(ECHO) "LIBRARY $(LIBRARY_NAME) INITINSTANCE TERMINSTANCE" > $@ 74 78 @$(ECHO) 'EXPORTS \n \ 75 79 nptInitialize = "_nptInitialize@12" \n \ -
trunk/openjdk/jdk/make/java/verify/Makefile
r2 r263 32 32 LIBRARY = verify 33 33 include $(BUILDDIR)/common/Defs.gmk 34 35 ifeq ($(PLATFORM), os2) 36 LIBRARY_SHORT = jverify 37 endif 34 38 35 39 # -
trunk/openjdk/jdk/make/java/zip/Makefile
r222 r263 29 29 LIBRARY = zip 30 30 PRODUCT = sun 31 32 ifeq ($(PLATFORM), os2) 33 LIBRARY_SHORT = jzip 34 endif 35 31 36 include $(BUILDDIR)/common/Defs.gmk 32 37 … … 73 78 DEF_FILE = $(OBJDIR)/$(LIBRARY).def 74 79 $(DEF_FILE): $(MAKEFILE_LIST) 75 @$(ECHO) "LIBRARY $(LIBRARY ) INITINSTANCE TERMINSTANCE" > $@80 @$(ECHO) "LIBRARY $(LIBRARY_NAME) INITINSTANCE TERMINSTANCE" > $@ 76 81 @$(ECHO) 'EXPORTS \n \ 77 82 ZIP_CRC32 = _ZIP_CRC32 \n \ -
trunk/openjdk/jdk/make/jpda/transport/shmem/Makefile
r250 r263 31 31 LIBRARY = dt_shmem 32 32 PRODUCT = jbug 33 34 ifeq ($(PLATFORM), os2) 35 LIBRARY_SHORT = jdtshmem 36 endif 33 37 34 38 # Mapfile only used on Solaris/Linux … … 79 83 DEF_FILE = $(OBJDIR)/$(LIBRARY).def 80 84 $(DEF_FILE): $(MAKEFILE_LIST) 81 @$(ECHO) "LIBRARY $(LIBRARY ) INITINSTANCE TERMINSTANCE" > $@85 @$(ECHO) "LIBRARY $(LIBRARY_NAME) INITINSTANCE TERMINSTANCE" > $@ 82 86 @$(ECHO) 'EXPORTS \n \ 83 87 jdwpTransport_OnLoad = "_jdwpTransport_OnLoad@16" \n \ -
trunk/openjdk/jdk/make/jpda/transport/socket/Makefile
r249 r263 30 30 BUILDDIR = ../../.. 31 31 LIBRARY = dt_socket 32 LIBRARY_SHORT = dt_sock33 32 PRODUCT = jbug 33 34 ifeq ($(PLATFORM), os2) 35 LIBRARY_SHORT = jdtsock 36 endif 34 37 35 38 # Mapfile only used on Solaris/Linux … … 94 97 DEF_FILE = $(OBJDIR)/$(LIBRARY).def 95 98 $(DEF_FILE): $(MAKEFILE_LIST) 96 @$(ECHO) "LIBRARY $(LIBRARY ) INITINSTANCE TERMINSTANCE" > $@99 @$(ECHO) "LIBRARY $(LIBRARY_NAME) INITINSTANCE TERMINSTANCE" > $@ 97 100 @$(ECHO) 'EXPORTS \n \ 98 101 jdwpTransport_OnLoad = "_jdwpTransport_OnLoad@16" \n \ -
trunk/openjdk/jdk/make/mkdemo/jvmti/hprof/Makefile
r232 r263 29 29 include $(BUILDDIR)/common/Defs.gmk 30 30 31 ifeq ($(PLATFORM), os2) 32 DEMONAME_SHORT = jhprof 33 endif 34 31 35 DEMO_ROOT = $(SHARE_SRC)/demo/jvmti/$(DEMONAME) 32 36 DEMO_TOPFILES = ./README.txt -
trunk/openjdk/jdk/make/sun/awt/Makefile
r234 r263 28 28 LIBRARY = awt 29 29 PRODUCT = sun 30 31 ifeq ($(PLATFORM), os2) 32 LIBRARY_SHORT = jawtos2 33 endif 30 34 31 35 # -
trunk/openjdk/jdk/make/sun/cmm/lcms/Makefile
r208 r263 28 28 LIBRARY = lcms 29 29 PRODUCT = sun 30 31 ifeq ($(PLATFORM), os2) 32 LIBRARY_SHORT = jlcms 33 endif 30 34 31 35 include $(BUILDDIR)/common/Defs.gmk -
trunk/openjdk/jdk/make/sun/font/Makefile
r213 r263 33 33 PRODUCT = sun 34 34 35 LIBRARY_SHORT = fontmgr 35 ifeq ($(PLATFORM), os2) 36 LIBRARY_SHORT = jfontmgr 37 endif 36 38 37 39 # Indicate we want the C++ compiler to do the linking. -
trunk/openjdk/jdk/make/sun/image/generic/Makefile
r257 r263 33 33 PRODUCT = sun 34 34 35 LIBRARY_SHORT = mlibimg 35 ifeq ($(PLATFORM), os2) 36 LIBRARY_SHORT = jmlibimg 37 endif 36 38 37 39 include $(BUILDDIR)/common/Defs.gmk … … 58 60 DEF_FILE = $(OBJDIR)/$(LIBRARY).def 59 61 $(DEF_FILE): $(MAKEFILE_LIST) 60 @$(ECHO) "LIBRARY $(LIBRARY ) INITINSTANCE TERMINSTANCE" > $@62 @$(ECHO) "LIBRARY $(LIBRARY_NAME) INITINSTANCE TERMINSTANCE" > $@ 61 63 @$(ECHO) 'EXPORTS \n \ 62 64 j2d_mlib_ImageConvMxN = _j2d_mlib_ImageConvMxN \n \ -
trunk/openjdk/jdk/make/sun/jpeg/Makefile
r2 r263 29 29 PRODUCT = sun 30 30 include $(BUILDDIR)/common/Defs.gmk 31 32 ifeq ($(PLATFORM), os2) 33 LIBRARY_SHORT = jjpeg 34 endif 31 35 32 36 # -
trunk/openjdk/jdk/make/sun/rmi/rmi/Makefile
r74 r263 32 32 PRODUCT = sun 33 33 LIBRARY = rmi 34 35 ifeq ($(PLATFORM), os2) 36 LIBRARY = jrmi 37 endif 38 34 39 include $(BUILDDIR)/common/Defs.gmk 35 40 -
trunk/openjdk/jdk/make/sun/security/mscapi/Makefile
r203 r263 94 94 PRODUCT = sun 95 95 96 LIBRARY_SHORT = smscapi 96 ifeq ($(PLATFORM), os2) 97 LIBRARY_SHORT = jsmscapi 98 endif 97 99 98 100 # -
trunk/openjdk/jdk/make/sun/splashscreen/Makefile
r208 r263 30 30 include $(BUILDDIR)/common/Defs.gmk 31 31 32 LIBRARY_SHORT = splshscr 32 ifeq ($(PLATFORM), os2) 33 LIBRARY_SHORT = jsplash 34 endif 33 35 34 36 # -
trunk/openjdk/jdk/src/share/classes/com/sun/imageio/plugins/jpeg/JPEGImageReader.java
r2 r263 85 85 86 86 static { 87 boolean isOS2 = java.security.AccessController.doPrivileged( 88 new sun.security.action.GetPropertyAction("os.name")). 89 startsWith("OS/2"); 87 90 java.security.AccessController.doPrivileged( 88 new sun.security.action.LoadLibraryAction("jpeg")); 91 new sun.security.action.LoadLibraryAction(isOS2 ? "jjpeg" 92 : "jpeg")); 89 93 initReaderIDs(ImageInputStream.class, 90 94 JPEGQTable.class, -
trunk/openjdk/jdk/src/share/classes/com/sun/imageio/plugins/jpeg/JPEGImageReaderSpi.java
r2 r263 68 68 } 69 69 try { 70 boolean isOS2 = java.security.AccessController.doPrivileged( 71 new sun.security.action.GetPropertyAction("os.name")). 72 startsWith("OS/2"); 70 73 java.security.AccessController.doPrivileged( 71 new sun.security.action.LoadLibraryAction("jpeg")); 74 new sun.security.action.LoadLibraryAction(isOS2 ? "jjpeg" 75 : "jpeg")); 72 76 // Stuff it all into one lib for first pass 73 77 //java.security.AccessController.doPrivileged( -
trunk/openjdk/jdk/src/share/classes/com/sun/imageio/plugins/jpeg/JPEGImageWriter.java
r2 r263 177 177 178 178 static { 179 boolean isOS2 = java.security.AccessController.doPrivileged( 180 new sun.security.action.GetPropertyAction("os.name")). 181 startsWith("OS/2"); 179 182 java.security.AccessController.doPrivileged( 180 new sun.security.action.LoadLibraryAction("jpeg")); 183 new sun.security.action.LoadLibraryAction(isOS2 ? "jjpeg" 184 : "jpeg")); 181 185 initWriterIDs(ImageOutputStream.class, 182 186 JPEGQTable.class, -
trunk/openjdk/jdk/src/share/classes/com/sun/imageio/plugins/jpeg/JPEGImageWriterSpi.java
r2 r263 76 76 } 77 77 try { 78 boolean isOS2 = java.security.AccessController.doPrivileged( 79 new sun.security.action.GetPropertyAction("os.name")). 80 startsWith("OS/2"); 78 81 java.security.AccessController.doPrivileged( 79 new sun.security.action.LoadLibraryAction("jpeg")); 82 new sun.security.action.LoadLibraryAction(isOS2 ? "jjpeg" 83 : "jpeg")); 80 84 } catch (Throwable e) { // Fail on any Throwable 81 85 // if it can't be loaded, deregister and return -
trunk/openjdk/jdk/src/share/classes/com/sun/java/util/jar/pack/NativeUnpack.java
r2 r263 84 84 // If loading from stand alone build uncomment this. 85 85 // System.loadLibrary("unpack"); 86 boolean isOS2 = java.security.AccessController.doPrivileged( 87 new sun.security.action.GetPropertyAction("os.name")). 88 startsWith("OS/2"); 86 89 java.security.AccessController.doPrivileged( 87 new sun.security.action.LoadLibraryAction("unpack")); 90 new sun.security.action.LoadLibraryAction(isOS2 ? "junpack" 91 : "unpack")); 88 92 initIDs(); 89 93 } -
trunk/openjdk/jdk/src/share/classes/com/sun/media/sound/SoftSynthesizer.java
r256 r263 172 172 } 173 173 174 private static final boolean isOS2 = AccessController 175 .doPrivileged(new PrivilegedAction<Boolean>() { 176 public Boolean run() { 177 return System.getProperty("os.name").startsWith("OS/2"); 178 } 179 }); 174 private static final boolean isOS2 = AccessController.doPrivileged( 175 new sun.security.action.GetPropertyAction("os.name")).startsWith("OS/2"); 180 176 181 177 protected static final String INFO_NAME = "Gervill"; -
trunk/openjdk/jdk/src/share/classes/com/sun/tools/example/debug/tty/TTY.java
r2 r263 776 776 continue; 777 777 } 778 if ("dt_shmem".equals(connector.transport().name())) { 778 final String shmemLib = 779 System.getProperty("os.name").startsWith("OS/2") ? "jdtshmem" 780 : "dt_shmem"; 781 if (shmemLib.equals(connector.transport().name())) { 779 782 return true; 780 783 } -
trunk/openjdk/jdk/src/share/classes/com/sun/tools/jdi/ProcessAttachingConnector.java
r249 r263 123 123 124 124 TransportService ts = null; 125 final String sockLib = System.getProperty("os.name").startsWith("OS/2") ? " dt_sock" : "dt_socket";125 final String sockLib = System.getProperty("os.name").startsWith("OS/2") ? "jdtsock" : "dt_socket"; 126 126 if (lib.equals(sockLib)) { 127 127 ts = new SocketTransportService(); 128 128 } else { 129 if (lib.equals("dt_shmem")) { 129 final String shmemLib = System.getProperty("os.name").startsWith("OS/2") ? "jdtshmem" : "dt_shmem"; 130 if (lib.equals(shmemLib)) { 130 131 try { 131 132 Class c = Class.forName("com.sun.tools.jdi.SharedMemoryTransportService"); -
trunk/openjdk/jdk/src/share/classes/com/sun/tools/jdi/RawCommandLineLauncher.java
r249 r263 58 58 transport = new Transport() { 59 59 public String name() { 60 if (System.getProperty("os.name").startsWith("OS/2")) 61 return "jdtshmem"; 60 62 return "dt_shmem"; 61 63 } … … 72 74 public String name() { 73 75 if (System.getProperty("os.name").startsWith("OS/2")) 74 return " dt_sock";76 return "jdtsock"; 75 77 return "dt_socket"; 76 78 } -
trunk/openjdk/jdk/src/share/classes/com/sun/tools/jdi/SocketAttachingConnector.java
r249 r263 70 70 public String name() { 71 71 if (System.getProperty("os.name").startsWith("OS/2")) 72 return " dt_sock";72 return "jdtsock"; 73 73 return "dt_socket"; // for compatability reasons 74 74 } -
trunk/openjdk/jdk/src/share/classes/com/sun/tools/jdi/SocketListeningConnector.java
r249 r263 60 60 public String name() { 61 61 if (System.getProperty("os.name").startsWith("OS/2")) 62 return " dt_sock";62 return "jdtsock"; 63 63 return "dt_socket"; // for compatability reasons 64 64 } -
trunk/openjdk/jdk/src/share/classes/com/sun/tools/jdi/SunCommandLineLauncher.java
r249 r263 69 69 transport = new Transport() { 70 70 public String name() { 71 if (System.getProperty("os.name").startsWith("OS/2")) 72 return "jdtshmem"; 71 73 return "dt_shmem"; 72 74 } … … 83 85 public String name() { 84 86 if (System.getProperty("os.name").startsWith("OS/2")) 85 return " dt_sock";87 return "jdtsock"; 86 88 return "dt_socket"; 87 89 } -
trunk/openjdk/jdk/src/share/classes/java/awt/SplashScreen.java
r208 r263 109 109 // SplashScreen class is now a singleton 110 110 if (!wasClosed && theInstance == null) { 111 if (System.getProperty("os.name").startsWith("OS/2")) { 112 java.security.AccessController.doPrivileged( 113 new sun.security.action.LoadLibraryAction("splshscr")); 114 } else { 115 java.security.AccessController.doPrivileged( 116 new sun.security.action.LoadLibraryAction("splashscreen")); 117 } 111 boolean isOS2 = java.security.AccessController.doPrivileged( 112 new sun.security.action.GetPropertyAction("os.name")). 113 startsWith("OS/2"); 114 java.security.AccessController.doPrivileged( 115 new sun.security.action.LoadLibraryAction(isOS2 ? "jsplash" 116 : "splashscreen")); 118 117 long ptr = _getInstance(); 119 118 if (ptr != 0 && _isVisible(ptr)) { -
trunk/openjdk/jdk/src/share/classes/java/awt/Toolkit.java
r2 r263 1608 1608 static void loadLibraries() { 1609 1609 if (!loaded) { 1610 boolean isOS2 = java.security.AccessController.doPrivileged( 1611 new sun.security.action.GetPropertyAction("os.name")). 1612 startsWith("OS/2"); 1610 1613 java.security.AccessController.doPrivileged( 1611 new sun.security.action.LoadLibraryAction("awt")); 1614 new sun.security.action.LoadLibraryAction(isOS2 ? "jawtos2" 1615 : "awt")); 1612 1616 loaded = true; 1613 1617 } -
trunk/openjdk/jdk/src/share/classes/java/awt/event/NativeLibLoader.java
r2 r263 54 54 */ 55 55 static void loadLibraries() { 56 boolean isOS2 = java.security.AccessController.doPrivileged( 57 new sun.security.action.GetPropertyAction("os.name")). 58 startsWith("OS/2"); 56 59 java.security.AccessController.doPrivileged( 57 new sun.security.action.LoadLibraryAction("awt")); 60 new sun.security.action.LoadLibraryAction(isOS2 ? "jawtos2" 61 : "awt")); 58 62 } 59 63 } -
trunk/openjdk/jdk/src/share/classes/java/awt/image/ColorModel.java
r2 r263 204 204 static void loadLibraries() { 205 205 if (!loaded) { 206 boolean isOS2 = java.security.AccessController.doPrivileged( 207 new sun.security.action.GetPropertyAction("os.name")). 208 startsWith("OS/2"); 206 209 java.security.AccessController.doPrivileged( 207 new sun.security.action.LoadLibraryAction("awt")); 210 new sun.security.action.LoadLibraryAction(isOS2 ? "jawtos2" 211 : "awt")); 208 212 loaded = true; 209 213 } -
trunk/openjdk/jdk/src/share/classes/java/lang/System.java
r2 r263 1098 1098 // Load the zip library now in order to keep java.util.zip.ZipFile 1099 1099 // from trying to use itself to load this library later. 1100 loadLibrary( "zip");1100 loadLibrary(getProperty("os.name").startsWith("OS/2") ? "jzip" : "zip"); 1101 1101 1102 1102 // Setup Java signal handlers for HUP, TERM, and INT (where available). -
trunk/openjdk/jdk/src/share/classes/java/net/AbstractPlainDatagramSocketImpl.java
r2 r263 58 58 */ 59 59 static { 60 boolean isOS2 = java.security.AccessController.doPrivileged( 61 new sun.security.action.GetPropertyAction("os.name")). 62 startsWith("OS/2"); 60 63 java.security.AccessController.doPrivileged( 61 new sun.security.action.LoadLibraryAction("net")); 64 new sun.security.action.LoadLibraryAction(isOS2 ? "jnet" 65 : "net")); 62 66 } 63 67 -
trunk/openjdk/jdk/src/share/classes/java/net/AbstractPlainSocketImpl.java
r2 r263 74 74 */ 75 75 static { 76 boolean isOS2 = java.security.AccessController.doPrivileged( 77 new sun.security.action.GetPropertyAction("os.name")). 78 startsWith("OS/2"); 76 79 java.security.AccessController.doPrivileged( 77 new sun.security.action.LoadLibraryAction("net")); 80 new sun.security.action.LoadLibraryAction(isOS2 ? "jnet" 81 : "net")); 78 82 } 79 83 -
trunk/openjdk/jdk/src/share/classes/java/net/DatagramPacket.java
r2 r263 47 47 */ 48 48 static { 49 boolean isOS2 = java.security.AccessController.doPrivileged( 50 new sun.security.action.GetPropertyAction("os.name")). 51 startsWith("OS/2"); 49 52 java.security.AccessController.doPrivileged( 50 new sun.security.action.LoadLibraryAction("net")); 53 new sun.security.action.LoadLibraryAction(isOS2 ? "jnet" 54 : "net")); 51 55 init(); 52 56 } -
trunk/openjdk/jdk/src/share/classes/java/net/InetAddress.java
r2 r263 232 232 preferIPv6Address = java.security.AccessController.doPrivileged( 233 233 new GetBooleanAction("java.net.preferIPv6Addresses")).booleanValue(); 234 AccessController.doPrivileged(new LoadLibraryAction("net")); 234 boolean isOS2 = java.security.AccessController.doPrivileged( 235 new GetPropertyAction("os.name")).startsWith("OS/2"); 236 AccessController.doPrivileged(new LoadLibraryAction(isOS2 ? "jnet" 237 : "net")); 235 238 init(); 236 239 } -
trunk/openjdk/jdk/src/share/classes/java/net/NetworkInterface.java
r2 r263 53 53 54 54 static { 55 AccessController.doPrivileged(new LoadLibraryAction("net")); 55 boolean isOS2 = java.security.AccessController.doPrivileged( 56 new GetPropertyAction("os.name")).startsWith("OS/2"); 57 AccessController.doPrivileged(new LoadLibraryAction(isOS2 ? "jnet" 58 : "net")); 56 59 init(); 57 60 } -
trunk/openjdk/jdk/src/share/classes/sun/awt/NativeLibLoader.java
r2 r263 54 54 */ 55 55 static void loadLibraries() { 56 boolean isOS2 = java.security.AccessController.doPrivileged( 57 new sun.security.action.GetPropertyAction("os.name")). 58 startsWith("OS/2"); 56 59 java.security.AccessController.doPrivileged( 57 new sun.security.action.LoadLibraryAction("awt")); 60 new sun.security.action.LoadLibraryAction(isOS2 ? "jawtos2" 61 : "awt")); 58 62 } 59 63 } -
trunk/openjdk/jdk/src/share/classes/sun/awt/image/ImagingLib.java
r203 r263 98 98 try { 99 99 if (System.getProperty("os.name").startsWith("OS/2")) { 100 System.loadLibrary(" mlibimg");100 System.loadLibrary("jmlibimg"); 101 101 } else { 102 102 System.loadLibrary("mlib_image"); -
trunk/openjdk/jdk/src/share/classes/sun/awt/image/JPEGImageDecoder.java
r2 r263 54 54 55 55 static { 56 boolean isOS2 = java.security.AccessController.doPrivileged( 57 new sun.security.action.GetPropertyAction("os.name")). 58 startsWith("OS/2"); 56 59 java.security.AccessController.doPrivileged( 57 new sun.security.action.LoadLibraryAction("jpeg")); 60 new sun.security.action.LoadLibraryAction(isOS2 ? "jjpeg" 61 : "jpeg")); 58 62 initIDs(InputStreamClass); 59 63 RGBcolormodel = new DirectColorModel(24, 0xff0000, 0xff00, 0xff); -
trunk/openjdk/jdk/src/share/classes/sun/awt/image/NativeLibLoader.java
r2 r263 54 54 */ 55 55 static void loadLibraries() { 56 java.security.AccessController.doPrivileged 57 (new sun.security.action.LoadLibraryAction("awt")); 56 boolean isOS2 = java.security.AccessController.doPrivileged( 57 new sun.security.action.GetPropertyAction("os.name")). 58 startsWith("OS/2"); 59 java.security.AccessController.doPrivileged( 60 new sun.security.action.LoadLibraryAction(isOS2 ? "jawtos2" 61 : "awt")); 58 62 } 59 63 } -
trunk/openjdk/jdk/src/share/classes/sun/font/FontManagerNativeLibrary.java
r202 r263 34 34 public Object run() { 35 35 /* REMIND do we really have to load awt here? */ 36 System.loadLibrary("awt"); 36 if (System.getProperty("os.name").startsWith("OS/2")) { 37 System.loadLibrary("jawtos2"); 38 } else { 39 System.loadLibrary("awt"); 40 } 37 41 if (SunGraphicsEnvironment.isOpenJDK() && 38 42 System.getProperty("os.name").startsWith("Windows")) { … … 60 64 } 61 65 if (System.getProperty("os.name").startsWith("OS/2")) { 62 System.loadLibrary(" fontmgr");66 System.loadLibrary("jfontmgr"); 63 67 } else { 64 68 System.loadLibrary("fontmanager"); -
trunk/openjdk/jdk/src/share/classes/sun/instrument/InstrumentationImpl.java
r203 r263 273 273 static { 274 274 if (System.getProperty("os.name").startsWith("OS/2")) { 275 System.loadLibrary(" instrmnt");275 System.loadLibrary("jinstr"); 276 276 } else { 277 277 System.loadLibrary("instrument"); -
trunk/openjdk/jdk/src/share/classes/sun/java2d/Disposer.java
r2 r263 56 56 57 57 static { 58 boolean isOS2 = java.security.AccessController.doPrivileged( 59 new sun.security.action.GetPropertyAction("os.name")). 60 startsWith("OS/2"); 58 61 java.security.AccessController.doPrivileged( 59 new sun.security.action.LoadLibraryAction("awt")); 62 new sun.security.action.LoadLibraryAction(isOS2 ? "jawtos2" 63 : "awt")); 60 64 initIDs(); 61 65 String type = (String) java.security.AccessController.doPrivileged( -
trunk/openjdk/jdk/src/share/classes/sun/java2d/cmm/lcms/LCMS.java
r2 r263 92 92 * disposer frameworks 93 93 */ 94 System.loadLibrary("awt"); 95 System.loadLibrary("lcms"); 94 if (System.getProperty("os.name").startsWith("OS/2")) { 95 System.loadLibrary("jawtos2"); 96 System.loadLibrary("jlcms"); 97 } else { 98 System.loadLibrary("awt"); 99 System.loadLibrary("lcms"); 100 } 96 101 return null; 97 102 } -
trunk/openjdk/jdk/src/share/classes/sun/management/ManagementFactory.java
r203 r263 49 49 import java.security.PrivilegedExceptionAction; 50 50 import sun.security.action.LoadLibraryAction; 51 import sun.security.action.GetPropertyAction; 51 52 52 53 import java.util.ArrayList; … … 483 484 484 485 static { 485 if (System.getProperty("os.name").startsWith("OS/2")) { 486 AccessController.doPrivileged(new LoadLibraryAction("mngemnt")); 487 } else { 488 AccessController.doPrivileged(new LoadLibraryAction("management")); 489 } 486 boolean isOS2 = AccessController.doPrivileged( 487 new GetPropertyAction("os.name")).startsWith("OS/2"); 488 AccessController.doPrivileged(new LoadLibraryAction(isOS2 ? "jmngmnt" 489 : "management")); 490 490 jvm = new VMManagementImpl(); 491 491 } -
trunk/openjdk/jdk/src/share/classes/sun/net/spi/DefaultProxySelector.java
r2 r263 89 89 }}); 90 90 if (b != null && b.booleanValue()) { 91 boolean isOS2 = java.security.AccessController.doPrivileged( 92 new sun.security.action.GetPropertyAction("os.name")). 93 startsWith("OS/2"); 91 94 java.security.AccessController.doPrivileged( 92 new sun.security.action.LoadLibraryAction("net")); 95 new sun.security.action.LoadLibraryAction(isOS2 ? "jnet" 96 : "net")); 93 97 hasSystemProxies = init(); 94 98 } -
trunk/openjdk/jdk/src/share/classes/sun/nio/ch/Util.java
r2 r263 354 354 return; 355 355 loaded = true; 356 java.security.AccessController 357 .doPrivileged(new sun.security.action.LoadLibraryAction("net")); 358 java.security.AccessController 359 .doPrivileged(new sun.security.action.LoadLibraryAction("nio")); 356 boolean isOS2 = java.security.AccessController.doPrivileged( 357 new sun.security.action.GetPropertyAction("os.name")). 358 startsWith("OS/2"); 359 java.security.AccessController.doPrivileged( 360 new sun.security.action.LoadLibraryAction(isOS2 ? "jnet" 361 : "net")); 362 java.security.AccessController.doPrivileged( 363 new sun.security.action.LoadLibraryAction(isOS2 ? "jnio" 364 : "nio")); 360 365 // IOUtil must be initialized; Its native methods are called from 361 366 // other places in native nio code so they must be set up. -
trunk/openjdk/jdk/src/share/classes/sun/rmi/server/MarshalInputStream.java
r2 r263 112 112 */ 113 113 static { 114 boolean isOS2 = java.security.AccessController.doPrivileged( 115 new sun.security.action.GetPropertyAction("os.name")). 116 startsWith("OS/2"); 114 117 java.security.AccessController.doPrivileged( 115 new sun.security.action.LoadLibraryAction("rmi")); 118 new sun.security.action.LoadLibraryAction(isOS2 ? "jrmi" 119 : "rmi")); 116 120 } 117 121 -
trunk/openjdk/jdk/src/share/classes/sun/tools/attach/HotSpotVirtualMachine.java
r203 r263 102 102 try { 103 103 if (System.getProperty("os.name").startsWith("OS/2")) { 104 loadAgentLibrary(" instrmnt", args);104 loadAgentLibrary("jinstr", args); 105 105 } else { 106 106 loadAgentLibrary("instrument", args); -
trunk/openjdk/jdk/src/share/demo/jvmti/hprof/hprof.h
r2 r263 78 78 /* How the options get to OnLoad: */ 79 79 80 #ifdef __WIN32OS2__ 81 #define AGENTNAME "jhprof" 82 #else 80 83 #define AGENTNAME "hprof" 84 #endif 85 81 86 #define XRUN "-Xrun" AGENTNAME 82 87 #define AGENTLIB "-agentlib:" AGENTNAME -
trunk/openjdk/jdk/src/solaris/classes/sun/net/dns/ResolverConfigurationImpl.java
r2 r263 244 244 245 245 static { 246 boolean isOS2 = java.security.AccessController.doPrivileged( 247 new sun.security.action.GetPropertyAction("os.name")). 248 startsWith("OS/2"); 246 249 java.security.AccessController.doPrivileged( 247 new sun.security.action.LoadLibraryAction("net")); 250 new sun.security.action.LoadLibraryAction(isOS2 ? "jnet" 251 : "net")); 248 252 } 249 253 -
trunk/openjdk/jdk/src/solaris/classes/sun/print/CUPSPrinter.java
r2 r263 77 77 static { 78 78 // load awt library to access native code 79 boolean isOS2 = java.security.AccessController.doPrivileged( 80 new sun.security.action.GetPropertyAction("os.name")). 81 startsWith("OS/2"); 79 82 java.security.AccessController.doPrivileged( 80 new sun.security.action.LoadLibraryAction("awt")); 83 new sun.security.action.LoadLibraryAction(isOS2 ? "jawtos2" 84 : "awt")); 81 85 libFound = initIDs(); 82 86 if (libFound) { -
trunk/openjdk/jdk/src/windows/classes/com/sun/tools/jdi/SharedMemoryAttachingConnector.java
r2 r263 51 51 transport = new Transport() { 52 52 public String name() { 53 if (System.getProperty("os.name").startsWith("OS/2")) 54 return "jdtshmem"; 53 55 return "dt_shmem"; // for compatability reasons 54 56 } -
trunk/openjdk/jdk/src/windows/classes/com/sun/tools/jdi/SharedMemoryListeningConnector.java
r2 r263 50 50 transport = new Transport() { 51 51 public String name() { 52 if (System.getProperty("os.name").startsWith("OS/2")) 53 return "jdtshmem"; 52 54 return "dt_shmem"; // compatability 53 55 } -
trunk/openjdk/jdk/src/windows/classes/com/sun/tools/jdi/SharedMemoryTransportService.java
r2 r263 67 67 68 68 SharedMemoryTransportService() { 69 System.loadLibrary("dt_shmem"); 69 final String shmemLib = 70 System.getProperty("os.name").startsWith("OS/2") ? "jdtshmem" 71 : "dt_shmem"; 72 System.loadLibrary(shmemLib); 70 73 initialize(); 71 74 } -
trunk/openjdk/jdk/src/windows/classes/sun/awt/shell/Win32ShellFolderManager2.java
r2 r263 34 34 import java.util.*; 35 35 import sun.security.action.LoadLibraryAction; 36 import sun.security.action.GetPropertyAction; 36 37 37 38 import static sun.awt.shell.Win32ShellFolder2.*; … … 52 53 static { 53 54 // Load library here 54 AccessController.doPrivileged(new LoadLibraryAction("awt")); 55 boolean isOS2 = AccessController.doPrivileged(new GetPropertyAction("os.name")).startsWith("OS/2"); 56 AccessController.doPrivileged(new LoadLibraryAction(isOS2 ? "jawtos2" : "awt")); 55 57 } 56 58 -
trunk/openjdk/jdk/src/windows/classes/sun/awt/windows/WToolkit.java
r2 r263 87 87 public static void loadLibraries() { 88 88 if (!loaded) { 89 boolean isOS2 = java.security.AccessController.doPrivileged( 90 new sun.security.action.GetPropertyAction("os.name")). 91 startsWith("OS/2"); 89 92 java.security.AccessController.doPrivileged( 90 new sun.security.action.LoadLibraryAction("awt")); 93 new sun.security.action.LoadLibraryAction(isOS2 ? "jawtos2" 94 : "awt")); 91 95 loaded = true; 92 96 } -
trunk/openjdk/jdk/src/windows/classes/sun/net/dns/ResolverConfigurationImpl.java
r2 r263 160 160 161 161 static { 162 boolean isOS2 = java.security.AccessController.doPrivileged( 163 new sun.security.action.GetPropertyAction("os.name")). 164 startsWith("OS/2"); 162 165 java.security.AccessController.doPrivileged( 163 new sun.security.action.LoadLibraryAction("net")); 166 new sun.security.action.LoadLibraryAction(isOS2 ? "jnet" 167 : "net")); 164 168 init0(); 165 169 -
trunk/openjdk/jdk/src/windows/classes/sun/print/Win32PrintServiceLookup.java
r2 r263 56 56 57 57 static { 58 boolean isOS2 = java.security.AccessController.doPrivileged( 59 new sun.security.action.GetPropertyAction("os.name")). 60 startsWith("OS/2"); 58 61 java.security.AccessController.doPrivileged( 59 new sun.security.action.LoadLibraryAction("awt")); 62 new sun.security.action.LoadLibraryAction(isOS2 ? "jawtos2" 63 : "awt")); 60 64 } 61 65 -
trunk/openjdk/jdk/src/windows/classes/sun/security/mscapi/SunMSCAPI.java
r203 r263 52 52 public Object run() { 53 53 if (System.getProperty("os.name").startsWith("OS/2")) { 54 System.loadLibrary(" smscapi");54 System.loadLibrary("jsmscapi"); 55 55 } else { 56 56 System.loadLibrary("sunmscapi"); -
trunk/openjdk/jdk/src/windows/native/sun/windows/UnicowsLoader.cpp
r195 r263 77 77 // an infinite loop if some W call were made inside AwtToolkit class 78 78 // initialization. 79 #ifdef __WIN32OS2__ 80 HMODULE hmodAWT = GetModuleHandleA("jawtos2"); 81 #else 79 82 HMODULE hmodAWT = GetModuleHandleA("awt"); 83 #endif 80 84 LPSTR abspath = static_cast<LPSTR>(safe_Malloc(MAX_PATH)); 81 85 if (abspath != NULL) { -
trunk/openjdk/jdk/src/windows/native/sun/windows/awt_Mlib.cpp
r203 r263 50 50 */ 51 51 #ifdef __WIN32OS2__ 52 hDLL = ::LoadLibrary(TEXT(" mlibimg.dll"));52 hDLL = ::LoadLibrary(TEXT("jmlibimg.dll")); 53 53 #else 54 54 hDLL = ::LoadLibrary(TEXT("mlib_image.dll")); -
trunk/openjdk/jdk/src/windows/npt/npt_md.h
r2 r263 34 34 #include <errno.h> 35 35 36 #ifdef __WIN32OS2__ 37 #define NPT_LIBNAME "jnpt.dll" 38 #else 36 39 #define NPT_LIBNAME "npt.dll" 40 #endif 37 41 38 42 #define NPT_INITIALIZE(pnpt,version,options) \
Note:
See TracChangeset
for help on using the changeset viewer.