You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by cl...@apache.org on 2021/02/03 15:27:21 UTC

[activemq-artemis] 02/03: ARTEMIS-3051 Fix MessageReferenceImpl::getMemoryEstimate

This is an automated email from the ASF dual-hosted git repository.

clebertsuconic pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/activemq-artemis.git

commit 9e06a0645bf11ff1bbcc4c7230db1e1138f02c73
Author: franz1981 <ni...@gmail.com>
AuthorDate: Mon Jan 11 07:45:22 2021 +0100

    ARTEMIS-3051 Fix MessageReferenceImpl::getMemoryEstimate
---
 .../apache/activemq/artemis/core/server/impl/MessageReferenceImpl.java  | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/impl/MessageReferenceImpl.java b/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/impl/MessageReferenceImpl.java
index a45e84a..a7903fd 100644
--- a/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/impl/MessageReferenceImpl.java
+++ b/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/impl/MessageReferenceImpl.java
@@ -86,6 +86,8 @@ public class MessageReferenceImpl extends LinkedListImpl.Node<MessageReferenceIm
 
    // Static --------------------------------------------------------
 
+   // This value has been computed by using https://github.com/openjdk/jol
+   // on HotSpot 64-bit VM COOPS, 8-byte alignment
    private static final int memoryOffset = 72;
 
    // Constructors --------------------------------------------------