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

obj: always log an error that occurs in heap action processing #5589

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

grom72
Copy link
Contributor

@grom72 grom72 commented Apr 20, 2023

obj: always log an error that occurs in heap action processing

Signed-off-by: Tomasz Gromadzki [email protected]


This change is Reviewable

@@ -269,13 +269,13 @@ palloc_heap_action_exec(struct palloc_heap *heap,
/* suppress unused-parameter errors */
SUPPRESS_UNUSED(heap);

#ifdef DEBUG
Copy link
Contributor

Choose a reason for hiding this comment

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

You add not only logging but also reading. The thought is that this can affect performance.

Copy link
Member

Choose a reason for hiding this comment

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

This will cause one extra PMem memory access on all heap operations. It might be worth checking if the performance impact isn't negligible.

@wlemkows wlemkows requested a review from pbalcer April 21, 2023 10:07
@grom72 grom72 marked this pull request as draft April 25, 2023 19:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants