'lock levels' are deprecated, now a noop (#20539)
* 'lock levels' are deprecated, now a noop * fixes tests
This commit is contained in:
parent
7587371554
commit
5602183234
57 changed files with 121 additions and 372 deletions
|
|
@ -35,7 +35,7 @@ type
|
|||
count*: int
|
||||
disabled: bool
|
||||
data*: array[400, LogEntry]
|
||||
TrackLogger* = proc (log: TrackLog) {.nimcall, tags: [], locks: 0, gcsafe.}
|
||||
TrackLogger* = proc (log: TrackLog) {.nimcall, tags: [], gcsafe.}
|
||||
|
||||
var
|
||||
gLog*: TrackLog
|
||||
|
|
@ -70,7 +70,7 @@ proc addEntry(entry: LogEntry) =
|
|||
if interesting:
|
||||
gLog.disabled = true
|
||||
cprintf("interesting %s:%ld %s\n", entry.file, entry.line, entry.op)
|
||||
let x = cast[proc() {.nimcall, tags: [], gcsafe, locks: 0, raises: [].}](writeStackTrace)
|
||||
let x = cast[proc() {.nimcall, tags: [], gcsafe, raises: [].}](writeStackTrace)
|
||||
x()
|
||||
quit 1
|
||||
#if gLog.count > high(gLog.data):
|
||||
|
|
@ -85,7 +85,7 @@ proc memTrackerWrite(address: pointer; size: int; file: cstring; line: int) {.co
|
|||
size: size, file: file, line: line, thread: myThreadId())
|
||||
|
||||
proc memTrackerOp*(op: cstring; address: pointer; size: int) {.tags: [],
|
||||
locks: 0, gcsafe.} =
|
||||
gcsafe.} =
|
||||
addEntry LogEntry(op: op, address: address, size: size,
|
||||
file: "", line: 0, thread: myThreadId())
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue