firefox-devtools / firefox-devtools/profiler
Idle java threads fill entire timeline
- Dominant language
- TypeScript
- Stars
- 1.5k
- Forks
- 491
- Avg merge
- 3d 5h
- Merged PRs (30d)
- 30
Description
_See also https://bugzilla.mozilla.org/show_bug.cgi?id=1766532 for required platform changes._
Idle java threads (except for the main thread) are unexpectedly filling the timeline while idle:

See this profile: https://share.firefox.dev/3vOqsBy
We should do what we do for the java main thread where the idling call doesn't appear on the timeline. The two methods that seem to trigger this are:
* `java.lang.Object.wait`
* `org.mozilla.gecko.mozglue.GeckoLoader.nativeRun`
One issue is that there may be legitimate uses of `Object.wait` that we want to see in the timeline but using it is discouraged over higher-level concurrency APIs so it's probably okay.
┆Issue is synchronized with this [Jira Task](https://mozilla-hub.atlassian.net/browse/FP-542)
Contributor guide
Assessment
This issue has not been assessed yet.