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

add_definitions USE_SYSTEM_MALLOC when USE_SYSTEM_MALLOC is ON

XMLWordPrintable

    • web
    • b03

        jfx web failed to build when `USE_SYSTEM_MALLOC` is `ON`:

        ```
        jfx/modules/javafx.web/build/linux/Release/WTF/Headers/wtf/Platform.h:58,
        jfx/modules/javafx.web/build/linux/Release/WTF/Headers/wtf/Assertions.h:28,
        jfx/modules/javafx.web/src/main/native/Source/WebCore/platform/java/WebKitLogging.h:31,
        jfx/modules/javafx.web/src/main/native/Source/WebCore/platform/java/WebKitLogging.cpp:28,
        jfx/modules/javafx.web/build/linux/Release/WebCore/DerivedSources/unified-sources/UnifiedSource-3c72abbe-47.cpp:1:
        jfx/modules/javafx.web/build/linux/Release/WTF/Headers/wtf/PlatformUse.h:351:10: fatal error: bmalloc/BPlatform.h: No such file or directory
          #include <bmalloc/BPlatform.h>
                   ^~~~~~~~~~~~~~~~~~~~~
         compilation terminated.
        ```

        After commit `6f28d912024495278c4c35ab054bc2aab480b3e4`:

        ```
        diff --git a/modules/javafx.web/src/main/native/Source/WTF/wtf/PlatformUse.h b/modules/javafx.web/src/main/native/Source/WTF/wtf/PlatformUse.h
        index 70c047813f..d30291697a 100644
        --- a/modules/javafx.web/src/main/native/Source/WTF/wtf/PlatformUse.h
        +++ b/modules/javafx.web/src/main/native/Source/WTF/wtf/PlatformUse.h

        ...

         #if PLATFORM(IOS_FAMILY)
         #define USE_SANDBOX_EXTENSIONS_FOR_CACHE_AND_TEMP_DIRECTORY_ACCESS 1
         #endif
        +
        +#if !defined(USE_LIBPAS_JIT_HEAP) && !USE(SYSTEM_MALLOC)
        +#include <bmalloc/BPlatform.h>
        +#if BENABLE(LIBPAS)
        +#if PLATFORM(MAC) && CPU(ARM64)
        +#define USE_LIBPAS_JIT_HEAP 1
        +#endif
        +#endif
        +#endif
        +
        ```

              lzhai Leslie Zhai
              lzhai Leslie Zhai
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: