Scripting: implement correct disposal of REPL state on finalization
#KT-47927 fixed
This commit is contained in:
committed by
TeamCityServer
parent
a45e31720c
commit
4243bafd1d
+4
@@ -37,6 +37,10 @@ class JvmReplCompilerState<CompilationT : JvmReplCompilerState.Compilation>(
|
||||
}
|
||||
}
|
||||
|
||||
protected fun finalize() {
|
||||
dispose()
|
||||
}
|
||||
|
||||
fun getCompilationState(scriptCompilationConfiguration: ScriptCompilationConfiguration): CompilationT = lock.write {
|
||||
if (_compilation == null) {
|
||||
initializeCompilation(scriptCompilationConfiguration)
|
||||
|
||||
Reference in New Issue
Block a user