[
https://issues.apache.org/jira/browse/ARTEMIS-4751?focusedWorklogId=917356&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-917356
]
ASF GitHub Bot logged work on ARTEMIS-4751:
-------------------------------------------
Author: ASF GitHub Bot
Created on: 02/May/24 18:17
Start Date: 02/May/24 18:17
Worklog Time Spent: 10m
Work Description: jbertram commented on code in PR #4911:
URL: https://github.com/apache/activemq-artemis/pull/4911#discussion_r1588104823
##########
artemis-cli/src/main/java/org/apache/activemq/artemis/cli/commands/messages/perf/MicrosClock.java:
##########
@@ -43,23 +45,28 @@ public static boolean isAvailable() {
}
public static long now() {
- long epochSecond = offset;
- long nanoAdjustment =
jdk.internal.misc.VM.getNanoTimeAdjustment(epochSecond);
+ try {
+ long epochSecond = offset;
+ Class vm = Class.forName("jdk.internal.misc.VM");
+ Method getNanoTimeAdjustment = vm.getMethod("getNanoTimeAdjustment",
long.class);
+ long nanoAdjustment = (long)
getNanoTimeAdjustment.invoke(getNanoTimeAdjustment, epochSecond);
Review Comment:
Done.
Issue Time Tracking
-------------------
Worklog Id: (was: 917356)
Time Spent: 40m (was: 0.5h)
> Upgrade to Apache parent 32
> ---------------------------
>
> Key: ARTEMIS-4751
> URL: https://issues.apache.org/jira/browse/ARTEMIS-4751
> Project: ActiveMQ Artemis
> Issue Type: Dependency upgrade
> Reporter: Justin Bertram
> Assignee: Justin Bertram
> Priority: Major
> Time Spent: 40m
> Remaining Estimate: 0h
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)