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

Serialize restricted collections as regular object #7274

Merged
merged 1 commit into from
Jul 8, 2024

Conversation

jpbempel
Copy link
Member

@jpbempel jpbempel commented Jul 3, 2024

What Does This Do

We specially serialize collections/maps into snapshot using interfaces and calling methods like size() but we restrict this for JDK collections that are guarantee to be only in-memory. For all others we are raising an exception. Instead we should just serialize then as regular object with fields.

Motivation

#7254

Additional Notes

Jira ticket: DEBUG-2502

We specially serialize collections/maps inot snapshot using interfaces
and calling methods like size() but we restrict this for JDK
collections that are guarantee to be only in-memory.
For all others we are raising an exception. Instead we should just
serialize then as regular object with fields.
@jpbempel jpbempel requested a review from a team as a code owner July 3, 2024 16:48
@jpbempel jpbempel requested review from ojung and removed request for a team July 3, 2024 16:48
@jpbempel jpbempel added the comp: debugger Dynamic Instrumentation label Jul 3, 2024
Copy link
Contributor

@shatzi shatzi left a comment

Choose a reason for hiding this comment

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

I like this change. Make this more complete.

@jpbempel jpbempel merged commit 5a09529 into master Jul 8, 2024
80 checks passed
@jpbempel jpbempel deleted the jpbempel/restricted-collection-fallback branch July 8, 2024 19:58
@github-actions github-actions bot added this to the 1.38.0 milestone Jul 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
comp: debugger Dynamic Instrumentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants