Merge pull request #163 from OpenHFT/feature/java11

Feature/java11
This commit is contained in:
Dmitry Pisklov
2018-10-09 16:52:39 +01:00
committed by GitHub
2 changed files with 4 additions and 3 deletions
+1 -1
View File
@@ -20,7 +20,7 @@
<parent>
<groupId>net.openhft</groupId>
<artifactId>java-parent-pom</artifactId>
<version>1.1.16</version>
<version>1.1.17</version>
<relativePath />
</parent>
@@ -20,6 +20,8 @@ import com.google.common.collect.Lists;
import net.openhft.chronicle.bytes.NoBytesStore;
import net.openhft.chronicle.core.OS;
import net.openhft.chronicle.core.values.IntValue;
import net.openhft.chronicle.hash.impl.util.Cleaner;
import net.openhft.chronicle.hash.impl.util.CleanerUtils;
import net.openhft.chronicle.hash.serialization.impl.StringSizedReader;
import net.openhft.chronicle.hash.serialization.impl.StringUtf8DataAccess;
import net.openhft.chronicle.values.Values;
@@ -27,7 +29,6 @@ import org.junit.*;
import org.junit.rules.TemporaryFolder;
import org.junit.runner.RunWith;
import org.junit.runners.Parameterized;
import sun.misc.Cleaner;
import java.io.IOException;
import java.io.PrintWriter;
@@ -224,7 +225,7 @@ public class MemoryLeaksTest {
CountedStringReader() {
serializerCount.incrementAndGet();
serializers.add(new WeakReference<>(this));
cleaner = Cleaner.create(this, serializerCount::decrementAndGet);
cleaner = CleanerUtils.createCleaner(this, serializerCount::decrementAndGet);
try (StringWriter stringWriter = new StringWriter();
PrintWriter printWriter = new PrintWriter(stringWriter)) {
new Exception().printStackTrace(printWriter);