also looking at this
fix(compat): stop describing ArrayList's layout, and read it instead
#876
5 files
+88
-42
| @@ -1774,7 +1774,7 @@ test "jsthread native private relocation mirrors every traced payload" { | ||
| 1774 | 1774 | .release_state = .{ .lock = &lock }, |
| 1775 | 1775 | }; |
| 1776 | 1776 | var pending = [_]*HoldJob{&hold}; |
| 1777 | lock.pending = .{ .items = &pending, .capacity = pending.len }; | |
| 1777 | lock.pending = .fromOwnedSlice(&pending); | |
| 1778 | 1778 | |
| 1779 | 1779 | var waiter_lock = LockRecord{ .gil = undefined, .owner = &old_objects[4] }; |
| 1780 | 1780 | var waiter = AsyncCondWaiter{ .lock = &waiter_lock, .outer = &old_objects[5] }; |
| @@ -1782,7 +1782,7 @@ test "jsthread native private relocation mirrors every traced payload" { | ||
| 1782 | 1782 | var condition = CondRecord{ |
| 1783 | 1783 | .gil = undefined, |
| 1784 | 1784 | .owner = &old_objects[3], |
| 1785 | .queue = .{ .items = &queue, .capacity = queue.len }, | |
| 1785 | .queue = .fromOwnedSlice(&queue), | |
| 1786 | 1786 | }; |
| 1787 | 1787 | |
| 1788 | 1788 | var thread_local = TLRecord{ |
| @@ -1905,7 +1905,7 @@ test "realm root relocation rewrites GIL tasks thread records and property waite | ||
| 1905 | 1905 | .release_state = .{ .lock = &lock }, |
| 1906 | 1906 | }; |
| 1907 | 1907 | var task_items = [_]*anyopaque{@ptrCast(&job)}; |
| 1908 | g.tasks = .{ .items = &task_items, .capacity = task_items.len }; | |
| 1908 | g.tasks = .fromOwnedSlice(&task_items); | |
| 1909 | 1909 | |
| 1910 | 1910 | var queue = promise.MicrotaskQueue{}; |
| 1911 | 1911 | var pending_joins = [_]PendingJoin{.{ .promise = &old_objects[5], .microtasks = &queue }}; |
| @@ -1916,8 +1916,8 @@ test "realm root relocation rewrites GIL tasks thread records and property waite | ||
| 1916 | 1916 | .ctx = undefined, |
| 1917 | 1917 | .result = Value.obj(&old_objects[3]), |
| 1918 | 1918 | .js_obj = &old_objects[4], |
| 1919 | .pending_joins = .{ .items = &pending_joins, .capacity = pending_joins.len }, | |
| 1920 | .settling_joins = .{ .items = &settling_joins, .capacity = settling_joins.len }, | |
| 1919 | .pending_joins = .fromOwnedSlice(&pending_joins), | |
| 1920 | .settling_joins = .fromOwnedSlice(&settling_joins), | |
| 1921 | 1921 | }; |
| 1922 | 1922 | var ticket = PropAsyncTicket{ |
| 1923 | 1923 | .obj = &old_objects[7], |