private static <T extends VBoxAom<T>> void putInInevitableTrx(T ref, long newValue, long fieldOffset){ Transaction tx = Transaction.beginInevitable(); T newT = getTargetForInnevitable(ref, tx.number); UtilUnsafe.UNSAFE.putLong(newT, fieldOffset, newValue); tx.setBoxValue(ref, newT); tx.commit(); }
private static <T extends VBoxAom<T>> void putInInevitableTrx(T ref, byte newValue, long fieldOffset){ Transaction tx = Transaction.beginInevitable(); T newT = getTargetForInnevitable(ref, tx.number); UtilUnsafe.UNSAFE.putByte(newT, fieldOffset, newValue); tx.setBoxValue(ref, newT); tx.commit(); }
@Override public <T> T withTransaction(CallableWithoutException<T> command) { jvstm.Transaction.beginInevitable(); currentJPATx.set(new JVSTMMemTransaction()); T res = command.call(); jvstm.Transaction.commit(); return res; }
private static <T extends VBoxAom<T>> void putInInevitableTrx(T ref, Object newValue, long fieldOffset){ Transaction tx = Transaction.beginInevitable(); T newT = getTargetForInnevitable(ref, tx.number); UtilUnsafe.UNSAFE.putObject(newT, fieldOffset, newValue); tx.setBoxValue(ref, newT); tx.commit(); }
private static <T extends VBoxAom<T>> void putInInevitableTrx(T ref, int newValue, long fieldOffset){ Transaction tx = Transaction.beginInevitable(); T newT = getTargetForInnevitable(ref, tx.number); UtilUnsafe.UNSAFE.putInt(newT, fieldOffset, newValue); tx.setBoxValue(ref, newT); tx.commit(); }
private static <T extends VBoxAom<T>> void putInInevitableTrx(T ref, short newValue, long fieldOffset){ Transaction tx = Transaction.beginInevitable(); T newT = getTargetForInnevitable(ref, tx.number); UtilUnsafe.UNSAFE.putShort(newT, fieldOffset, newValue); tx.setBoxValue(ref, newT); tx.commit(); }
private static <T extends VBoxAom<T>> void putInInevitableTrx(T ref, float newValue, long fieldOffset){ Transaction tx = Transaction.beginInevitable(); T newT = getTargetForInnevitable(ref, tx.number); UtilUnsafe.UNSAFE.putFloat(newT, fieldOffset, newValue); tx.setBoxValue(ref, newT); tx.commit(); }
private static <T extends VBoxAom<T>> void putInInevitableTrx(T ref, double newValue, long fieldOffset){ Transaction tx = Transaction.beginInevitable(); T newT = getTargetForInnevitable(ref, tx.number); UtilUnsafe.UNSAFE.putDouble(newT, fieldOffset, newValue); tx.setBoxValue(ref, newT); tx.commit(); }
public void put(E newE) { Transaction tx = Transaction.current(); if (tx == null) { tx = Transaction.beginInevitable(); tx.setBoxValue(this, newE); tx.commit(); } else { tx.setBoxValue(this, newE); } }
private static <T extends VBoxAom<T>> void putInInevitableTrx(T ref, boolean newValue, long fieldOffset){ Transaction tx = Transaction.beginInevitable(); T newT = getTargetForInnevitable(ref, tx.number); UtilUnsafe.UNSAFE.putBoolean(newT, fieldOffset, newValue); tx.setBoxValue(ref, newT); tx.commit(); }
private static <T extends VBoxAom<T>> void putInInevitableTrx(T ref, char newValue, long fieldOffset){ Transaction tx = Transaction.beginInevitable(); T newT = getTargetForInnevitable(ref, tx.number); UtilUnsafe.UNSAFE.putChar(newT, fieldOffset, newValue); tx.setBoxValue(ref, newT); tx.commit(); } private static <T extends VBoxAom<T>> void putInInevitableTrx(T ref, float newValue, long fieldOffset){