mirror of
https://github.com/servo/servo.git
synced 2025-09-27 23:30:08 +01:00
Enable LinuxSampler to be used on Android (#37784)
This enables `background_hang_monitor` to work on Android. Relevant Zulip thread: [#general > Android stack walking questions @ 💬](https://servo.zulipchat.com/#narrow/channel/263398-general/topic/Android.20stack.20walking.20questions/near/526369883) Testing: Manually tested on a Pixel 6a with Android 16 with following page: ```html <!DOCTYPE html> <html> <head> <title>Infinite Loop Test</title> </head> <body> Will it print? That is the question. </body> <script> console.log("hello. you're about to loop infinitely."); while (true) { //do nothing, just block the thread } </script> </html> ``` Fixes: #23136 --------- Signed-off-by: CarePackage17 <5157010+CarePackage17@users.noreply.github.com>
This commit is contained in:
parent
60c10d710d
commit
f682f9d6f5
3 changed files with 7 additions and 1 deletions
|
@ -17,6 +17,8 @@ mod sampler;
|
|||
))
|
||||
))]
|
||||
mod sampler_linux;
|
||||
#[cfg(all(feature = "sampler", target_os = "android"))]
|
||||
mod sampler_linux;
|
||||
#[cfg(all(feature = "sampler", target_os = "macos"))]
|
||||
mod sampler_mac;
|
||||
#[cfg(all(feature = "sampler", target_os = "windows"))]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue