1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
|
Description: Disable testIgnoreNonStrongReferences test until upstream supports Java 21
Upstream does not support Java 21. This patch disables the test that fails
due to optimisations of the memory usage in ReferenceQueue<> in Java 21.
Author: Vladimir Petko <vladimir.petko@canonical.com>
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1053026
Forwarded: not-needed
Last-Update: 2023-11-22
--- a/test/org/github/jamm/MemoryMeterTest.java
+++ b/test/org/github/jamm/MemoryMeterTest.java
@@ -135,7 +135,6 @@
assertEquals(meter.measure(withString) + meter.measure(1), meter.measureDeep(withString));
}
- @Test
public void testIgnoreNonStrongReferences() throws InterruptedException {
// The Reference fields 'next' and 'discovered' are used by 'ReferenceQueue' instances and are not part of what
// we want to measure. The 'queue' field is either a singleton 'ReferenceQueue.NULL' or a provided queue that user hold a reference to.
|