feat: overhaul the crash handler (#10203)

* some work

* linux things

* linux things

* feat: tracestrings on Windows

* bwaa

* more work on the crash handler

* okay

* adgadsgbcxcv

* ya

* dsafds

* a

* wuh

* a

* bru h

* ok

* yay

* window

* alright

* oops

* yeah

* a

* a

* OOM handling

* fix on window
This commit is contained in:
dave caruso
2024-04-17 15:32:25 -07:00
committed by GitHub
parent f764c1233b
commit c99d7ed331
48 changed files with 1575 additions and 1020 deletions

View File

@@ -678,6 +678,10 @@ pub const VLQ = struct {
// I believe the actual number is 7 bytes long, however we can add an extra byte to be more cautious
bytes: [vlq_max_in_bytes]u8,
len: u4 = 0,
pub fn writeTo(self: VLQ, writer: anytype) !void {
try writer.writeAll(self.bytes[0..self.len]);
}
};
pub fn encodeVLQWithLookupTable(
@@ -736,9 +740,7 @@ test "decodeVLQ" {
// V V
// 101011
//
pub fn encodeVLQ(
value: i32,
) VLQ {
pub fn encodeVLQ(value: i32) VLQ {
var len: u4 = 0;
var bytes: [vlq_max_in_bytes]u8 = undefined;