Skip to content

Commit cb51bfd

Browse files
committed
Prevent memory leaks from stored test results and stored tracing processes that are actually obsolete
1 parent 87e7dfb commit cb51bfd

File tree

7 files changed

+10
-15
lines changed

7 files changed

+10
-15
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
process control
2+
releaseProcess
3+
4+
self assert: (self tracingProcessAndDescendants allSatisfy: [:p | p isTerminated]).
5+
tracingProcess := nil.

packages/Babylonian-Core.package/BPExampleTraceInformation.class/methodProperties.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"instance" : {
55
"isProcessSuspended" : "pre 1/12/2023 09:37",
66
"probes" : "jb 5/19/2021 19:35",
7+
"releaseProcess" : "pre 8/22/2023 12:01",
78
"resumeProcess" : "pre 1/12/2023 13:28",
89
"suspendProcess" : "pre 1/12/2023 13:27",
910
"terminateTracingProcess" : "pre 1/12/2023 13:28",

packages/Babylonian-ExampleMining.package/BPTestCaseExample.class/instance/runOn..st

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ executing
22
runOn: unused
33

44
self testCaseClass ifNotNil: [
5-
self testResult: (self testCaseClass run: self methodSelector)]
5+
self testCaseClass run: self methodSelector]

packages/Babylonian-ExampleMining.package/BPTestCaseExample.class/instance/testResult..st

Lines changed: 0 additions & 4 deletions
This file was deleted.

packages/Babylonian-ExampleMining.package/BPTestCaseExample.class/instance/testResult.st

Lines changed: 0 additions & 4 deletions
This file was deleted.

packages/Babylonian-ExampleMining.package/BPTestCaseExample.class/methodProperties.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,7 @@
88
"methodSelector" : "joabe 7/10/2023 16:01",
99
"methodSelector:" : "joabe 7/10/2023 16:01",
1010
"morphClass" : "joabe 7/10/2023 16:00",
11-
"runOn:" : "joabe 7/10/2023 16:02",
11+
"runOn:" : "pre 8/22/2023 12:04",
1212
"testCaseClass" : "joabe 7/10/2023 16:02",
1313
"testCaseClass:" : "joabe 7/10/2023 16:01",
14-
"testCaseClassFrom:" : "joabe 7/10/2023 16:04",
15-
"testResult" : "joabe 7/10/2023 16:03",
16-
"testResult:" : "joabe 7/10/2023 16:03" } }
14+
"testCaseClassFrom:" : "joabe 7/10/2023 16:04" } }

packages/Babylonian-ExampleMining.package/BPTestCaseExample.class/properties.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@
77
"commentStamp" : "",
88
"instvars" : [
99
"testCaseClass",
10-
"methodSelector",
11-
"testResult" ],
10+
"methodSelector" ],
1211
"name" : "BPTestCaseExample",
1312
"pools" : [
1413
],

0 commit comments

Comments
 (0)