Bug 235232 - [JSC] Fix Linux 64bit compilation
Summary: [JSC] Fix Linux 64bit compilation
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Yusuke Suzuki
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2022-01-14 07:40 PST by Mikhail R. Gadelha
Modified: 2022-01-14 19:16 PST (History)
15 users (show)

See Also:


Attachments
Patch (3.60 KB, patch)
2022-01-14 07:44 PST, Mikhail R. Gadelha
no flags Details | Formatted Diff | Diff
Patch (3.60 KB, patch)
2022-01-14 08:45 PST, Mikhail R. Gadelha
no flags Details | Formatted Diff | Diff
Patch (4.13 KB, patch)
2022-01-14 12:26 PST, Mikhail R. Gadelha
no flags Details | Formatted Diff | Diff
Patch (5.22 KB, patch)
2022-01-14 13:49 PST, Yusuke Suzuki
ews-feeder: commit-queue-
Details | Formatted Diff | Diff
Patch (4.99 KB, patch)
2022-01-14 13:52 PST, Yusuke Suzuki
no flags Details | Formatted Diff | Diff
Patch (4.98 KB, patch)
2022-01-14 13:59 PST, Yusuke Suzuki
no flags Details | Formatted Diff | Diff
Patch (5.60 KB, patch)
2022-01-14 14:21 PST, Yusuke Suzuki
no flags Details | Formatted Diff | Diff
Patch (7.33 KB, patch)
2022-01-14 14:24 PST, Yusuke Suzuki
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Mikhail R. Gadelha 2022-01-14 07:40:10 PST
[JSC] Fix Linux 64bit compilation
Comment 1 Mikhail R. Gadelha 2022-01-14 07:44:29 PST
Created attachment 449172 [details]
Patch
Comment 2 Keith Miller 2022-01-14 08:39:22 PST
Comment on attachment 449172 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=449172&action=review

> Source/WTF/wtf/PlatformUse.h:358
> +#if PLATFORM(MAC)

I think this should be `OS(DARWIN)` since `PLATFORM(MAC)` is just macOS and not iOS/tvOS/watchOS, IIRC.
Comment 3 Mikhail R. Gadelha 2022-01-14 08:45:13 PST
Created attachment 449176 [details]
Patch
Comment 4 Yusuke Suzuki 2022-01-14 09:47:14 PST
Comment on attachment 449176 [details]
Patch

This is not correct since PAS_USE_SPINLOCKS should be 1.
Comment 5 Mikhail R. Gadelha 2022-01-14 12:26:19 PST
Created attachment 449204 [details]
Patch
Comment 6 Yusuke Suzuki 2022-01-14 12:42:03 PST
Comment on attachment 449204 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=449204&action=review

> Source/bmalloc/ChangeLog:11
> +        r287941 enabled jit-heap for all platforms and for some reason the  
> +        preprocessor was not identifying PAS_USE_SPINLOCKS as defined. This
> +        patch adds a #if defined(PAS_USE_SPINLOCKS) guard which fixes the
> +        issue.

We should investigate why it is.

> Source/bmalloc/libpas/src/libpas/pas_config.h:100
> +#if defined(PAS_BMALLOC)
>  #define PAS_USE_SPINLOCKS                1
>  #else
>  #define PAS_USE_SPINLOCKS                0

Regardless of the condition, PAS_USE_SPINLOCKS is defined. So the following change is incorrect.

> Source/bmalloc/libpas/src/libpas/pas_lock.h:54
> +#if defined(PAS_USE_SPINLOCKS)

This is not correct since PAS_USE_SPINLOCKS is always defined.
Comment 7 Yusuke Suzuki 2022-01-14 13:27:53 PST
I'll take it since it is mix of jitheap and https://trac.webkit.org/changeset/287968/webkit.
Comment 8 Yusuke Suzuki 2022-01-14 13:49:49 PST
Created attachment 449215 [details]
Patch
Comment 9 Yusuke Suzuki 2022-01-14 13:52:28 PST
Created attachment 449218 [details]
Patch
Comment 10 Yusuke Suzuki 2022-01-14 13:59:50 PST
Created attachment 449220 [details]
Patch
Comment 11 Yusuke Suzuki 2022-01-14 14:21:42 PST
Created attachment 449223 [details]
Patch
Comment 12 Yusuke Suzuki 2022-01-14 14:24:29 PST
Created attachment 449224 [details]
Patch
Comment 13 Mark Lam 2022-01-14 14:47:46 PST
Comment on attachment 449224 [details]
Patch

r=me too if EWS is happy.
Comment 14 EWS 2022-01-14 19:15:47 PST
Committed r288050 (246070@main): <https://commits.webkit.org/246070@main>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 449224 [details].
Comment 15 Radar WebKit Bug Importer 2022-01-14 19:16:18 PST
<rdar://problem/87629416>