Changeset 0439206


Ignore:
Timestamp:
Oct 26, 2016 7:31:40 PM (4 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
886dbf1
Parents:
78acf70
Message:

JRobin: Fix for Java 9 to remove dependency on Sun private classes
https://github.com/OpenNMS/jrobin/issues/3
http://stackoverflow.com/questions/1854398/how-to-garbage-collect-a-direct-buffer-java
Code from http://sourceforge.net/p/tuer/code/HEAD/tree/pre_beta/src/main/java/engine/misc/DeallocationHelper.java
unmodified, GPLv2

Files:
1 added
5 edited

Legend:

Unmodified
Added
Removed
  • LICENSE.txt

    r78acf70 r0439206  
    222222   Copyright (c) 2011 The OpenNMS Group, Inc.
    223223   See licenses/LICENSE-LGPLv2.1.txt
     224   DeallocationHelper:
     225   Copyright (c) 2006-2016 Julien Gouesse
     226   See licenses/LICENSE-GPLv2.txt
    224227
    225228   Ministreaming Lib:
  • apps/jrobin/java/src/org/jrobin/core/RrdNioBackend.java

    r78acf70 r0439206  
    2525
    2626
    27 import sun.nio.ch.DirectBuffer;
     27import engine.misc.DeallocationHelper;
    2828
    2929/**
     
    3636    private final SyncManager m_syncManager;
    3737    private MappedByteBuffer m_byteBuffer = null;
     38    private static final DeallocationHelper _dHelper = new DeallocationHelper();
    3839
    3940    /**
     
    106107        }
    107108        if (m_byteBuffer != null) {
    108             if (m_byteBuffer instanceof DirectBuffer) {
    109                 ((DirectBuffer) m_byteBuffer).cleaner().clean();
    110             }
     109            _dHelper.deallocate(m_byteBuffer);
    111110            m_byteBuffer = null;
    112111        }
  • build.xml

    r78acf70 r0439206  
    732732            <group title="Installer Utilities" packages="net.i2p.installer" />
    733733            <group title="Jetty Utilities" packages="net.i2p.jetty:net.i2p.servlet:net.i2p.servlet.*:org.mortbay.servlet:org.mortbay.util" />
    734             <group title="JRobin Library" packages="org.jrobin:org.jrobin.*" />
     734            <group title="JRobin Library" packages="org.jrobin:org.jrobin.*:engine.misc" />
    735735            <group title="SAM Bridge" packages="net.i2p.sam" />
    736736            <group title="SAM Demos" packages="net.i2p.sam.client" />
  • history.txt

    r78acf70 r0439206  
     12016-10-26 zzz
     2 * Build: Mac jbigi/jcpuid improvements and docs (ticket #1865)
     3 * JRobin 1.6.0-1
     4 * Systray: Remove old 32-bit Windows implementation, replaced by DTG
     5
    162016-10-25 zzz
    27 * i2psnark: Better calculation of total upload limit
  • router/java/src/net/i2p/router/RouterVersion.java

    r78acf70 r0439206  
    1919    public final static String ID = "Monotone";
    2020    public final static String VERSION = CoreVersion.VERSION;
    21     public final static long BUILD = 4;
     21    public final static long BUILD = 5;
    2222
    2323    /** for example "-test" */
Note: See TracChangeset for help on using the changeset viewer.