Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions utbot-junit-contest/src/main/kotlin/org/utbot/contest/Contest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ fun runGeneration(
setOptions()
//will not be executed in real contest
logger.info().bracket("warmup: 1st optional soot initialization and executor warmup (not to be counted in time budget)") {
TestCaseGenerator(listOf(cut.classfileDir.toPath()), classpathString, dependencyPath, JdkInfoService.provide())
TestCaseGenerator(listOf(cut.classfileDir.toPath()), classpathString, dependencyPath, JdkInfoService.provide(), forceSootReload = false)
}
logger.info().bracket("warmup (first): kotlin reflection :: init") {
prepareClass(ConcreteExecutorPool::class.java, "")
Expand Down Expand Up @@ -241,7 +241,7 @@ fun runGeneration(

val testCaseGenerator =
logger.info().bracket("2nd optional soot initialization") {
TestCaseGenerator(listOf(cut.classfileDir.toPath()), classpathString, dependencyPath, JdkInfoService.provide())
TestCaseGenerator(listOf(cut.classfileDir.toPath()), classpathString, dependencyPath, JdkInfoService.provide(), forceSootReload = false)
}


Expand Down Expand Up @@ -366,8 +366,11 @@ fun runGeneration(
controller.job = job

//don't start other methods while last method still in progress
while (job.isActive)
yield()
try {
job.join()
} catch (t: Throwable) {
logger.error(t) { "Internal job error" }
}

remainingMethodsCount--
}
Expand Down