-
Notifications
You must be signed in to change notification settings - Fork 564
Conversation
d8fdbc7
to
e840058
Compare
/** | ||
* If the memory leak checker is activated, by default true in debug mode, false in release. | ||
* When memory leak checker is activated, and leak detected on process termination process | ||
* is terminated with non-zero exit code. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, forgot to push update doc.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Error message without termination is somewhat undiscoverable (including leaks in Kotlin/Native tests). Why not terminate?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well, OK, will update message as well.
* When memory leak checker is activated, and leak detected on process termination process | ||
* is terminated with non-zero exit code. | ||
*/ | ||
public var hasMemoryLeakChecker: Boolean |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The name doesn't correspond to the behaviour.
Maybe isMemoryLeakCheckerEnabled
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Renamed.
* is terminated with non-zero exit code. | ||
* If the memory leak checker is activated, by default `true` in debug mode, `false` in release. | ||
* When memory leak checker is activated, and leak is detected during last Kotlin/Native runtime | ||
* deinitialization process - error message with leak information is printed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
during last Kotlin/Native runtime deinitialization process
This is unclear. Maybe align the terms with workers?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What would you suggest?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Workers seem to use "Kotlin context":
* Return the current worker. Worker context is accessible to any valid Kotlin context, |
I suggest using the same phrase here, maybe described more verbosely (like "workers and platform threads ran Kotlin code"). Or maybe keep only the description, without "Kotlin context".
a0a16d4
to
8b0235f
Compare
No description provided.