-
Notifications
You must be signed in to change notification settings - Fork 14
feat(wall): support signal suppression for unfiltered threads #663
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
Changes from all commits
1118f62
40dbe8e
d82291f
ec76f58
52def55
9723a5a
e6c6793
51a9178
9e3701e
4954d49
80f8049
31c5cfc
efb6648
22b8e00
d124905
82e05b6
f5b81de
b397ac9
599c21e
a68d3f2
391fdd2
d6f5b1a
4d2c505
8ef675e
172e453
1b94815
26ae49b
930f734
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,9 +1,28 @@ | ||
| /* | ||
| * Copyright 2026, Datadog, Inc. | ||
| * SPDX-License-Identifier: Apache-2.0 | ||
| */ | ||
| #ifndef _FRAMES_H | ||
| #define _FRAMES_H | ||
|
|
||
| #include <jni.h> | ||
| #include <jvmti.h> | ||
| #include "vmEntry.h" | ||
|
|
||
| inline void copyJvmtiFrames(ASGCT_CallFrame *frames, | ||
| const jvmtiFrameInfo *jvmti_frames, | ||
| jint num_frames) { | ||
| // The source and destination commonly refer to the two views of the same | ||
| // CallTraceBuffer union. Read both source fields before either write. | ||
| for (jint i = 0; i < num_frames; ++i) { | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This might be a premature optimization, but did you consider making the code friendlier to potential vectorization?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Honestly I didn't for now, but it is definitely something to consider. |
||
| jmethodID method = jvmti_frames[i].method; | ||
| jlocation location = jvmti_frames[i].location; | ||
| frames[i].method_id = method; | ||
| frames[i].bci = static_cast<jint>(location); | ||
| LP64_ONLY(frames[i].padding = 0;) | ||
| } | ||
| } | ||
|
|
||
| inline int makeFrame(ASGCT_CallFrame *frames, jint type, jmethodID id) { | ||
| frames[0].bci = type; | ||
| frames[0].method_id = id; | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.