Changeset cfbcd54


Ignore:
Timestamp:
Jan 10, 2018 3:39:05 PM (3 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
ecb8480
Parents:
1c3fc2b
Message:

jrobin: Disable DeallocationHelper? for Java 9

Files:
4 edited

Legend:

Unmodified
Added
Removed
  • apps/jrobin/java/src/engine/misc/DeallocationHelper.java

    r1c3fc2b rcfbcd54  
    128128                        success = true;
    129129                    }
    130                 } catch (IllegalAccessException | IllegalArgumentException | InvocationTargetException e) {
     130                //} catch (IllegalAccessException | IllegalArgumentException | InvocationTargetException e) {
     131                } catch (IllegalAccessException | RuntimeException | InvocationTargetException e) {
     132                    // Replaced with RuntimeException for OpenJDK 9b181
     133                    // throws a java.lang.reflect.InaccessibleObjectException extends RuntimeException which is only in Java 9
     134                    // WARNING: An illegal reflective access operation has occurred
     135                    // WARNING: Illegal reflective access by engine.misc.DeallocationHelper (file:/path/to/jrobin.jar) to field java.nio.DirectByteBuffer.att
     136                    // WARNING: Please consider reporting this to the maintainers of engine.misc.DeallocationHelper
     137                    // WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
     138                    // WARNING: All illegal access operations will be denied in a future release
     139                    // Thread terminated unexpectedly: Shutdown task net.i2p.router.web.StatSummarizer$Shutdown
     140                    // java.lang.reflect.InaccessibleObjectException: Unable to make public void jdk.internal.ref.Cleaner.clean() accessible: module java.base does not "exports jdk.internal.ref" to unnamed module @381353a0
     141                    //  at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:337)
     142                    //  at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:281)
     143                    //  at java.base/java.lang.reflect.Method.checkCanSetAccessible(Method.java:198)
     144                    //  at java.base/java.lang.reflect.Method.setAccessible(Method.java:192)
    131145                    logger.warn("The deallocation of a direct NIO buffer has failed", e);
    132146                } finally {
  • apps/jrobin/java/src/org/jrobin/core/RrdNioBackend.java

    r1c3fc2b rcfbcd54  
    2424import java.nio.channels.FileChannel;
    2525
     26import net.i2p.util.SystemVersion;
    2627
    2728import engine.misc.DeallocationHelper;
     
    3637    private final SyncManager m_syncManager;
    3738    private MappedByteBuffer m_byteBuffer = null;
    38     private static final DeallocationHelper _dHelper = new DeallocationHelper();
     39    // Too many ominous warnings from Java 9
     40    private static final DeallocationHelper _dHelper = SystemVersion.isJava9() ? null : new DeallocationHelper();
    3941
    4042    /**
     
    106108            stopSchedule();
    107109        }
    108         if (m_byteBuffer != null) {
     110        if (_dHelper != null && m_byteBuffer != null) {
    109111            _dHelper.deallocate(m_byteBuffer);
    110112            m_byteBuffer = null;
  • history.txt

    r1c3fc2b rcfbcd54  
     12018-01-10 zzz
     2 * Addressbook: Remove finalizers (ticket #2115)
     3 * i2psnark: Fix double-escaping of '&' (ticket #2127)
     4 * jrobin: Disable DeallocationHelper for Java 9
     5
     62018-01-09 zzz
     7 * SusiMail: Rewrite/fix subject line encoding
     8
    192018-01-06 zzz
    2  * i2ptunnel: Escape chars unescaped by browsers (ticket #2130)
    3  * i2ptunnel, eepget: Better error message on invalid URLs (ticket #2130)
     10 * Console: Show and set burst bandwidth (ticket #2123)
     11 * i2ptunnel:
     12   - Advanced config in/out tunnels separately
     13   - Better error message on invalid URLs (eepget too) (ticket #2130)
     14   - Escape chars unescaped by browsers (ticket #2130)
    415
    5162018-01-04 zzz
  • router/java/src/net/i2p/router/RouterVersion.java

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