Menu

#36 Sun.misc.Unsafe.setMemory

closed
nobody
None
5
2015-12-12
2015-12-11
Khoxsey
No

Is it possible to add this method call? I see where the other Unsafe methods are implemented but do not have a good feel for what the emitted code needs to be.

Discussion

  • Jeroen Frijters

    Jeroen Frijters - 2015-12-11

    The missing setMemory overload can't be fully implemented, so I'll need to know the specific use case to check if it can be supported.

     
  • Khoxsey

    Khoxsey - 2015-12-12

    Following is an example snippet of the java code in the jar file I'm trying to compile:

    final UnsafeBuffer srcBuffer = new UnsafeBuffer(new byte[1024]);
    final int length = srcBuffer.capacity();
    srcBuffer.setMemory(0, length, (byte)65);
    
     

    Last edit: Khoxsey 2015-12-12
  • Jeroen Frijters

    Jeroen Frijters - 2015-12-12

    It's now available in cvs.

     
  • Jeroen Frijters

    Jeroen Frijters - 2015-12-12
    • status: open --> closed
     

Log in to post a comment.