Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I believe that allocating a native byte buffer gets around all those issues?


Yes, but then you can just varhandles on the buffer.


I'm not sure what you're getting at. Why would you want to? The issue was having a big chunk of native memory that you can pack data into on the java side and read contiguously without barriers on the native side and that's what a native allocated byte buffer would get you. Or am I missing something? Not sure what varhandles adds to the situation? Sorry if I'm being dense :o)




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: