DALVIK THREADS (226): "main" prio=5 tid=1 Runnable | group="main" sCount=0 ucsCount=0 flags=0 obj=0x714acbb0 self=0xb400007416e10800 | sysTid=14827 nice=-10 cgrp=default sched=0/0 handle=0x74c2f26500 | state=R schedstat=( 115021450752 1125156276 11142 ) utm=11377 stm=124 core=7 HZ=100 | stack=0x7fdfbd7000-0x7fdfbd9000 stackSize=8188KB | held mutexes= "mutator lock"(shared held) at androidx.viewpager.widget.ViewPager.populate(ViewPager.java:1171) at androidx.viewpager.widget.ViewPager.populate(ViewPager.java:1092) at androidx.viewpager.widget.ViewPager.onMeasure(ViewPager.java:1622) at android.view.View.measure(View.java:25977) at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:7073) at android.widget.FrameLayout.onMeasure(FrameLayout.java:194) at android.view.View.measure(View.java:25977) at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:7073) at android.widget.FrameLayout.onMeasure(FrameLayout.java:194) at android.view.View.measure(View.java:25977) at android.widget.RelativeLayout.measureChildHorizontal(RelativeLayout.java:735) at android.widget.RelativeLayout.onMeasure(RelativeLayout.java:481) at android.view.View.measure(View.java:25977) at android.widget.RelativeLayout.measureChild(RelativeLayout.java:696) at android.widget.RelativeLayout.onMeasure(RelativeLayout.java:499) at android.view.View.measure(View.java:25977) at android.widget.LinearLayout.measureHorizontal(LinearLayout.java:1185) at android.widget.LinearLayout.onMeasure(LinearLayout.java:723) at android.view.View.measure(View.java:25977) at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:7073) at android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1552) at android.widget.LinearLayout.measureHorizontal(LinearLayout.java:1204) at android.widget.LinearLayout.onMeasure(LinearLayout.java:723) at android.view.View.measure(View.java:25977) at android.widget.RelativeLayout.measureChildHorizontal(RelativeLayout.java:735) at android.widget.RelativeLayout.onMeasure(RelativeLayout.java:481) at android.view.View.measure(View.java:25977) at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:7073) at android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1552) at android.widget.LinearLayout.measureVertical(LinearLayout.java:842) at android.widget.LinearLayout.onMeasure(LinearLayout.java:721)
void populate(int newCurrentItem) { ... ... // Fill 3x the available width or up to the number of offscreen // pages requested to either side, whichever is larger. // If we have no current item we have no work to do. if (curItem != null) { for (int pos = mCurItem - 1; pos >= 0; pos--) { // 超大整数导致循环执行超时 } } ... ... }