Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6666494

Add compiler option to reduce binaries linked with UpdateConf.cpp

XMLWordPrintable

    • b21
    • x86
    • windows_xp
    • Not verified

        deploy/src/plugin/win32/regutils/UpdateConf.cpp is included and recompiled for several install binaries. Each binary does not necessarily use all of the functions, but without the /Gy compiler option to enable function level linking along with the /OPT:REF linker option, the linker cannot eliminate functions that are never referenced. http://msdn2.microsoft.com/en-us/library/bxwfs976(VS.80).aspx

        Adding -Gy to CXXFLAGS in deploy/make/plugin/regutilsmsi/Makefile reduced the size of the DLL by 8 KB.

        The following use UpdateConf.cpp:
        plugin/jupdate/checker - jucheck.exe
        plugin/jupdate/scheduler - jusched.exe
        plugin/regutils - regutils.dll
        plugin/regutilsmsi - regutilsmsi.dll
        installer/bundles/windows/ishield/wrapper/wrapper.jdk/
        installer/bundles/windows/ishield/wrapper/wrapper.jre/Makefile
        installer/bundles/windows/ishield/wrapper/wrapper.jre/Makefile.sponsor
        installer/bundles/windows/ishield/wrapper_online/jre/
        installer/bundles/windows/ishield/wrapper_online/sdk/

              cgruszka Chris Gruszka (Inactive)
              cgruszka Chris Gruszka (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: