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

Downstream aarch64 related fixes #154

Merged
merged 4 commits into from
Dec 5, 2024
Merged

Downstream aarch64 related fixes #154

merged 4 commits into from
Dec 5, 2024

Conversation

jbachorik
Copy link
Collaborator

@jbachorik jbachorik commented Nov 21, 2024

What does this PR do?:
It downstreams two aarch64 related fixes

Motivation:
Improving the aarch64 profiling stability

Additional Notes:
Additional aarch64 GHA runners were added. This also required some minor adjustments in the code to avoid crashes on those aarch64 runners (these things are most probably setup specific as I could not reproduce the problems on an aarch64 ec2 instance)

How to test the change?:

For Datadog employees:

  • If this PR touches code that signs or publishes builds or packages, or handles
    credentials of any kind, I've requested a review from @DataDog/security-design-and-guidance.
  • This PR doesn't touch any of that.
  • JIRA: PROF-10874

Unsure? Have a question? Request a review!

Copy link

github-actions bot commented Nov 21, 2024

🔧 Report generated by pr-comment-scanbuild

Scan-Build Report

User:runner@fv-az1152-234
Working Directory:/home/runner/work/java-profiler/java-profiler/ddprof-lib/src/test/make
Command Line:make -j4 clean all
Clang Version:Ubuntu clang version 14.0.0-1ubuntu1.1
Date:Mon Nov 25 17:17:28 2024

Bug Summary

Bug TypeQuantityDisplay?
All Bugs6
Logic error
Assigned value is garbage or undefined1
Dereference of null pointer3
Result of operation is garbage or undefined1
Unused code
Dead nested assignment1

Reports

Bug Group Bug Type ▾ File Function/Method Line Path Length
Logic errorAssigned value is garbage or undefineddwarf.cppparseInstructions24420
Unused codeDead nested assignmentvmStructs.cppcheckNativeBinding9451
Logic errorDereference of null pointersafeAccess.hload3318
Logic errorDereference of null pointersymbols_linux.hElfParser12932
Logic errorDereference of null pointerflightRecorder.cppflush15048
Logic errorResult of operation is garbage or undefinedvmStructs.cppfind84016

Copy link

github-actions bot commented Nov 21, 2024

🔧 Report generated by pr-comment-cppcheck

CppCheck Report

Warnings (6)

Style Violations (176)

@jbachorik jbachorik force-pushed the jb/aarch64_fixes branch 5 times, most recently from 702725a to a0d07f9 Compare November 25, 2024 16:42
@jbachorik jbachorik marked this pull request as ready for review November 25, 2024 17:16
@Override
protected void withTestAssumptions() {
// vmstructs based stackwalking will throw ISE on Java 23
Assumptions.assumeFalse(Platform.isJavaVersionAtLeast(23));
Copy link
Collaborator

Choose a reason for hiding this comment

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

I assume we do not use vmstructs for now on 23. Happy to talk more about this.

Copy link
Collaborator

@r1viollet r1viollet left a comment

Choose a reason for hiding this comment

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

LGTM
I'm especially happy about the arm tests we are adding

@r1viollet r1viollet merged commit d756726 into main Dec 5, 2024
40 checks passed
@github-actions github-actions bot added this to the 1.18.0 milestone Dec 5, 2024
@@ -136,9 +136,21 @@ bool StackFrame::unwindCompiled(NMethod *nm, uintptr_t &pc, uintptr_t &sp,
return true;
}

void StackFrame::adjustCompiled(NMethod *nm, const void *pc, uintptr_t &sp) {
bool StackFrame::unwindAtomicStub(const void*& pc) {
// VM threads may call generated atomic stubs, which are not normally walkable
Copy link
Contributor

Choose a reason for hiding this comment

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

LGTM, leaving comment here to refer back later

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.

4 participants