On Tue, 6 Sep 2022 01:19:07 GMT, Leslie Zhai <lz...@openjdk.org> wrote:

> Hi,
> 
> 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
> +
> 
> 
> Please review my patch.
> 
> Thanks,
> Leslie Zhai

Hi @xiangzhai , I suggest that you enable [the GitHub Actions of your 
repo](https://github.com/xiangzhai/jfx/actions) and trigger the tests. FYI, 
[8293338: Enable manually triggering the GitHub 
workflow](https://github.com/openjdk/jfx/pull/891).

-------------

PR: https://git.openjdk.org/jfx/pull/892

Reply via email to