This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.memorytest | |
import platform.Foundation.NSProcessInfo | |
import kotlin.native.internal.GC | |
import kotlin.test.Test | |
// Test case displaying apparent memory leak in macOS. Watch process memory usage in | |
// Activity Monitor (sort by PID descending to view it at the top when test is run). | |
// Usage should increase over 25 second period and never go down even after GC collect. | |
// |