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

[Wisp] Port WispCounterMXBean and PerfCounterMonitor to JDK17. #98

Merged
merged 1 commit into from
Jul 20, 2023

Conversation

ZhaiMo15
Copy link

Summary:
The change is to port WispCounterMXBean and PerfCounterMonitor. But since JDK11 introduces module, there are the below changes:

  1. move WispCounterMXBean and WispCounterMXBeanImpl into jdk.management
  2. use PrintStream instead of Logging in WispPerfCounterMonitor
  3. put WispCounter map in WispEngine instead of WispCounterMXBeanImpl
  4. Restricted to module in JDK11, introduce WispCounterData for MXBean

Test Plan:
test/jdk/com/alibaba/wisp/TestWispCounter.java
test/jdk/com/alibaba/wisp/TestWispDetailCounter.java test/jdk/com/alibaba/wisp2/TestProfileWithHandOff.java test/jdk/com/alibaba/wisp/TestWispMonitorData.java

Reviewed-by: yulei

Issue:
#97

Summary:
The change is to port WispCounterMXBean and PerfCounterMonitor.
But since JDK11 introduces module, there are the below changes:
1. move WispCounterMXBean and WispCounterMXBeanImpl into jdk.management
2. use PrintStream instead of Logging in WispPerfCounterMonitor
3. put WispCounter map in WispEngine instead of WispCounterMXBeanImpl
4. Restricted to module in JDK11, introduce WispCounterData for MXBean

Test Plan:
test/jdk/com/alibaba/wisp/TestWispCounter.java
test/jdk/com/alibaba/wisp/TestWispDetailCounter.java
test/jdk/com/alibaba/wisp2/TestProfileWithHandOff.java
test/jdk/com/alibaba/wisp/TestWispMonitorData.java

Reviewed-by: yulei

Issue:
dragonwell-project#97
@yuleil yuleil merged commit 7fe8e2c into dragonwell-project:wisp Jul 20, 2023
18 of 33 checks passed
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.

2 participants