larray icon indicating copy to clipboard operation
larray copied to clipboard

Is it possiable to expose madvise() API?

Open kornstar11 opened this issue 11 years ago • 1 comments

Hello, Thank you very much for Larray, it has worked perfectly so far. I would like to ask if it would be possible to expose the madvise API to the Java API. For what it looks like this is supported on Linux, and Mac OS. However, from what I can tell Windows may not support this feature: http://stackoverflow.com/questions/1201168/what-is-fadvise-madvise-equivalent-on-windows

Anyways, with the exception of Windows, could this call be provided to the Java API.

Once again, Thank you for sharing Larray.

kornstar11 avatar Dec 10 '14 17:12 kornstar11

It looks like madvise is defined in glibc, this task needs writing some C code and rebuilding native libraries. So technically it's possible.

xerial avatar Dec 12 '14 06:12 xerial