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 — deps: cherry-pick bf5ea81 from upstream V8 · nodejs/node@c84c27f

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • common.gypi
  • deps/v8/src/libplatform/tracing
    • tracing-controller.cc
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎common.gypi‎

Copy file name to clipboardExpand all lines: common.gypi
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929

3030
# Reset this number to 0 on major V8 upgrades.
3131
# Increment by one for each non-official patch applied to deps/v8.
32-
'v8_embedder_string': '-node.23',
32+
'v8_embedder_string': '-node.24',
3333

3434
# Enable disassembler for `--print-code` v8 options
3535
'v8_enable_disassembler': 1,
Collapse file

‎deps/v8/src/libplatform/tracing/tracing-controller.cc‎

Copy file name to clipboardExpand all lines: deps/v8/src/libplatform/tracing/tracing-controller.cc
+4-9Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -24,18 +24,17 @@ namespace tracing {
2424
// convert internally to determine the category name from the char enabled
2525
// pointer.
2626
const char* g_category_groups[MAX_CATEGORY_GROUPS] = {
27-
"toplevel", "tracing already shutdown",
27+
"toplevel",
2828
"tracing categories exhausted; must increase MAX_CATEGORY_GROUPS",
2929
"__metadata"};
3030

3131
// The enabled flag is char instead of bool so that the API can be used from C.
3232
unsigned char g_category_group_enabled[MAX_CATEGORY_GROUPS] = {0};
3333
// Indexes here have to match the g_category_groups array indexes above.
34-
const int g_category_already_shutdown = 1;
35-
const int g_category_categories_exhausted = 2;
34+
const int g_category_categories_exhausted = 1;
3635
// Metadata category not used in V8.
37-
// const int g_category_metadata = 3;
38-
const int g_num_builtin_categories = 4;
36+
// const int g_category_metadata = 2;
37+
const int g_num_builtin_categories = 3;
3938

4039
// Skip default categories.
4140
v8::base::AtomicWord g_category_index = g_num_builtin_categories;
@@ -103,10 +102,6 @@ void TracingController::UpdateTraceEventDuration(
103102

104103
const uint8_t* TracingController::GetCategoryGroupEnabled(
105104
const char* category_group) {
106-
if (!trace_buffer_) {
107-
DCHECK(!g_category_group_enabled[g_category_already_shutdown]);
108-
return &g_category_group_enabled[g_category_already_shutdown];
109-
}
110105
return GetCategoryGroupEnabledInternal(category_group);
111106
}
112107

0 commit comments

Comments
0 (0)
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.