mirror of
https://github.com/oven-sh/bun
synced 2026-02-16 05:42:43 +00:00
[autofix.ci] apply automated fixes
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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("");
|
||||
|
||||
|
||||
@@ -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("");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user