GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — Report activity during Brotli encodes while replaying by Andarist · Pull Request #220 · replayio/node Conversation
Member
The replay processor declares a process Hanged when its progress counter stays flat for 10 s. A high quality Brotli encode advances nothing that counter includes, and brotliCompressSync runs all of it in one native call on the main thread, so a large enough one gets the replay killed as Hanged although it would finish, as replays of a production recording were in BrotliCreateHqZopfliBackwardReferences. The encoder allocates through node's allocator for every block it compresses (166 times, at most 0.27 s apart, in a 6.4 s quality 11 encode of 4 MB), so that allocator now calls recordreplay::NotifyActivity, which the linker counts as progress and which does nothing when not replaying.
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactionsThe replay processor declares a process Hanged when its progress counter stays flat for 10 s. A high quality Brotli encode advances nothing that counter includes, and brotliCompressSync runs all of it in one native call on the main thread, so a large enough one gets the replay killed as Hanged although it would finish, as replays of a production recording were in BrotliCreateHqZopfliBackwardReferences. The encoder allocates through node's allocator for every block it compresses (166 times, at most 0.27 s apart, in a 6.4 s quality 11 encode of 4 MB), so that allocator now calls recordreplay::NotifyActivity, which the linker counts as progress and which does nothing when not replaying. zlib's sync methods (deflateSync, gzipSync, inflateSync, ...) call writeSync for every chunk of output from a loop in node's own JS. Neither the native call nor that loop advances the progress counter, so a long compression gets the replay killed as Hanged in deflate although it would finish. A level 9 deflateSync makes a call every few milliseconds for typical text, so each sync write now calls recordreplay::NotifyActivity, which the linker counts as progress and which does nothing when not replaying. Uh oh!
There was an error while loading. Please reload this page.
Andarist
added a commit
that referenced
this pull request
Picks up replayio/backend#13693, a node-recording case for a Brotli encode that runs longer than the hang timeout while replaying (fixed by #220).
bhackett1024
pushed a commit
that referenced
this pull request
Add v8::recordreplay::NotifyActivity(), which tells the driver the process is busy without advancing the progress counter, and call it from work that can run for seconds without advancing it: every main-thread GC scope opened inside a GC, the marking and linear ephemeron loops every 64K objects, and each chunk of output from a synchronous zlib or Brotli compression. Without it the replay processor declares a process that would finish Hanged after its progress counter has been flat for ten seconds. Scopes opened outside a GC, such as sweeping on allocation, and a GC blocked waiting on something else deliberately stay silent. Rebase note: NotifyActivity() must stay on every path that can run for seconds without advancing the progress counter, and must not be added to paths that are merely idle, since that would mask a real hang. Add it to new upstream paths of that kind. From #210 and #220. Co-Authored-By: Claude Opus 5 <[email protected]>
Andarist
added a commit
that referenced
this pull request
Add v8::recordreplay::NotifyActivity(), which tells the driver the process is busy without advancing the progress counter, and call it from work that can run for seconds without advancing it: every main-thread GC scope opened inside a GC, the marking and linear ephemeron loops every 64K objects, and each chunk of output from a synchronous zlib or Brotli compression. Without it the replay processor declares a process that would finish Hanged after its progress counter has been flat for ten seconds. Scopes opened outside a GC, such as sweeping on allocation, and a GC blocked waiting on something else deliberately stay silent. Rebase note: NotifyActivity() must stay on every path that can run for seconds without advancing the progress counter, and must not be added to paths that are merely idle, since that would mask a real hang. Add it to new upstream paths of that kind. From #210 and #220. Co-Authored-By: Claude Opus 5 <[email protected]>
Andarist
added a commit
that referenced
this pull request
Add v8::recordreplay::NotifyActivity(), which tells the driver the process is busy without advancing the progress counter, and call it from work that can run for seconds without advancing it: every main-thread GC scope opened inside a GC, the marking and linear ephemeron loops every 64K objects, and each chunk of output from a synchronous zlib or Brotli compression. Without it the replay processor declares a process that would finish Hanged after its progress counter has been flat for ten seconds. Scopes opened outside a GC, such as sweeping on allocation, and a GC blocked waiting on something else deliberately stay silent. Rebase note: NotifyActivity() must stay on every path that can run for seconds without advancing the progress counter, and must not be added to paths that are merely idle, since that would mask a real hang. Add it to new upstream paths of that kind. From #210 and #220. Co-Authored-By: Claude Opus 5 <[email protected]>
Andarist
added a commit
that referenced
this pull request
Add v8::recordreplay::NotifyActivity(), which tells the driver the process is busy without advancing the progress counter, and call it from work that can run for seconds without advancing it: every main-thread GC scope opened inside a GC, the marking and linear ephemeron loops every 64K objects, and each chunk of output from a synchronous zlib or Brotli compression. Without it the replay processor declares a process that would finish Hanged after its progress counter has been flat for ten seconds. Scopes opened outside a GC, such as sweeping on allocation, and a GC blocked waiting on something else deliberately stay silent. Rebase note: NotifyActivity() must stay on every path that can run for seconds without advancing the progress counter, and must not be added to paths that are merely idle, since that would mask a real hang. Add it to new upstream paths of that kind. From #210 and #220. Co-Authored-By: Claude Opus 5 <[email protected]>
Andarist
added a commit
that referenced
this pull request
Add v8::recordreplay::NotifyActivity(), which tells the driver the process is busy without advancing the progress counter, and call it from work that can run for seconds without advancing it: every main-thread GC scope opened inside a GC, the marking and linear ephemeron loops every 64K objects, and each chunk of output from a synchronous zlib or Brotli compression. Without it the replay processor declares a process that would finish Hanged after its progress counter has been flat for ten seconds. Scopes opened outside a GC, such as sweeping on allocation, and a GC blocked waiting on something else deliberately stay silent. Rebase note: NotifyActivity() must stay on every path that can run for seconds without advancing the progress counter, and must not be added to paths that are merely idle, since that would mask a real hang. Add it to new upstream paths of that kind. From #210 and #220. Co-Authored-By: Claude Opus 5 <[email protected]>
Andarist
added a commit
that referenced
this pull request
Add v8::recordreplay::NotifyActivity(), which tells the driver the process is busy without advancing the progress counter, and call it from work that can run for seconds without advancing it: every main-thread GC scope opened inside a GC, the marking and linear ephemeron loops every 64K objects, and each chunk of output from a synchronous zlib or Brotli compression. Without it the replay processor declares a process that would finish Hanged after its progress counter has been flat for ten seconds. Scopes opened outside a GC, such as sweeping on allocation, and a GC blocked waiting on something else deliberately stay silent. Rebase note: NotifyActivity() must stay on every path that can run for seconds without advancing the progress counter, and must not be added to paths that are merely idle, since that would mask a real hang. Add it to new upstream paths of that kind. From #210 and #220. Co-Authored-By: Claude Opus 5 <[email protected]>
Andarist
added a commit
that referenced
this pull request
Add v8::recordreplay::NotifyActivity(), which tells the driver the process is busy without advancing the progress counter, and call it from work that can run for seconds without advancing it: every main-thread GC scope opened inside a GC, the marking and linear ephemeron loops every 64K objects, and each chunk of output from a synchronous zlib or Brotli compression. Without it the replay processor declares a process that would finish Hanged after its progress counter has been flat for ten seconds. Scopes opened outside a GC, such as sweeping on allocation, and a GC blocked waiting on something else deliberately stay silent. Rebase note: NotifyActivity() must stay on every path that can run for seconds without advancing the progress counter, and must not be added to paths that are merely idle, since that would mask a real hang. Add it to new upstream paths of that kind. From #210 and #220. Co-Authored-By: Claude Opus 5 <[email protected]>
Andarist
added a commit
that referenced
this pull request
Add v8::recordreplay::NotifyActivity(), which tells the driver the process is busy without advancing the progress counter, and call it from work that can run for seconds without advancing it: every main-thread GC scope opened inside a GC, the marking and linear ephemeron loops every 64K objects, and each chunk of output from a synchronous zlib or Brotli compression. Without it the replay processor declares a process that would finish Hanged after its progress counter has been flat for ten seconds. Scopes opened outside a GC, such as sweeping on allocation, and a GC blocked waiting on something else deliberately stay silent. Rebase note: NotifyActivity() must stay on every path that can run for seconds without advancing the progress counter, and must not be added to paths that are merely idle, since that would mask a real hang. Add it to new upstream paths of that kind. From #210 and #220. Co-Authored-By: Claude Opus 5 <[email protected]>
Andarist
added a commit
that referenced
this pull request
Add v8::recordreplay::NotifyActivity(), which tells the driver the process is busy without advancing the progress counter, and call it from work that can run for seconds without advancing it: every main-thread GC scope opened inside a GC, the marking and linear ephemeron loops every 64K objects, and each chunk of output from a synchronous zlib or Brotli compression. Without it the replay processor declares a process that would finish Hanged after its progress counter has been flat for ten seconds. Scopes opened outside a GC, such as sweeping on allocation, and a GC blocked waiting on something else deliberately stay silent. Regexp matching is another such path: neither the bytecode interpreter nor generated regexp code advances anything the progress counter includes, so a match that backtracks for long enough got the replay killed as Hanged although it would finish, as replays of production recording 4d0ee7d8 were in IrregexpInterpreter::MatchInternal. Matches without a backtrack limit report activity every 2^20 backtracks. The interpreter treats every 2^20th backtrack as its backtrack limit and moves the limit on, so the per-backtrack path stays upstream's compare against that limit; x64 generated code counts backtracks in the frame's backtrack counter slot and then calls the preemption handler, which reports activity and returns without effect unless an interrupt is pending, and skips that call within 4 KB of the stack limit, where the handler would report an overflow the match doesn't have. Only x64 generated code reports activity, since node recordings are made on linux x64, and code generated when not recording is unchanged. Rebase note: NotifyActivity() must stay on every path that can run for seconds without advancing the progress counter, and must not be added to paths that are merely idle, since that would mask a real hang. Add it to new upstream paths of that kind. From #210 and #220. Co-Authored-By: Claude Opus 5 <[email protected]>
Andarist
added a commit
that referenced
this pull request
Add v8::recordreplay::NotifyActivity(), which tells the driver the process is busy without advancing the progress counter, and call it from work that can run for seconds without advancing it: every main-thread GC scope opened inside a GC, the marking and linear ephemeron loops every 64K objects, and each chunk of output from a synchronous zlib or Brotli compression. Without it the replay processor declares a process that would finish Hanged after its progress counter has been flat for ten seconds. Scopes opened outside a GC, such as sweeping on allocation, and a GC blocked waiting on something else deliberately stay silent. Regexp matching is another such path: neither the bytecode interpreter nor generated regexp code advances anything the progress counter includes, so a match that backtracks for long enough got the replay killed as Hanged although it would finish, as replays of production recording 4d0ee7d8 were in IrregexpInterpreter::MatchInternal. Matches without a backtrack limit report activity every 2^20 backtracks. The interpreter treats every 2^20th backtrack as its backtrack limit and moves the limit on, so the per-backtrack path stays upstream's compare against that limit; x64 generated code counts backtracks in the frame's backtrack counter slot and then calls the preemption handler, which reports activity and returns without effect unless an interrupt is pending, and skips that call within 4 KB of the stack limit, where the handler would report an overflow the match doesn't have. Only x64 generated code reports activity, since node recordings are made on linux x64, and code generated when not recording is unchanged. Rebase note: NotifyActivity() must stay on every path that can run for seconds without advancing the progress counter, and must not be added to paths that are merely idle, since that would mask a real hang. Add it to new upstream paths of that kind. From #210 and #220. Co-Authored-By: Claude Opus 5 <[email protected]>
Andarist
added a commit
that referenced
this pull request
Add v8::recordreplay::NotifyActivity(), which tells the driver the process is busy without advancing the progress counter, and call it from work that can run for seconds without advancing it: every main-thread GC scope opened inside a GC, the marking and linear ephemeron loops every 64K objects, and each chunk of output from a synchronous zlib or Brotli compression. Without it the replay processor declares a process that would finish Hanged after its progress counter has been flat for ten seconds. Scopes opened outside a GC, such as sweeping on allocation, and a GC blocked waiting on something else deliberately stay silent. Regexp matching is another such path: neither the bytecode interpreter nor generated regexp code advances anything the progress counter includes, so a match that backtracks for long enough got the replay killed as Hanged although it would finish, as replays of production recording 4d0ee7d8 were in IrregexpInterpreter::MatchInternal. Matches without a backtrack limit report activity every 2^20 backtracks. The interpreter treats every 2^20th backtrack as its backtrack limit and moves the limit on, so the per-backtrack path stays upstream's compare against that limit; x64 generated code counts backtracks in the frame's backtrack counter slot and then calls the preemption handler, which reports activity and returns without effect unless an interrupt is pending, and skips that call within 4 KB of the stack limit, where the handler would report an overflow the match doesn't have. Only x64 generated code reports activity, since node recordings are made on linux x64, and code generated when not recording is unchanged. Rebase note: NotifyActivity() must stay on every path that can run for seconds without advancing the progress counter, and must not be added to paths that are merely idle, since that would mask a real hang. Add it to new upstream paths of that kind. From #210 and #220. Co-Authored-By: Claude Opus 5 <[email protected]>
Andarist
added a commit
that referenced
this pull request
Add v8::recordreplay::NotifyActivity(), which tells the driver the process is busy without advancing the progress counter, and call it from work that can run for seconds without advancing it: every main-thread GC scope opened inside a GC, the marking and linear ephemeron loops every 64K objects, and each chunk of output from a synchronous zlib or Brotli compression. Without it the replay processor declares a process that would finish Hanged after its progress counter has been flat for ten seconds. Scopes opened outside a GC, such as sweeping on allocation, and a GC blocked waiting on something else deliberately stay silent. Regexp matching is another such path: neither the bytecode interpreter nor generated regexp code advances anything the progress counter includes, so a match that backtracks for long enough got the replay killed as Hanged although it would finish, as replays of production recording 4d0ee7d8 were in IrregexpInterpreter::MatchInternal. Matches without a backtrack limit report activity every 2^20 backtracks. The interpreter treats every 2^20th backtrack as its backtrack limit and moves the limit on, so the per-backtrack path stays upstream's compare against that limit; x64 generated code counts backtracks in the frame's backtrack counter slot and then calls the preemption handler, which reports activity and returns without effect unless an interrupt is pending, and skips that call within 4 KB of the stack limit, where the handler would report an overflow the match doesn't have. Only x64 generated code reports activity, since node recordings are made on linux x64, and code generated when not recording is unchanged. Rebase note: NotifyActivity() must stay on every path that can run for seconds without advancing the progress counter, and must not be added to paths that are merely idle, since that would mask a real hang. Add it to new upstream paths of that kind. From #210 and #220. Co-Authored-By: Claude Opus 5 <[email protected]>
Andarist
added a commit
that referenced
this pull request
Add v8::recordreplay::NotifyActivity(), which tells the driver the process is busy without advancing the progress counter, and call it from work that can run for seconds without advancing it: every main-thread GC scope opened inside a GC, the marking and linear ephemeron loops every 64K objects, and each chunk of output from a synchronous zlib or Brotli compression. Without it the replay processor declares a process that would finish Hanged after its progress counter has been flat for ten seconds. Scopes opened outside a GC, such as sweeping on allocation, and a GC blocked waiting on something else deliberately stay silent. Regexp matching is another such path: neither the bytecode interpreter nor generated regexp code advances anything the progress counter includes, so a match that backtracks for long enough got the replay killed as Hanged although it would finish, as replays of production recording 4d0ee7d8 were in IrregexpInterpreter::MatchInternal. Matches without a backtrack limit report activity every 2^20 backtracks. The interpreter treats every 2^20th backtrack as its backtrack limit and moves the limit on, so the per-backtrack path stays upstream's compare against that limit; x64 generated code counts backtracks in the frame's backtrack counter slot and then calls the preemption handler, which reports activity and returns without effect unless an interrupt is pending, and skips that call within 4 KB of the stack limit, where the handler would report an overflow the match doesn't have. Only x64 generated code reports activity, since node recordings are made on linux x64, and code generated when not recording is unchanged. Rebase note: NotifyActivity() must stay on every path that can run for seconds without advancing the progress counter, and must not be added to paths that are merely idle, since that would mask a real hang. Add it to new upstream paths of that kind. From #210 and #220. Co-Authored-By: Claude Opus 5 <[email protected]>
Andarist
added a commit
that referenced
this pull request
Add v8::recordreplay::NotifyActivity(), which tells the driver the process is busy without advancing the progress counter, and call it from work that can run for seconds without advancing it: every main-thread GC scope opened inside a GC, the marking and linear ephemeron loops every 64K objects, and each chunk of output from a synchronous zlib or Brotli compression. Without it the replay processor declares a process that would finish Hanged after its progress counter has been flat for ten seconds. Scopes opened outside a GC, such as sweeping on allocation, and a GC blocked waiting on something else deliberately stay silent. Regexp matching is another such path: neither the bytecode interpreter nor generated regexp code advances anything the progress counter includes, so a match that backtracks for long enough got the replay killed as Hanged although it would finish, as replays of production recording 4d0ee7d8 were in IrregexpInterpreter::MatchInternal. Matches without a backtrack limit report activity every 2^20 backtracks. The interpreter treats every 2^20th backtrack as its backtrack limit and moves the limit on, so the per-backtrack path stays upstream's compare against that limit; x64 generated code counts backtracks in the frame's backtrack counter slot and then calls the preemption handler, which reports activity and returns without effect unless an interrupt is pending, and skips that call within 4 KB of the stack limit, where the handler would report an overflow the match doesn't have. Only x64 generated code reports activity, since node recordings are made on linux x64, and code generated when not recording is unchanged. Rebase note: NotifyActivity() must stay on every path that can run for seconds without advancing the progress counter, and must not be added to paths that are merely idle, since that would mask a real hang. Add it to new upstream paths of that kind. From #210 and #220. Co-Authored-By: Claude Opus 5 <[email protected]>
Andarist
added a commit
that referenced
this pull request
Add v8::recordreplay::NotifyActivity(), which tells the driver the process is busy without advancing the progress counter, and call it from work that can run for seconds without advancing it: every main-thread GC scope opened inside a GC, the marking and linear ephemeron loops every 64K objects, and each chunk of output from a synchronous zlib or Brotli compression. Without it the replay processor declares a process that would finish Hanged after its progress counter has been flat for ten seconds. Scopes opened outside a GC, such as sweeping on allocation, and a GC blocked waiting on something else deliberately stay silent. Regexp matching is another such path: neither the bytecode interpreter nor generated regexp code advances anything the progress counter includes, so a match that backtracks for long enough got the replay killed as Hanged although it would finish, as replays of production recording 4d0ee7d8 were in IrregexpInterpreter::MatchInternal. Matches without a backtrack limit report activity every 2^20 backtracks. The interpreter treats every 2^20th backtrack as its backtrack limit and moves the limit on, so the per-backtrack path stays upstream's compare against that limit; x64 generated code counts backtracks in the frame's backtrack counter slot and then calls the preemption handler, which reports activity and returns without effect unless an interrupt is pending, and skips that call within 4 KB of the stack limit, where the handler would report an overflow the match doesn't have. Only x64 generated code reports activity, since node recordings are made on linux x64, and code generated when not recording is unchanged. Rebase note: NotifyActivity() must stay on every path that can run for seconds without advancing the progress counter, and must not be added to paths that are merely idle, since that would mask a real hang. Add it to new upstream paths of that kind. From #210 and #220. Co-Authored-By: Claude Opus 5 <[email protected]>
Andarist
added a commit
that referenced
this pull request
Add v8::recordreplay::NotifyActivity(), which tells the driver the process is busy without advancing the progress counter, and call it from work that can run for seconds without advancing it: every main-thread GC scope opened inside a GC, the marking and linear ephemeron loops every 64K objects, and each chunk of output from a synchronous zlib or Brotli compression. Without it the replay processor declares a process that would finish Hanged after its progress counter has been flat for ten seconds. Scopes opened outside a GC, such as sweeping on allocation, and a GC blocked waiting on something else deliberately stay silent. Regexp matching is another such path: neither the bytecode interpreter nor generated regexp code advances anything the progress counter includes, so a match that backtracks for long enough got the replay killed as Hanged although it would finish, as replays of production recording 4d0ee7d8 were in IrregexpInterpreter::MatchInternal. Matches without a backtrack limit report activity every 2^20 backtracks. The interpreter treats every 2^20th backtrack as its backtrack limit and moves the limit on, so the per-backtrack path stays upstream's compare against that limit; x64 generated code counts backtracks in the frame's backtrack counter slot and then calls the preemption handler, which reports activity and returns without effect unless an interrupt is pending, and skips that call within 4 KB of the stack limit, where the handler would report an overflow the match doesn't have. Only x64 generated code reports activity, since node recordings are made on linux x64, and code generated when not recording is unchanged. Rebase note: NotifyActivity() must stay on every path that can run for seconds without advancing the progress counter, and must not be added to paths that are merely idle, since that would mask a real hang. Add it to new upstream paths of that kind. From #210 and #220. Co-Authored-By: Claude Opus 5 <[email protected]>
Andarist
added a commit
that referenced
this pull request
Add v8::recordreplay::NotifyActivity(), which tells the driver the process is busy without advancing the progress counter, and call it from work that can run for seconds without advancing it: every main-thread GC scope opened inside a GC, the marking and linear ephemeron loops every 64K objects, and each chunk of output from a synchronous zlib or Brotli compression. Without it the replay processor declares a process that would finish Hanged after its progress counter has been flat for ten seconds. Scopes opened outside a GC, such as sweeping on allocation, and a GC blocked waiting on something else deliberately stay silent. Regexp matching is another such path: neither the bytecode interpreter nor generated regexp code advances anything the progress counter includes, so a match that backtracks for long enough got the replay killed as Hanged although it would finish, as replays of production recording 4d0ee7d8 were in IrregexpInterpreter::MatchInternal. Matches without a backtrack limit report activity every 2^20 backtracks. The interpreter treats every 2^20th backtrack as its backtrack limit and moves the limit on, so the per-backtrack path stays upstream's compare against that limit; x64 generated code counts backtracks in the frame's backtrack counter slot and then calls the preemption handler, which reports activity and returns without effect unless an interrupt is pending, and skips that call within 4 KB of the stack limit, where the handler would report an overflow the match doesn't have. Only x64 generated code reports activity, since node recordings are made on linux x64, and code generated when not recording is unchanged. Rebase note: NotifyActivity() must stay on every path that can run for seconds without advancing the progress counter, and must not be added to paths that are merely idle, since that would mask a real hang. Add it to new upstream paths of that kind. From #210 and #220. Co-Authored-By: Claude Opus 5 <[email protected]>
Andarist
added a commit
that referenced
this pull request
Add v8::recordreplay::NotifyActivity(), which tells the driver the process is busy without advancing the progress counter, and call it from work that can run for seconds without advancing it: every main-thread GC scope opened inside a GC, the marking and linear ephemeron loops every 64K objects, and each chunk of output from a synchronous zlib or Brotli compression. Without it the replay processor declares a process that would finish Hanged after its progress counter has been flat for ten seconds. Scopes opened outside a GC, such as sweeping on allocation, and a GC blocked waiting on something else deliberately stay silent. Regexp matching is another such path: neither the bytecode interpreter nor generated regexp code advances anything the progress counter includes, so a match that backtracks for long enough got the replay killed as Hanged although it would finish, as replays of production recording 4d0ee7d8 were in IrregexpInterpreter::MatchInternal. Matches without a backtrack limit report activity every 2^20 backtracks. The interpreter treats every 2^20th backtrack as its backtrack limit and moves the limit on, so the per-backtrack path stays upstream's compare against that limit; x64 generated code counts backtracks in the frame's backtrack counter slot and then calls the preemption handler, which reports activity and returns without effect unless an interrupt is pending, and skips that call within 4 KB of the stack limit, where the handler would report an overflow the match doesn't have. Only x64 generated code reports activity, since node recordings are made on linux x64, and code generated when not recording is unchanged. Rebase note: NotifyActivity() must stay on every path that can run for seconds without advancing the progress counter, and must not be added to paths that are merely idle, since that would mask a real hang. Add it to new upstream paths of that kind. From #210 and #220. Co-Authored-By: Claude Opus 5 <[email protected]>
Andarist
added a commit
that referenced
this pull request
Add v8::recordreplay::NotifyActivity(), which tells the driver the process is busy without advancing the progress counter, and call it from work that can run for seconds without advancing it: every main-thread GC scope opened inside a GC, the marking and linear ephemeron loops every 64K objects, and each chunk of output from a synchronous zlib or Brotli compression. Without it the replay processor declares a process that would finish Hanged after its progress counter has been flat for ten seconds. Scopes opened outside a GC, such as sweeping on allocation, and a GC blocked waiting on something else deliberately stay silent. Regexp matching is another such path: neither the bytecode interpreter nor generated regexp code advances anything the progress counter includes, so a match that backtracks for long enough got the replay killed as Hanged although it would finish, as replays of production recording 4d0ee7d8 were in IrregexpInterpreter::MatchInternal. Matches without a backtrack limit report activity every 2^20 backtracks. The interpreter treats every 2^20th backtrack as its backtrack limit and moves the limit on, so the per-backtrack path stays upstream's compare against that limit; x64 generated code counts backtracks in the frame's backtrack counter slot and then calls the preemption handler, which reports activity and returns without effect unless an interrupt is pending, and skips that call within 4 KB of the stack limit, where the handler would report an overflow the match doesn't have. Only x64 generated code reports activity, since node recordings are made on linux x64, and code generated when not recording is unchanged. Rebase note: NotifyActivity() must stay on every path that can run for seconds without advancing the progress counter, and must not be added to paths that are merely idle, since that would mask a real hang. Add it to new upstream paths of that kind. From #210 and #220. Co-Authored-By: Claude Opus 5 <[email protected]>
Andarist
added a commit
that referenced
this pull request
Add v8::recordreplay::NotifyActivity(), which tells the driver the process is busy without advancing the progress counter, and call it from work that can run for seconds without advancing it: every main-thread GC scope opened inside a GC, the marking and linear ephemeron loops every 64K objects, and each chunk of output from a synchronous zlib or Brotli compression. Without it the replay processor declares a process that would finish Hanged after its progress counter has been flat for ten seconds. Scopes opened outside a GC, such as sweeping on allocation, and a GC blocked waiting on something else deliberately stay silent. Regexp matching is another such path: neither the bytecode interpreter nor generated regexp code advances anything the progress counter includes, so a match that backtracks for long enough got the replay killed as Hanged although it would finish, as replays of production recording 4d0ee7d8 were in IrregexpInterpreter::MatchInternal. Matches without a backtrack limit report activity every 2^20 backtracks. The interpreter treats every 2^20th backtrack as its backtrack limit and moves the limit on, so the per-backtrack path stays upstream's compare against that limit; x64 generated code counts backtracks in the frame's backtrack counter slot and then calls the preemption handler, which reports activity and returns without effect unless an interrupt is pending, and skips that call within 4 KB of the stack limit, where the handler would report an overflow the match doesn't have. Only x64 generated code reports activity, since node recordings are made on linux x64, and code generated when not recording is unchanged. Rebase note: NotifyActivity() must stay on every path that can run for seconds without advancing the progress counter, and must not be added to paths that are merely idle, since that would mask a real hang. Add it to new upstream paths of that kind. From #210 and #220. Co-Authored-By: Claude Opus 5 <[email protected]>
Andarist
added a commit
that referenced
this pull request
Add v8::recordreplay::NotifyActivity(), which tells the driver the process is busy without advancing the progress counter, and call it from work that can run for seconds without advancing it: every main-thread GC scope opened inside a GC, the marking and linear ephemeron loops every 64K objects, and each chunk of output from a synchronous zlib or Brotli compression. Without it the replay processor declares a process that would finish Hanged after its progress counter has been flat for ten seconds. Scopes opened outside a GC, such as sweeping on allocation, and a GC blocked waiting on something else deliberately stay silent. Regexp matching is another such path: neither the bytecode interpreter nor generated regexp code advances anything the progress counter includes, so a match that backtracks for long enough got the replay killed as Hanged although it would finish, as replays of production recording 4d0ee7d8 were in IrregexpInterpreter::MatchInternal. Matches without a backtrack limit report activity every 2^20 backtracks. The interpreter treats every 2^20th backtrack as its backtrack limit and moves the limit on, so the per-backtrack path stays upstream's compare against that limit; x64 generated code counts backtracks in the frame's backtrack counter slot and then calls the preemption handler, which reports activity and returns without effect unless an interrupt is pending, and skips that call within 4 KB of the stack limit, where the handler would report an overflow the match doesn't have. Only x64 generated code reports activity, since node recordings are made on linux x64, and code generated when not recording is unchanged. Rebase note: NotifyActivity() must stay on every path that can run for seconds without advancing the progress counter, and must not be added to paths that are merely idle, since that would mask a real hang. Add it to new upstream paths of that kind. From #210 and #220. Co-Authored-By: Claude Opus 5 <[email protected]>
Andarist
added a commit
that referenced
this pull request
Add v8::recordreplay::NotifyActivity(), which tells the driver the process is busy without advancing the progress counter, and call it from work that can run for seconds without advancing it: every main-thread GC scope opened inside a GC, the marking and linear ephemeron loops every 64K objects, and each chunk of output from a synchronous zlib or Brotli compression. Without it the replay processor declares a process that would finish Hanged after its progress counter has been flat for ten seconds. Scopes opened outside a GC, such as sweeping on allocation, and a GC blocked waiting on something else deliberately stay silent. Regexp matching is another such path: neither the bytecode interpreter nor generated regexp code advances anything the progress counter includes, so a match that backtracks for long enough got the replay killed as Hanged although it would finish, as replays of production recording 4d0ee7d8 were in IrregexpInterpreter::MatchInternal. Matches without a backtrack limit report activity every 2^20 backtracks. The interpreter treats every 2^20th backtrack as its backtrack limit and moves the limit on, so the per-backtrack path stays upstream's compare against that limit; x64 generated code counts backtracks in the frame's backtrack counter slot and then calls the preemption handler, which reports activity and returns without effect unless an interrupt is pending, and skips that call within 4 KB of the stack limit, where the handler would report an overflow the match doesn't have. Only x64 generated code reports activity, since node recordings are made on linux x64, and code generated when not recording is unchanged. Rebase note: NotifyActivity() must stay on every path that can run for seconds without advancing the progress counter, and must not be added to paths that are merely idle, since that would mask a real hang. Add it to new upstream paths of that kind. From #210 and #220. Co-Authored-By: Claude Opus 5 <[email protected]>
Andarist
added a commit
that referenced
this pull request
Add v8::recordreplay::NotifyActivity(), which tells the driver the process is busy without advancing the progress counter, and call it from work that can run for seconds without advancing it: every main-thread GC scope opened inside a GC, the marking and linear ephemeron loops every 64K objects, and each chunk of output from a synchronous zlib or Brotli compression. Without it the replay processor declares a process that would finish Hanged after its progress counter has been flat for ten seconds. Scopes opened outside a GC, such as sweeping on allocation, and a GC blocked waiting on something else deliberately stay silent. Regexp matching is another such path: neither the bytecode interpreter nor generated regexp code advances anything the progress counter includes, so a match that backtracks for long enough got the replay killed as Hanged although it would finish, as replays of production recording 4d0ee7d8 were in IrregexpInterpreter::MatchInternal. Matches without a backtrack limit report activity every 2^20 backtracks. The interpreter treats every 2^20th backtrack as its backtrack limit and moves the limit on, so the per-backtrack path stays upstream's compare against that limit; x64 generated code counts backtracks in the frame's backtrack counter slot and then calls the preemption handler, which reports activity and returns without effect unless an interrupt is pending, and skips that call within 4 KB of the stack limit, where the handler would report an overflow the match doesn't have. Only x64 generated code reports activity, since node recordings are made on linux x64, and code generated when not recording is unchanged. Rebase note: NotifyActivity() must stay on every path that can run for seconds without advancing the progress counter, and must not be added to paths that are merely idle, since that would mask a real hang. Add it to new upstream paths of that kind. From #210 and #220. Co-Authored-By: Claude Opus 5 <[email protected]>
Andarist
added a commit
that referenced
this pull request
Add v8::recordreplay::NotifyActivity(), which tells the driver the process is busy without advancing the progress counter, and call it from work that can run for seconds without advancing it: every main-thread GC scope opened inside a GC, the marking and linear ephemeron loops every 64K objects, and each chunk of output from a synchronous zlib or Brotli compression. Without it the replay processor declares a process that would finish Hanged after its progress counter has been flat for ten seconds. Scopes opened outside a GC, such as sweeping on allocation, and a GC blocked waiting on something else deliberately stay silent. Regexp matching is another such path: neither the bytecode interpreter nor generated regexp code advances anything the progress counter includes, so a match that backtracks for long enough got the replay killed as Hanged although it would finish, as replays of production recording 4d0ee7d8 were in IrregexpInterpreter::MatchInternal. Matches without a backtrack limit report activity every 2^20 backtracks. The interpreter treats every 2^20th backtrack as its backtrack limit and moves the limit on, so the per-backtrack path stays upstream's compare against that limit; x64 generated code counts backtracks in the frame's backtrack counter slot and then calls the preemption handler, which reports activity and returns without effect unless an interrupt is pending, and skips that call within 4 KB of the stack limit, where the handler would report an overflow the match doesn't have. Only x64 generated code reports activity, since node recordings are made on linux x64, and code generated when not recording is unchanged. Rebase note: NotifyActivity() must stay on every path that can run for seconds without advancing the progress counter, and must not be added to paths that are merely idle, since that would mask a real hang. Add it to new upstream paths of that kind. From #210 and #220. Co-Authored-By: Claude Opus 5 <[email protected]>
Andarist
added a commit
that referenced
this pull request
Add v8::recordreplay::NotifyActivity(), which tells the driver the process is busy without advancing the progress counter, and call it from work that can run for seconds without advancing it: every main-thread GC scope opened inside a GC, the marking and linear ephemeron loops every 64K objects, and each chunk of output from a synchronous zlib or Brotli compression. Without it the replay processor declares a process that would finish Hanged after its progress counter has been flat for ten seconds. Scopes opened outside a GC, such as sweeping on allocation, and a GC blocked waiting on something else deliberately stay silent. Regexp matching is another such path: neither the bytecode interpreter nor generated regexp code advances anything the progress counter includes, so a match that backtracks for long enough got the replay killed as Hanged although it would finish, as replays of production recording 4d0ee7d8 were in IrregexpInterpreter::MatchInternal. Matches without a backtrack limit report activity every 2^20 backtracks. The interpreter treats every 2^20th backtrack as its backtrack limit and moves the limit on, so the per-backtrack path stays upstream's compare against that limit; x64 generated code counts backtracks in the frame's backtrack counter slot and then calls the preemption handler, which reports activity and returns without effect unless an interrupt is pending, and skips that call within 4 KB of the stack limit, where the handler would report an overflow the match doesn't have. Only x64 generated code reports activity, since node recordings are made on linux x64, and code generated when not recording is unchanged. Rebase note: NotifyActivity() must stay on every path that can run for seconds without advancing the progress counter, and must not be added to paths that are merely idle, since that would mask a real hang. Add it to new upstream paths of that kind. From #210 and #220. Co-Authored-By: Claude Opus 5 <[email protected]>
Andarist
added a commit
that referenced
this pull request
Add v8::recordreplay::NotifyActivity(), which tells the driver the process is busy without advancing the progress counter, and call it from work that can run for seconds without advancing it: every main-thread GC scope opened inside a GC, the marking and linear ephemeron loops every 64K objects, and each chunk of output from a synchronous zlib or Brotli compression. Without it the replay processor declares a process that would finish Hanged after its progress counter has been flat for ten seconds. Scopes opened outside a GC, such as sweeping on allocation, and a GC blocked waiting on something else deliberately stay silent. Regexp matching is another such path: neither the bytecode interpreter nor generated regexp code advances anything the progress counter includes, so a match that backtracks for long enough got the replay killed as Hanged although it would finish, as replays of production recording 4d0ee7d8 were in IrregexpInterpreter::MatchInternal. Matches without a backtrack limit report activity every 2^20 backtracks. The interpreter treats every 2^20th backtrack as its backtrack limit and moves the limit on, so the per-backtrack path stays upstream's compare against that limit; x64 generated code counts backtracks in the frame's backtrack counter slot and then calls the preemption handler, which reports activity and returns without effect unless an interrupt is pending, and skips that call within 4 KB of the stack limit, where the handler would report an overflow the match doesn't have. Only x64 generated code reports activity, since node recordings are made on linux x64, and code generated when not recording is unchanged. Rebase note: NotifyActivity() must stay on every path that can run for seconds without advancing the progress counter, and must not be added to paths that are merely idle, since that would mask a real hang. Add it to new upstream paths of that kind. From #210 and #220. Co-Authored-By: Claude Opus 5 <[email protected]>
Andarist
added a commit
that referenced
this pull request
Add v8::recordreplay::NotifyActivity(), which tells the driver the process is busy without advancing the progress counter, and call it from work that can run for seconds without advancing it: every main-thread GC scope opened inside a GC, the marking and linear ephemeron loops every 64K objects, and each chunk of output from a synchronous zlib or Brotli compression. Without it the replay processor declares a process that would finish Hanged after its progress counter has been flat for ten seconds. Scopes opened outside a GC, such as sweeping on allocation, and a GC blocked waiting on something else deliberately stay silent. Regexp matching is another such path: neither the bytecode interpreter nor generated regexp code advances anything the progress counter includes, so a match that backtracks for long enough got the replay killed as Hanged although it would finish, as replays of production recording 4d0ee7d8 were in IrregexpInterpreter::MatchInternal. Matches without a backtrack limit report activity every 2^20 backtracks. The interpreter treats every 2^20th backtrack as its backtrack limit and moves the limit on, so the per-backtrack path stays upstream's compare against that limit; x64 generated code counts backtracks in the frame's backtrack counter slot and then calls the preemption handler, which reports activity and returns without effect unless an interrupt is pending, and skips that call within 4 KB of the stack limit, where the handler would report an overflow the match doesn't have. Only x64 generated code reports activity, since node recordings are made on linux x64, and code generated when not recording is unchanged. Rebase note: NotifyActivity() must stay on every path that can run for seconds without advancing the progress counter, and must not be added to paths that are merely idle, since that would mask a real hang. Add it to new upstream paths of that kind. From #210 and #220. Co-Authored-By: Claude Opus 5 <[email protected]>
Andarist
added a commit
that referenced
this pull request
Add v8::recordreplay::NotifyActivity(), which tells the driver the process is busy without advancing the progress counter, and call it from work that can run for seconds without advancing it: every main-thread GC scope opened inside a GC, the marking and linear ephemeron loops every 64K objects, and each chunk of output from a synchronous zlib or Brotli compression. Without it the replay processor declares a process that would finish Hanged after its progress counter has been flat for ten seconds. Scopes opened outside a GC, such as sweeping on allocation, and a GC blocked waiting on something else deliberately stay silent. Regexp matching is another such path: neither the bytecode interpreter nor generated regexp code advances anything the progress counter includes, so a match that backtracks for long enough got the replay killed as Hanged although it would finish, as replays of production recording 4d0ee7d8 were in IrregexpInterpreter::MatchInternal. Matches without a backtrack limit report activity every 2^20 backtracks. The interpreter treats every 2^20th backtrack as its backtrack limit and moves the limit on, so the per-backtrack path stays upstream's compare against that limit; x64 generated code counts backtracks in the frame's backtrack counter slot and then calls the preemption handler, which reports activity and returns without effect unless an interrupt is pending, and skips that call within 4 KB of the stack limit, where the handler would report an overflow the match doesn't have. Only x64 generated code reports activity, since node recordings are made on linux x64, and code generated when not recording is unchanged. Rebase note: NotifyActivity() must stay on every path that can run for seconds without advancing the progress counter, and must not be added to paths that are merely idle, since that would mask a real hang. Add it to new upstream paths of that kind. From #210 and #220. Co-Authored-By: Claude Opus 5 <[email protected]>
Andarist
added a commit
that referenced
this pull request
Add v8::recordreplay::NotifyActivity(), which tells the driver the process is busy without advancing the progress counter, and call it from work that can run for seconds without advancing it: every main-thread GC scope opened inside a GC, the marking and linear ephemeron loops every 64K objects, and each chunk of output from a synchronous zlib or Brotli compression. Without it the replay processor declares a process that would finish Hanged after its progress counter has been flat for ten seconds. Scopes opened outside a GC, such as sweeping on allocation, and a GC blocked waiting on something else deliberately stay silent. Regexp matching is another such path: neither the bytecode interpreter nor generated regexp code advances anything the progress counter includes, so a match that backtracks for long enough got the replay killed as Hanged although it would finish, as replays of production recording 4d0ee7d8 were in IrregexpInterpreter::MatchInternal. Matches without a backtrack limit report activity every 2^20 backtracks. The interpreter treats every 2^20th backtrack as its backtrack limit and moves the limit on, so the per-backtrack path stays upstream's compare against that limit; x64 generated code counts backtracks in the frame's backtrack counter slot and then calls the preemption handler, which reports activity and returns without effect unless an interrupt is pending, and skips that call within 4 KB of the stack limit, where the handler would report an overflow the match doesn't have. Only x64 generated code reports activity, since node recordings are made on linux x64, and code generated when not recording is unchanged. Rebase note: NotifyActivity() must stay on every path that can run for seconds without advancing the progress counter, and must not be added to paths that are merely idle, since that would mask a real hang. Add it to new upstream paths of that kind. From #210 and #220. Co-Authored-By: Claude Opus 5 <[email protected]>
Andarist
added a commit
that referenced
this pull request
Add v8::recordreplay::NotifyActivity(), which tells the driver the process is busy without advancing the progress counter, and call it from work that can run for seconds without advancing it: every main-thread GC scope opened inside a GC, the marking and linear ephemeron loops every 64K objects, and each chunk of output from a synchronous zlib or Brotli compression. Without it the replay processor declares a process that would finish Hanged after its progress counter has been flat for ten seconds. Scopes opened outside a GC, such as sweeping on allocation, and a GC blocked waiting on something else deliberately stay silent. Regexp matching is another such path: neither the bytecode interpreter nor generated regexp code advances anything the progress counter includes, so a match that backtracks for long enough got the replay killed as Hanged although it would finish, as replays of production recording 4d0ee7d8 were in IrregexpInterpreter::MatchInternal. Matches without a backtrack limit report activity every 2^20 backtracks. The interpreter treats every 2^20th backtrack as its backtrack limit and moves the limit on, so the per-backtrack path stays upstream's compare against that limit; x64 generated code counts backtracks in the frame's backtrack counter slot and then calls the preemption handler, which reports activity and returns without effect unless an interrupt is pending, and skips that call within 4 KB of the stack limit, where the handler would report an overflow the match doesn't have. Only x64 generated code reports activity, since node recordings are made on linux x64, and code generated when not recording is unchanged. Rebase note: NotifyActivity() must stay on every path that can run for seconds without advancing the progress counter, and must not be added to paths that are merely idle, since that would mask a real hang. Add it to new upstream paths of that kind. From #210 and #220. Co-Authored-By: Claude Opus 5 <[email protected]>
Andarist
added a commit
that referenced
this pull request
Add v8::recordreplay::NotifyActivity(), which tells the driver the process is busy without advancing the progress counter, and call it from work that can run for seconds without advancing it: every main-thread GC scope opened inside a GC, the marking and linear ephemeron loops every 64K objects, and each chunk of output from a synchronous zlib or Brotli compression. Without it the replay processor declares a process that would finish Hanged after its progress counter has been flat for ten seconds. Scopes opened outside a GC, such as sweeping on allocation, and a GC blocked waiting on something else deliberately stay silent. Regexp matching is another such path: neither the bytecode interpreter nor generated regexp code advances anything the progress counter includes, so a match that backtracks for long enough got the replay killed as Hanged although it would finish, as replays of production recording 4d0ee7d8 were in IrregexpInterpreter::MatchInternal. Matches without a backtrack limit report activity every 2^20 backtracks. The interpreter treats every 2^20th backtrack as its backtrack limit and moves the limit on, so the per-backtrack path stays upstream's compare against that limit; x64 generated code counts backtracks in the frame's backtrack counter slot and then calls the preemption handler, which reports activity and returns without effect unless an interrupt is pending, and skips that call within 4 KB of the stack limit, where the handler would report an overflow the match doesn't have. Only x64 generated code reports activity, since node recordings are made on linux x64, and code generated when not recording is unchanged. Rebase note: NotifyActivity() must stay on every path that can run for seconds without advancing the progress counter, and must not be added to paths that are merely idle, since that would mask a real hang. Add it to new upstream paths of that kind. From #210 and #220. Co-Authored-By: Claude Opus 5 <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ReviewersNo reviewsUh oh!
There was an error while loading. Please reload this page. AssigneesNo one assignedLabels
None yet
ProjectsMilestoneNo milestoneDevelopmentSuccessfully merging this pull request may close these issues. Uh oh!
There was an error while loading. Please reload this page. Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later. |
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |