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

Remove old malloc trace implementation #1866

Merged
merged 3 commits into from
Nov 18, 2024

Conversation

schmelter-sap
Copy link
Member

Removes the old malloc trace implementation.

fixes #1865

@SapMachine
Copy link
Member

Hello @schmelter-sap, this pull request fulfills all formal requirements.

@@ -962,7 +955,7 @@ jboolean ShouldPreloadLibMallocHooks(int argc, char **argv) {
}
}

return (uses_new_trace && !uses_old_trace) ? JNI_TRUE : JNI_FALSE;
return uses_new_trace ? JNI_TRUE : JNI_FALSE;
Copy link
Member

Choose a reason for hiding this comment

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

Just return uses_new_trace.
And better rename it. Maybe trace_is_enabled?

@SapMachine
Copy link
Member

Hello @schmelter-sap, this pull request fulfills all formal requirements.

Copy link
Member

@reinrich reinrich left a comment

Choose a reason for hiding this comment

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

Looks good 👍

Copy link
Member

@RealCLanger RealCLanger left a comment

Choose a reason for hiding this comment

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

Richards findings were what I found as well. Tests are good, failures are unrelated. So this is good. 👍

@RealCLanger RealCLanger merged commit c7b0261 into SAP:sapmachine Nov 18, 2024
69 of 73 checks passed
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.

Remove old malloc trace implementation
4 participants