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 — lttng: updated flags for gc tracing by GlenTiki · Pull Request #3388 · nodejs/node

Conversation

@GlenTiki

@GlenTiki GlenTiki commented Oct 15, 2015

Copy link
Copy Markdown
Contributor

This fixes some build errors I was getting while trying to build --with-lttng. :)

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@GlenTiki
lttng: updated flags for gc tracing
bf34dcc
@mscdex mscdex added the post-mortem Issues and PRs related to Node.js postmortem diagnostics. label Oct 15, 2015
@Fishrock123

Fishrock123 commented Oct 16, 2015

Copy link
Copy Markdown
Contributor

cc @nodejs/lts

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@rvagg

rvagg commented Oct 16, 2015

Copy link
Copy Markdown
Member

@thekemkid do you know how long this has been broken? it'd be nice if we could get some lttng folks using releases more often so this stuff was kept in shape.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@GlenTiki

GlenTiki commented Oct 16, 2015

Copy link
Copy Markdown
Contributor Author

@rvagg it looks like it was working in the v4.1.2 proposal branch. I'm planning on doing some more work on lttng/adding more lttng tracepoints so I'll keep maintaining it. :)

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

bnoordhuis
bnoordhuis reviewed Oct 16, 2015
View reviewed changes
Comment thread src/node_lttng_provider.h Outdated

@bnoordhuis bnoordhuis Oct 16, 2015

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Long lines, please keep them <= 80 columns.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@GlenTiki GlenTiki Oct 16, 2015

Copy link
Copy Markdown
Contributor Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would it be okay if I used a switch here instead?
Heres what I'm thinking:

switch (flags) {
    case 
      v8::GCCallbackFlags::kNoGCCallbackFlags:
        flagsStr = "kNoGCCallbackFlags";
    break;
    case 
      v8::GCCallbackFlags::kGCCallbackFlagConstructRetainedObjectInfos;
        flagsStr = "kGCCallbackFlagConstructRetainedObjectInfos";
    break;
    case 
      v8::GCCallbackFlags::kGCCallbackFlagForced:
        flagsStr = "kGCCallbackFlagForced";
    break;
    case 
      v8::GCCallbackFlags::kGCCallbackFlagSynchronousPhantomCallbackProcessing:
        flagsStr = "kGCCallbackFlagSynchronousPhantomCallbackProcessing";
    break;
    default:
        flagsStr = "Unrecognised GCCallbackFlag";
    break;
  }

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@bnoordhuis bnoordhuis Oct 17, 2015

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That looks a little awkward. You could add a using F = v8::GCCallbackFlags a few lines up so you can shorten the names but I'd probably use an x-macro to generate the clauses. That lets you drop the duplication of the enum and the string as well. You can find an example of an x-macro in src/node_v8.cc, grep for HEAP_STATISTICS_PROPERTIES.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@GlenTiki GlenTiki Oct 17, 2015

Copy link
Copy Markdown
Contributor Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done! I also shortened the GCType if statement with an x-macro too.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@bnoordhuis

bnoordhuis commented Oct 16, 2015

Copy link
Copy Markdown
Member

The breakage is because of the recent upgrade to V8 4.6 in master.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@GlenTiki
Shortened repetitive if statements with x-macro
abbf63a
@GlenTiki

GlenTiki commented Oct 17, 2015

Copy link
Copy Markdown
Contributor Author

Okay, I think this is ready to be reviewed again :) Let me know if I need to squash the commits.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@GlenTiki

GlenTiki commented Oct 20, 2015

Copy link
Copy Markdown
Contributor Author

could I get another review? @nodejs/lts

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

bnoordhuis pushed a commit that referenced this pull request Oct 20, 2015
@GlenTiki @bnoordhuis
lttng: update flags for gc tracing
9adc6a6
PR-URL: #3388
Reviewed-By: Ben Noordhuis <[email protected]>
@bnoordhuis

bnoordhuis commented Oct 20, 2015

Copy link
Copy Markdown
Member

Landed in 9adc6a6, thanks. Can you make sure next time that make cpplint is happy?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@bnoordhuis bnoordhuis closed this Oct 20, 2015
@MylesBorins

MylesBorins commented Oct 20, 2015

Copy link
Copy Markdown
Contributor

Should we add an LTS tag here?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@Fishrock123

Fishrock123 commented Oct 20, 2015

Copy link
Copy Markdown
Contributor

The breakage is because of the recent upgrade to V8 4.6 in master.

Should we add an LTS tag here?

No need. :)

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@GlenTiki

GlenTiki commented Oct 20, 2015

Copy link
Copy Markdown
Contributor Author

@bnoordhuis will do, thanks :)

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

rvagg pushed a commit that referenced this pull request Oct 21, 2015
@GlenTiki @rvagg
lttng: update flags for gc tracing
d5ce534
PR-URL: #3388
Reviewed-By: Ben Noordhuis <[email protected]>
@rvagg rvagg mentioned this pull request Oct 21, 2015
Release proposal: v5.0.0 #3466
Merged
@rvagg rvagg mentioned this pull request Oct 28, 2015
Preparing v4.2.2 LTS Maintenance nodejs/Release#50
Closed
@rvagg rvagg mentioned this pull request Dec 17, 2015
Release 4.2.4 Planning #4321
Closed
@jasnell jasnell added the lts-watch-v4.x label Dec 17, 2015
@MylesBorins

MylesBorins commented Dec 29, 2015

Copy link
Copy Markdown
Contributor

@jasnell it doesn't look like 2930867 has been backported to LTS. I don't think we should be backporting this commit unless we upgrade v8 to 4.6 on LTS

thoughts?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@MylesBorins MylesBorins removed the lts-watch-v4.x label Jan 6, 2016
@MylesBorins

MylesBorins commented Jan 6, 2016

Copy link
Copy Markdown
Contributor

Removing LTS tag. @jasnell @rvagg feel free to re apply

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@MylesBorins MylesBorins mentioned this pull request Jan 14, 2016
Audit commits not found on v4.x-staging #4698
Closed
@rvagg rvagg added the dont-land-on-v4.x label Jan 15, 2016
@snyk-bot snyk-bot mentioned this pull request Mar 16, 2020
[Snyk] Upgrade rollup from 0.62.0 to 1.31.1 luke7oaks/node-1#2
Open
@snyk-bot snyk-bot mentioned this pull request Aug 10, 2020
[Snyk] Upgrade rollup from 1.30.1 to 1.32.1 - autoclosed turkdevops/node#3
Closed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

post-mortem Issues and PRs related to Node.js postmortem diagnostics.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

7 participants

@GlenTiki @Fishrock123 @rvagg @bnoordhuis @MylesBorins @mscdex @jasnell
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.