[autofix.ci] apply automated fixes

This commit is contained in:
autofix-ci[bot]
2025-08-15 00:38:24 +00:00
committed by GitHub
parent f06277735a
commit f17a9bd4b1
3 changed files with 19 additions and 17 deletions

View File

@@ -629,7 +629,7 @@ pub const Command = struct {
if (bun.getenvZ("MI_VERBOSE") == null) {
bun.mimalloc.mi_option_set_enabled(.verbose, false);
}
// Suppress mimalloc warnings for memory-mapped PE sections (Windows compilation)
// These warnings occur when processing large Windows PE files (~118MB) because
// mimalloc's heuristics flag memory-mapped sections as suspicious, then confirm

View File

@@ -35,17 +35,18 @@ describe.skipIf(isWindows)("Windows PE Checksum Verification", () => {
const [stderr, exitCode] = await Promise.all([new Response(proc.stderr).text(), proc.exited]);
expect(exitCode).toBe(0);
// Filter out mimalloc warnings which are expected for large allocations (Windows PE files ~118MB)
const filteredStderr = stderr
.split('\n')
.filter(line =>
!line.includes('mimalloc: warning:') &&
!line.includes('(this may still be a valid very large allocation') &&
!line.includes('(yes, the previous pointer') &&
line.trim() !== ''
.split("\n")
.filter(
line =>
!line.includes("mimalloc: warning:") &&
!line.includes("(this may still be a valid very large allocation") &&
!line.includes("(yes, the previous pointer") &&
line.trim() !== "",
)
.join('\n')
.join("\n")
.trim();
expect(filteredStderr).toBe("");

View File

@@ -39,17 +39,18 @@ describe.skipIf(isWindows)("Windows Resource Editing with exiftool", () => {
console.error("stderr:", stderr);
}
expect(exitCode).toBe(0);
// Filter out mimalloc warnings which are expected for large allocations (Windows PE files ~118MB)
const filteredStderr = stderr
.split('\n')
.filter(line =>
!line.includes('mimalloc: warning:') &&
!line.includes('(this may still be a valid very large allocation') &&
!line.includes('(yes, the previous pointer') &&
line.trim() !== ''
.split("\n")
.filter(
line =>
!line.includes("mimalloc: warning:") &&
!line.includes("(this may still be a valid very large allocation") &&
!line.includes("(yes, the previous pointer") &&
line.trim() !== "",
)
.join('\n')
.join("\n")
.trim();
expect(filteredStderr).toBe("");