Skip to content

Make JFR stack traces available during flushes #6226

@roberttoyonaga

Description

@roberttoyonaga

Currently, stacktraces are disabled for flushing. This means that streamed events will not have stacktrace data. The problem is that we cannot safely access the sample buffers of other threads outside of safepoints. This is a problem because they must be accessed so they can be serialized and written to the chunk lazily by a thread performing the flush operation. One possible solution is to adapt a similar approach to how the JfrBuffers are iterated outside of safepoints (collecting them in a list).

Express whether you'd like to help contributing this feature
I'll help with this feature.

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions