Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit ec3cd7f

Browse files
committed
Workaround for dartbug.com/36983 also when not in incremental compiler
When invoking the kernel worker in worker mode, reusing previous state, but not using the incremental compiler, we will currently leak, see dartbug.com/36983. This was previously fixed in the incremental compiler case, but this CL moves the fix outside the if to fix it in every configuration. Change-Id: I993fecbcc053d2bca64af9e65d270f75411f2e68 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/103626 Reviewed-by: Kevin Millikin <[email protected]>
1 parent e19bcb9 commit ec3cd7f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

utils/bazel/kernel_worker.dart

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -295,8 +295,6 @@ Future<ComputeKernelResult> computeKernel(List<String> args,
295295

296296
return Future.value(fe.serializeComponent(incrementalComponent));
297297
});
298-
299-
state.options.onDiagnostic = null; // See http://dartbug.com/36983.
300298
} else if (summaryOnly) {
301299
kernel = await fe.compileSummary(state, sources, onDiagnostic,
302300
includeOffsets: false);
@@ -309,6 +307,7 @@ Future<ComputeKernelResult> computeKernel(List<String> args,
309307
: null,
310308
includeOffsets: true);
311309
}
310+
state.options.onDiagnostic = null; // See http://dartbug.com/36983.
312311

313312
if (kernel != null) {
314313
var outputFile = new File(parsedArgs['output']);

0 commit comments

Comments
 (0)