JinwooHwang-SAS commented on code in PR #7905:
URL: https://github.com/apache/geode/pull/7905#discussion_r2285457309
##########
geode-core/src/test/java/org/apache/geode/internal/size/ObjectSizerJUnitTest.java:
##########
@@ -33,13 +34,23 @@ public void test() throws Exception {
assertEquals(roundup(OBJECT_SIZE), ObjectGraphSizer.size(new
TestObject3()));
assertEquals(roundup(OBJECT_SIZE * 2 + REFERENCE_SIZE),
ObjectGraphSizer.size(new TestObject3(), true));
- assertEquals(roundup(OBJECT_SIZE + REFERENCE_SIZE),
ObjectGraphSizer.size(new TestObject4()));
- assertEquals(roundup(OBJECT_SIZE + REFERENCE_SIZE) + roundup(OBJECT_SIZE +
4),
+ if (SystemUtils.isAzulJVM()) {
+ assertEquals(roundup(OBJECT_SIZE + REFERENCE_SIZE + 8),
ObjectGraphSizer.size(new TestObject4()));
Review Comment:
We cannot change OBJECT_SIZE or REFERENCE_SIZE just for Azul because they
are also used for other JVM implementations.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]