Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

*: Fix USE_JEMALLOC macro #9083

Merged
merged 4 commits into from
May 24, 2024
Merged

Conversation

CalvinNeo
Copy link
Member

@CalvinNeo CalvinNeo commented May 24, 2024

What problem does this PR solve?

Issue Number: close #8835

Problem Summary:

What is changed and how it works?

Fix USE_JEMALLOC macro

Check List

Tests

  • Unit test
  • Integration test
  • Manual test (add detailed scripts or steps below)
  • No code

Side effects

  • Performance regression: Consumes more CPU
  • Performance regression: Consumes more Memory
  • Breaking backward compatibility

Documentation

  • Affects user behaviors
  • Contains syntax changes
  • Contains variable changes
  • Contains experimental features
  • Changes MySQL compatibility

Release note

None

f
Signed-off-by: CalvinNeo <[email protected]>
@ti-chi-bot ti-chi-bot bot added release-note-none Denotes a PR that doesn't merit a release note. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels May 24, 2024
@@ -16,14 +16,17 @@
#include <common/config_common.h> // Included for `USE_JEMALLOC`

#ifdef USE_JEMALLOC
#if USE_JEMALLOC == 1
Copy link
Contributor

@yibin87 yibin87 May 24, 2024

Choose a reason for hiding this comment

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

I don't get the point. Why add "#if USE_JEMALLOC == 1" works here? It seems limit the scenarios that include jemalloc head file.

Copy link
Member Author

@CalvinNeo CalvinNeo May 24, 2024

Choose a reason for hiding this comment

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

Because it could be 0, that's why the compile fails
image

dbms/src/Common/MemoryAllocTrace.cpp Outdated Show resolved Hide resolved
dbms/src/Common/MemoryAllocTrace.cpp Outdated Show resolved Hide resolved
dbms/src/Common/MemoryAllocTrace.cpp Outdated Show resolved Hide resolved
@ti-chi-bot ti-chi-bot bot added needs-1-more-lgtm Indicates a PR needs 1 more LGTM. approved labels May 24, 2024
Copy link
Contributor

@yibin87 yibin87 left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

ti-chi-bot bot commented May 24, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: Lloyd-Pottiger, yibin87

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:
  • OWNERS [Lloyd-Pottiger,yibin87]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@ti-chi-bot ti-chi-bot bot added lgtm and removed needs-1-more-lgtm Indicates a PR needs 1 more LGTM. labels May 24, 2024
Copy link
Contributor

ti-chi-bot bot commented May 24, 2024

[LGTM Timeline notifier]

Timeline:

  • 2024-05-24 03:03:40.231561109 +0000 UTC m=+2399973.988696677: ☑️ agreed by Lloyd-Pottiger.
  • 2024-05-24 03:04:39.300002653 +0000 UTC m=+2400033.057138226: ☑️ agreed by yibin87.

@ti-chi-bot ti-chi-bot bot merged commit fa919ae into pingcap:master May 24, 2024
5 checks passed
JaySon-Huang pushed a commit to JaySon-Huang/tiflash that referenced this pull request Aug 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved lgtm release-note-none Denotes a PR that doesn't merit a release note. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support thread-wise memory alloc/dealloc monitor
3 participants