Kill RootSession on low memory
This commit is contained in:
@@ -46,6 +46,12 @@ class RootSession : AutoCloseable {
|
||||
instance.haltTimeout()
|
||||
return instance.Transaction()
|
||||
}
|
||||
|
||||
fun trimMemory() = monitor.withLock {
|
||||
val instance = instance ?: return
|
||||
instance.haltTimeout()
|
||||
instance.close()
|
||||
}
|
||||
}
|
||||
|
||||
class UnexpectedOutputException(msg: String) : RuntimeException(msg)
|
||||
|
||||
Reference in New Issue
Block a user