Skip to content

Commit a675784

Browse files
committed
Merge branch 'master' of https://github.com/odin-lang/Odin
2 parents 7f19408 + b022c02 commit a675784

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

core/os/os2/file_windows.odin

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -249,9 +249,9 @@ _destroy :: proc(f: ^File_Impl) -> Error {
249249
a := f.allocator
250250
err0 := free(f.wname, a)
251251
err1 := delete(f.name, a)
252-
err2 := free(f, a)
253-
err3 := delete(f.r_buf, a)
254-
err4 := delete(f.w_buf, a)
252+
err2 := delete(f.r_buf, a)
253+
err3 := delete(f.w_buf, a)
254+
err4 := free(f, a)
255255
err0 or_return
256256
err1 or_return
257257
err2 or_return

core/prof/spall/spall.odin

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ context_create_with_sleep :: proc(filename: string, sleep := 2 * time.Second) ->
103103

104104
context_create :: proc{context_create_with_scale, context_create_with_sleep}
105105

106+
@(no_instrumentation)
106107
context_destroy :: proc(ctx: ^Context) {
107108
if ctx == nil {
108109
return
@@ -146,6 +147,7 @@ buffer_flush :: proc "contextless" (ctx: ^Context, buffer: ^Buffer) #no_bounds_c
146147
buffer.first_ts = end
147148
}
148149

150+
@(no_instrumentation)
149151
buffer_destroy :: proc(ctx: ^Context, buffer: ^Buffer) {
150152
buffer_flush(ctx, buffer)
151153

@@ -155,12 +157,14 @@ buffer_destroy :: proc(ctx: ^Context, buffer: ^Buffer) {
155157

156158

157159
@(deferred_in=_scoped_buffer_end)
160+
@(no_instrumentation)
158161
SCOPED_EVENT :: proc(ctx: ^Context, buffer: ^Buffer, name: string, args: string = "", location := #caller_location) -> bool {
159162
_buffer_begin(ctx, buffer, name, args, location)
160163
return true
161164
}
162165

163166
@(private)
167+
@(no_instrumentation)
164168
_scoped_buffer_end :: proc(ctx: ^Context, buffer: ^Buffer, _, _: string, _ := #caller_location) {
165169
_buffer_end(ctx, buffer)
166170
}

0 commit comments

Comments
 (0)