GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — doc: improve c++ embedder API doc · nodejs/node@5de2567

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • doc/api
    • embedding.md
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎doc/api/embedding.md‎

Copy file name to clipboardExpand all lines: doc/api/embedding.md
+7-6Lines changed: 7 additions & 6 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ a Node.js-specific environment.
2323

2424
The full code can be found [in the Node.js source tree][embedtest.cc].
2525

26-
### Setting up per-process state
26+
### Setting up a per-process state
2727

2828
Node.js requires some per-process state management in order to run:
2929

@@ -72,7 +72,7 @@ int main(int argc, char** argv) {
7272
}
7373
```
7474
75-
### Per-instance state
75+
### Setting up a per-instance state
7676
7777
<!-- YAML
7878
changes:
@@ -86,11 +86,12 @@ Node.js has a concept of a “Node.js instance”, that is commonly being referr
8686
to as `node::Environment`. Each `node::Environment` is associated with:
8787
8888
* Exactly one `v8::Isolate`, i.e. one JS Engine instance,
89-
* Exactly one `uv_loop_t`, i.e. one event loop, and
90-
* A number of `v8::Context`s, but exactly one main `v8::Context`.
89+
* Exactly one `uv_loop_t`, i.e. one event loop,
90+
* A number of `v8::Context`s, but exactly one main `v8::Context`, and
9191
* One `node::IsolateData` instance that contains information that could be
92-
shared by multiple `node::Environment`s that use the same `v8::Isolate`.
93-
Currently, no testing is performed for this scenario.
92+
shared by multiple `node::Environment`s. The embedder should make sure
93+
that `node::IsolateData` is shared only among `node::Environment`s that
94+
use the same `v8::Isolate`, Node.js does not perform this check.
9495
9596
In order to set up a `v8::Isolate`, an `v8::ArrayBuffer::Allocator` needs
9697
to be provided. One possible choice is the default Node.js allocator, which

0 commit comments

Comments
0 (0)
You are visitor 01402503 — 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.