Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
9fc4d94d04f972782fee2dc5b3b25d052d88601a
/
.
/
compiler
/
testData
/
codegen
/
box
/
fullJdk
/
ifInWhile.kt
blob: 8831f244021ac4463c2f0274ecb087739e355029 [
file
]
// TARGET_BACKEND: JVM
// FULL_JDK
fun box
()
:
String
{
val processors
=
Runtime
.
getRuntime
()!!.
availableProcessors
()
var
threadNum
=
1
while
(
threadNum
<=
1024
)
{
if
(
threadNum
<
2
*
processors
)
threadNum
+=
1
else
threadNum
*=
2
}
return
"OK"
}