You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@artemis.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2026/09/01 07:58:00 UTC
[jira] [Work logged] (ARTEMIS-5948) Use jctools-core-jdk11 Unsafe-free varhandle replacements
[ https://issues.apache.org/jira/browse/ARTEMIS-5948?focusedWorklogId=1039015&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-1039015 ]
ASF GitHub Bot logged work on ARTEMIS-5948:
-------------------------------------------
Author: ASF GitHub Bot
Created on: 01/Sep/26 07:57
Start Date: 01/Sep/26 07:57
Worklog Time Spent: 10m
Work Description: cortlepp commented on PR #6289:
URL: https://github.com/apache/artemis/pull/6289#issuecomment-5490794894
So ... just to follow up @jbertram @gemmellr , are we going to continue without the review from @franz1981 or is there somebody else you could ask? Alternatively we could also hide the new implementation behind a feature flag, but since basically nobody (except for me of course ^^) will know about it we probably won't learn that much more about the stability of the new implementation (except if we make it opt-out).
Issue Time Tracking
-------------------
Worklog Id: (was: 1039015)
Time Spent: 2h 50m (was: 2h 40m)
> Use jctools-core-jdk11 Unsafe-free varhandle replacements
> ---------------------------------------------------------
>
> Key: ARTEMIS-5948
> URL: https://issues.apache.org/jira/browse/ARTEMIS-5948
> Project: Artemis
> Issue Type: Improvement
> Reporter: Christian Ortlepp
> Priority: Major
> Labels: pull-request-available
> Time Spent: 2h 50m
> Remaining Estimate: 0h
>
> Artemis currently uses some queues from jctools-core which rely on sun.misc.Unsafe internally. These methods are deprecated in JDK24+, issue a warning at runtime and will be removed in future versions of the JDK. Thus it makes sense to switch to an implementation which does not rely on those methods.
> In their latest [release|https://github.com/JCTools/JCTools/releases/tag/v4.0.6] JCTools have started to publish a new artifact, jctools-core-jdk11, which contains alternative Varhandle based implementations which do not use Unsafe. As far as I understand them they are designed to be a drop-in replacement to the existing Unsafe implementations.
> It would be great if we could either switch to the new implementations entirely or provide it as an option somehow for the people that would like to avoid Unsafe. I will link a PR shortly where I switched over to the new implementation, but I am open to feedback if for example we can only do this change opt-in.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@artemis.apache.org
For additional commands, e-mail: issues-help@artemis.apache.org