netty error

Martin Gerhardy <[email protected]> Tue, 29 Nov 2016 12:59:22 +0000
Newsgroups gmane.comp.java.ikvm.devel
Message-ID <0598D786697B0A42AAEE93449381605340658243@srv024038.bigpoint.local>
Hi,

I've found an issue with running Netty. It's about this location in the code: https://github.com/JCTools/JCTools/blob/master/jctools-core/src/main/java/org/jctools/util/UnsafeRefArrayAccess.java#L38

	at <Module>.main(<Module>.java)
Caused by: java.lang.IllegalStateException: Unknown pointer size
	at io.netty.util.internal.shaded.org.jctools.util.UnsafeRefArrayAccess.<clinit>(UnsafeRefArrayAccess.java:44)
	at io.netty.channel.AbstractChannel$AbstractUnsafe.register(AbstractChannel.java:451)
	... 15 more

I've tracked it down to some missing intrinsics of the Unsafe class. In this particular case 
* arrayIndexScale and
* arrayOffsetScale 
in Java_sun_misc_UnsafeI would send a patch but atm I'm lost with runtime/intrinsics.cs. I have no idea yet how to implement the stack stuff. If someone could point me to some more details about this, I would with pleasiure submit a patch on my own.

Is it correct to add them to intrinsics.cs and in Java_sun_misc_Unsafe or is only one location needed?

Help would be much appreciated.

Regards
Martin


------------------------------------------------------------------------------