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

Add special support for enum values #5441

Merged
merged 1 commit into from
Jun 23, 2023
Merged

Add special support for enum values #5441

merged 1 commit into from
Jun 23, 2023

Conversation

jpbempel
Copy link
Member

What Does This Do

We are serializing then the enum constant name in the snapshot instead of handling enum as regular complex class

Motivation

Enum in java are in fact regular classes with a special treatment by the java compiler. from the POV of the JVM there is no difference. From user perspective however it would be nice to have constant name as enum values.

Additional Notes

@jpbempel jpbempel requested a review from a team as a code owner June 21, 2023 12:35
@jpbempel jpbempel requested review from cimi and removed request for a team June 21, 2023 12:35
@jpbempel jpbempel added the comp: debugger Dynamic Instrumentation label Jun 21, 2023
@pr-commenter
Copy link

pr-commenter bot commented Jun 21, 2023

Benchmarks

Parameters

Baseline Candidate
commit 1.17.0-SNAPSHOT~30cb962687 1.17.0-SNAPSHOT~b6de77a0cf
config baseline candidate
See matching parameters
Baseline Candidate
module Agent Agent
parent None None

Summary

Found 0 performance improvements and 0 performance regressions! Performance is the same for 22 cases.

Enum in java are in fact regular classes with a special treatment by
the java compiler. from the POV of the JVM there is no difference.
From user perspective however it would be nice to have constant name
as enum values.
We are serializing then the enum constant name in the snapshot instead
of handling enum as regular complex class
Copy link
Member

@ojung ojung left a comment

Choose a reason for hiding this comment

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

👍

@jpbempel jpbempel merged commit 1709b27 into master Jun 23, 2023
@jpbempel jpbempel deleted the jpbempel/handle-enums branch June 23, 2023 07:54
@github-actions github-actions bot added this to the 1.17.0 milestone Jun 23, 2023
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.

2 participants