Benign debian download unavailable

node_worker.cc

Megabyte-scale size constant in sourceCopies bytes with native memcpy
SHA-256e3958252418e06490aa00214c2dfd461938ed7c12c736c25b2c132dae0600a91

Evidence

imports async_wrap-inl.h lines 1–21
1#include "node_worker.h"
2#include "debug_utils-inl.h"
3#include "histogram-inl.h"
4#include "memory_tracker-inl.h"
5#include "node_errors.h"
6#include "node_external_reference.h"
7#include "node_buffer.h"
8#include "node_options-inl.h"
9#include "node_perf.h"
10#include "node_snapshot_builder.h"
11#include "util-inl.h"
12#include "async_wrap-inl.h"
13
14#include <memory>
15#include <string>
16#include <vector>
17
18using node::kAllowedInEnvvar;
19using node::kDisallowedInEnvvar;
20using v8::Array;
21using v8::Arra …
Megabyte-scale size constant in source lines 41–51
41:13… lue;
42
43namespace node {
44namespace worker {
45
46constexpr double kMB = 1024 * 1024;
47
48Worker::Worker(Environment* env,
49 Local<Object> wrap,
50 const std::string& url,
51 con …
English function-word token "the" lines 62–69
62:26… ,
63 snapshot_data_(snapshot_data) {
64 Debug(this, "Creating new worker instance with thread id %llu",
65 thread_id_.id);
66
67 // Set up everything that needs to be set up in the parent environment.
68 MessagePort* parent_port = MessagePort::New(env, env->context());
69 if (p …
C declares a character or byte buffer lines 137–144
137:13… {
138 int ret = uv_loop_init(&loop_);
139 if (ret != 0) {
140 char err_buf[128];
141 uv_err_name_r(ret, err_buf, sizeof(err_buf));
142 w->Exit(1, "ERR_WORKER_INIT_FAILED", err_buf);
143 return;
144 …
Copies bytes with native memcpy lines 725–731
725:19… r> ab = ArrayBuffer::New(isolate, sizeof(resource_limits_));
726
727 memcpy(ab->Data(), resource_limits_, sizeof(resource_limits_));
728 return Float64Array::New(ab, 0, kTotalResourceLimitCount);
729}
730
731void W …

Keyboard shortcuts on this page: j for the next sample, k for the previous one, x to go back to the feed, d to download the original bytes, r to re-queue the sample for analysis.