Skip to content

Commit

Permalink
fix dlmalloc.v
Browse files Browse the repository at this point in the history
  • Loading branch information
yuyi98 committed Oct 17, 2024
1 parent 6ec9ab4 commit 35ce6e3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vlib/dlmalloc/dlmalloc.v
Original file line number Diff line number Diff line change
Expand Up @@ -562,7 +562,7 @@ fn (mut dl Dlmalloc) unlink_large_chunk(chunk_ &TreeChunk) {
fn (mut dl Dlmalloc) unlink_first_small_chunk(head_ &Chunk, next_ &Chunk, idx u32) {
mut next := unsafe { next_ }
mut head := unsafe { head_ }
println('Unlink first small')
// println('Unlink first small')
mut ptr := next.prev
if voidptr(head) == voidptr(ptr) {
unsafe { dl.clear_smallmap(idx) }
Expand Down Expand Up @@ -675,7 +675,7 @@ pub fn (mut dl Dlmalloc) free_(mem voidptr) {
}
}

fn (dl Dlmalloc) should_trim(size usize) bool {
fn (dl &Dlmalloc) should_trim(size usize) bool {
return size > dl.trim_check
}

Expand Down

0 comments on commit 35ce6e3

Please sign in to comment.