Bug 238753 - [PlayStation] Enable libpas.
Summary: [PlayStation] Enable libpas.
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: bmalloc (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Basuke Suzuki
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2022-04-04 12:14 PDT by Basuke Suzuki
Modified: 2022-04-05 11:47 PDT (History)
11 users (show)

See Also:


Attachments
PATCH (1.35 KB, patch)
2022-04-04 12:20 PDT, Basuke Suzuki
no flags Details | Formatted Diff | Diff
PATCH (5.20 KB, patch)
2022-04-04 12:22 PDT, Basuke Suzuki
no flags Details | Formatted Diff | Diff
PATCH (9.45 KB, patch)
2022-04-04 14:27 PDT, Basuke 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 Basuke Suzuki 2022-04-04 12:14:40 PDT
It's ready.
Comment 1 Basuke Suzuki 2022-04-04 12:20:10 PDT
Created attachment 456604 [details]
PATCH
Comment 2 Basuke Suzuki 2022-04-04 12:22:44 PDT
Created attachment 456605 [details]
PATCH
Comment 3 Yusuke Suzuki 2022-04-04 12:51:03 PDT
Comment on attachment 456605 [details]
PATCH

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

Nice, some early comments.

> Source/bmalloc/libpas/src/libpas/pas_platform.h:178
> +#if !defined(alignof)
> +#define alignof _Alignof
> +#endif

Let's define `PAS_ALIGNOF`

> Source/bmalloc/libpas/src/libpas/pas_thread_local_cache.c:53
> +#if PAS_PLATFORM(PLAYSTATION)
> +#include <pthread_np.h>
> +#define pthread_getname_np(a, b, c) pthread_get_name_np(a, b)
> +#endif

Probably you can just add this switch in dump_thread_diagnostics function directly since it is the only one function using pthread_get_name_np.
Comment 4 Basuke Suzuki 2022-04-04 13:33:36 PDT
Comment on attachment 456605 [details]
PATCH

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

Thanks for the quick comment.

>> Source/bmalloc/libpas/src/libpas/pas_platform.h:178
>> +#endif
> 
> Let's define `PAS_ALIGNOF`

Good idea. Thanks. Our some of our old platform doesn't support C11 correctly.

>> Source/bmalloc/libpas/src/libpas/pas_thread_local_cache.c:53
>> +#endif
> 
> Probably you can just add this switch in dump_thread_diagnostics function directly since it is the only one function using pthread_get_name_np.

Sounds good.
Comment 5 Basuke Suzuki 2022-04-04 14:27:08 PDT
Created attachment 456633 [details]
PATCH
Comment 6 Yusuke Suzuki 2022-04-04 15:38:20 PDT
Comment on attachment 456633 [details]
PATCH

r=me
Comment 7 Basuke Suzuki 2022-04-05 10:59:57 PDT
Comment on attachment 456633 [details]
PATCH

All green. Thanks! Yusuke!
Comment 8 EWS 2022-04-05 11:46:21 PDT
Committed r292407 (249270@main): <https://commits.webkit.org/249270@main>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 456633 [details].
Comment 9 Radar WebKit Bug Importer 2022-04-05 11:47:15 PDT
<rdar://problem/91307116>