Changeset 274 for trunk/openjdk/jdk/make


Ignore:
Timestamp:
Mar 9, 2011, 9:38:55 PM (14 years ago)
Author:
dmik
Message:

jdk: Provide common DllMain() code that calls static destructors when the DLL is detached from the process at termination and use it in JAWTOS2.DLL and JSOUND*.DLL. This fixes crashes in WGSS50.DLL and KERNEL32.DLL during Java process termination when running some applications (e.g. any application using sound, see #78 for details).

Location:
trunk/openjdk/jdk/make
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/openjdk/jdk/make/common/Library.gmk

    r245 r274  
    340340OTHER_INCLUDES += -I$(PLATFORM_SRC_OS2)/native/common
    341341OTHER_INCLUDES += -I$(PLATFORM_SRC_OS2)/native/$(PKGDIR)
     342# path to common code used by many DLLs
     343vpath %.cpp $(PLATFORM_SRC_OS2)/native/common
    342344endif
    343345
  • trunk/openjdk/jdk/make/javax/sound/FILES_c.gmk

    r255 r274  
    3333        PLATFORM_API_SolarisOS_PCM.c
    3434
    35 FILES_linux = 
     35FILES_linux =
    3636
    3737FILES_windows = \
     
    4646        PLATFORM_API_WinOS_Util.c \
    4747        PLATFORM_API_WinOS_Ports.c
    48        
     48
     49ifeq ($(PLATFORM), os2)
     50FILES_cpp += \
     51        jdk_DllMain.cpp
     52endif
     53
    4954FILES_export = \
    5055        com/sun/media/sound/Platform.java
  • trunk/openjdk/jdk/make/javax/sound/jsoundds/Makefile

    r255 r274  
    4747        PLATFORM_API_WinOS_DirectSound.cpp
    4848
     49ifeq ($(PLATFORM), os2)
     50FILES_cpp += \
     51        jdk_DllMain.cpp
     52endif
     53
    4954FILES_export = \
    5055        $(DAUDIOFILES_export)
  • trunk/openjdk/jdk/make/sun/awt/Makefile

    r263 r274  
    9494include FILES_export_windows.gmk
    9595
    96 FILES_c += awt_init.c
     96FILES_cpp += jdk_DllMain.cpp
    9797
    9898#
Note: See TracChangeset for help on using the changeset viewer.