Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MMap write error on jdk1.8_windows _x86 #60

Open
monkeyWie opened this issue Mar 27, 2018 · 3 comments
Open

MMap write error on jdk1.8_windows _x86 #60

monkeyWie opened this issue Mar 27, 2018 · 3 comments

Comments

@monkeyWie
Copy link

hello,This is my code

public static void main(String[] args) throws IOException {
    MMapBuffer mMapBuffer = new MMapBuffer(new File("f:/down/test.data"), 1L,
        2 * 1024 * 1024 * 1024L,
        MMapMode.READ_WRITE);
    mMapBuffer.putByte(0, (byte) 'g');
    mMapBuffer.release();
  }

This is hs_err_pid.log

Event: 0.042 Thread 0x005b8c00 Exception <a 'java/lang/NoSuchMethodError': Method sun.misc.Unsafe.defineClass(Ljava/lang/String;[BII)Ljava/lang/Class; name or signature does not match> (0x04a06e90) thrown at [C:\re\workspace\8-2-build-windows-i586-cygwin\jdk8u162\10278\hotspot\src\shar
Event: 0.042 Thread 0x005b8c00 Exception <a 'java/lang/NoSuchMethodError': Method sun.misc.Unsafe.prefetchRead(Ljava/lang/Object;J)V name or signature does not match> (0x04a07160) thrown at [C:\re\workspace\8-2-build-windows-i586-cygwin\jdk8u162\10278\hotspot\src\share\vm\prims\jni.cpp
Event: 0.169 Thread 0x005b8c00 Exception <a 'java/security/PrivilegedActionException'> (0x04a29280) thrown at [C:\re\workspace\8-2-build-windows-i586-cygwin\jdk8u162\10278\hotspot\src\share\vm\prims\jvm.cpp, line 1390]
Event: 0.169 Thread 0x005b8c00 Exception <a 'java/security/PrivilegedActionException'> (0x04a29480) thrown at [C:\re\workspace\8-2-build-windows-i586-cygwin\jdk8u162\10278\hotspot\src\share\vm\prims\jvm.cpp, line 1390]
Event: 0.170 Thread 0x005b8c00 Exception <a 'java/security/PrivilegedActionException'> (0x04a38090) thrown at [C:\re\workspace\8-2-build-windows-i586-cygwin\jdk8u162\10278\hotspot\src\share\vm\prims\jvm.cpp, line 1390]
Event: 0.170 Thread 0x005b8c00 Exception <a 'java/security/PrivilegedActionException'> (0x04a38290) thrown at [C:\re\workspace\8-2-build-windows-i586-cygwin\jdk8u162\10278\hotspot\src\share\vm\prims\jvm.cpp, line 1390]
Event: 0.170 Thread 0x005b8c00 Exception <a 'java/lang/NoClassDefFoundError': org/slf4j/impl/StaticLoggerBinder> (0x04a3f438) thrown at [C:\re\workspace\8-2-build-windows-i586-cygwin\jdk8u162\10278\hotspot\src\share\vm\classfile\systemDictionary.cpp, line 199]
@xerial
Copy link
Owner

xerial commented Mar 27, 2018

I think this is fixed in #58, but I couldn't find time to release a new version yet.

@monkeyWie
Copy link
Author

monkeyWie commented Apr 2, 2018

Thank you,I can compile success on Linux like this command.

./sbt compile
make

But I tried to compiled larray-mmap on Windows but I didn't succeed,because Windows is don't support make.
so how do I compiled the DLL with windows x86?

@xerial
Copy link
Owner

xerial commented Apr 2, 2018

To build windows binary, we need to have a cross compiler in Linux, and run make win32 win64.

In my another project, I'm using docker to ease the burden of preparing a cross compiler:
https://github.com/xerial/snappy-java/blob/master/Makefile#L165

I haven't migrated this approach to LArray, but it would be possible by copying some scripts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants