also looking at this
Migrate to zig 0.16
#5
13 files
+222
-239
| @@ -191,7 +191,8 @@ test "RegexCache basic operations" { | ||
| 191 | 191 | |
| 192 | 192 | test "thread-safe allocator with concurrent matching" { |
| 193 | 193 | // Use thread-safe allocator for concurrent access |
| 194 | var gpa = std.heap.GeneralPurposeAllocator(.{ .thread_safe = true }){}; | |
| 194 | var gpa = std.heap.DebugAllocator(.{ .thread_safe = true }){}; | |
| 195 | // TODO: can use this for leak detection | |
| 195 | 196 | defer _ = gpa.deinit(); |
| 196 | 197 | const allocator = gpa.allocator(); |
| 197 | 198 | |
| @@ -222,7 +223,7 @@ test "thread-safe allocator with concurrent matching" { | ||
| 222 | 223 | } |
| 223 | 224 | |
| 224 | 225 | test "concurrent matching different patterns" { |
| 225 | var gpa = std.heap.GeneralPurposeAllocator(.{ .thread_safe = true }){}; | |
| 226 | var gpa = std.heap.DebugAllocator(.{ .thread_safe = true }){}; | |
| 226 | 227 | defer _ = gpa.deinit(); |
| 227 | 228 | const allocator = gpa.allocator(); |
| 228 | 229 | |
| @@ -272,7 +273,7 @@ test "concurrent matching different patterns" { | ||
| 272 | 273 | } |
| 273 | 274 | |
| 274 | 275 | test "stress test: many threads many matches" { |
| 275 | var gpa = std.heap.GeneralPurposeAllocator(.{ .thread_safe = true }){}; | |
| 276 | var gpa = std.heap.DebugAllocator(.{ .thread_safe = true }){}; | |
| 276 | 277 | defer _ = gpa.deinit(); |
| 277 | 278 | const allocator = gpa.allocator(); |
| 278 | 279 | |