#parse("main/Header.vm")
package com.nativelibs4java.opencl;
import com.nativelibs4java.opencl.library.OpenCLLibrary.cl_event;
import org.bridj.*;
import static org.bridj.Pointer.*;
/**
 *
 * @author ochafik
 */
class ReusablePointers {

    public final ReusablePointer
            sizeT3_1 = new ReusablePointer(3 * SizeT.SIZE),
            sizeT3_2 = new ReusablePointer(3 * SizeT.SIZE),
            sizeT3_3 = new ReusablePointer(3 * SizeT.SIZE);
    
    public final Pointer<Integer>
            int1 = allocateInt(),
            int2 = allocateInt();
    
    public final ReusablePointer
            kernelArg = new ReusablePointer(8 * 16); // double16 arguments !
    
    public final Pointer<cl_event> event_out = allocateTypedPointer(cl_event.class);
    
    public final Pointer<Integer> pErr = allocateInt();
    
    public final int[] event_count = new int[1];
    public final ReusablePointer events_in = new ReusablePointer(Pointer.SIZE * 10);
    
    private ReusablePointers() {}
    
    public static ReusablePointers get() {
        return local.get();
    }
    private static final ThreadLocal<ReusablePointers> local = new ThreadLocal<ReusablePointers>() {

        @Override
        protected ReusablePointers initialValue() {
            return new ReusablePointers();
        }
        
    };
    
}

@@ -230,17 +230,16 @@
 nters %7B%0A
-%0A
     publ
@@ -514,16 +514,45 @@
 ateInt()
+.withoutValidityInformation()
 ,%0A      
@@ -569,32 +569,61 @@
  = allocateInt()
+.withoutValidityInformation()
 ;%0A    %0A    publi
@@ -811,16 +811,45 @@
 t.class)
+.withoutValidityInformation()
 ;%0A    %0A 
@@ -901,16 +901,45 @@
 ateInt()
+.withoutValidityInformation()
 ;%0A    %0A 

use some unsafe pointers…