Commit 376dbed
fix(WorkerPool): Address memory leak in Chrome from reject/resolve
On Chrome repeated calls to the worker pool can accumulate leaks due to
reject / resolve holding a reference to results even after the
associated Promise has resolved.
Co-authored-by: Forrest Li <forrest.li@kitware.com>
Co-authored-by: Will McCambley <willmccambley@gmail.com>
Co-authored-by: Sankhesh Jhaveri <sankhesh.jhaveri@kitware.com>1 parent eea33d4 commit 376dbed
1 file changed
+7
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
1 | 3 | | |
2 | 4 | | |
3 | 5 | | |
| |||
104 | 106 | | |
105 | 107 | | |
106 | 108 | | |
| 109 | + | |
107 | 110 | | |
108 | | - | |
109 | | - | |
110 | 111 | | |
111 | 112 | | |
112 | 113 | | |
| |||
129 | 130 | | |
130 | 131 | | |
131 | 132 | | |
| 133 | + | |
132 | 134 | | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | 135 | | |
137 | 136 | | |
138 | 137 | | |
| 138 | + | |
139 | 139 | | |
140 | | - | |
141 | | - | |
142 | | - | |
143 | 140 | | |
144 | 141 | | |
145 | 142 | | |
| |||
162 | 159 | | |
163 | 160 | | |
164 | 161 | | |
| 162 | + | |
| 163 | + | |
165 | 164 | | |
166 | 165 | | |
167 | 166 | | |
| |||
0 commit comments