Java Code Examples for java.util.concurrent.atomic.AtomicIntegerArray#lazySet()

The following examples show how to use java.util.concurrent.atomic.AtomicIntegerArray#lazySet() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: TestIntAtomicOrdered.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
static void test_2vi_oppos(AtomicIntegerArray a, AtomicIntegerArray b, int c, int d) {
  int limit = ARRLEN-1;
  for (int i = limit; i >= 0; i-=1) {
    a.lazySet(i, c);
    b.lazySet((limit-i), d);
  }
}
 
Example 2
Source File: TestIntAtomicOrdered.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
static void test_2ci_oppos(AtomicIntegerArray a, AtomicIntegerArray b) {
  int limit = ARRLEN-1;
  for (int i = 0; i < ARRLEN; i+=1) {
    a.lazySet((limit-i), -123);
    b.lazySet(i, -103);
  }
}
 
Example 3
Source File: TestIntAtomicOrdered.java    From hottub with GNU General Public License v2.0 4 votes vote down vote up
static void test_2vi_off(AtomicIntegerArray a, AtomicIntegerArray b, int c, int d) {
  for (int i = 0; i < ARRLEN-OFFSET; i+=1) {
    a.lazySet((i+OFFSET), c);
    b.lazySet((i+OFFSET), d);
  }
}
 
Example 4
Source File: TestIntAtomicOrdered.java    From openjdk-8 with GNU General Public License v2.0 4 votes vote down vote up
static void test_vi_off(AtomicIntegerArray a, int b, int old) {
  for (int i = 0; i < ARRLEN-OFFSET; i+=1) {
    a.lazySet((i+OFFSET), b);
  }
}
 
Example 5
Source File: TestIntAtomicOrdered.java    From openjdk-jdk9 with GNU General Public License v2.0 4 votes vote down vote up
static void test_cp_inv(AtomicIntegerArray a, AtomicIntegerArray b, int k) {
  for (int i = 0; i < ARRLEN-k; i+=1) {
    a.lazySet((i+k), b.get(i+k));
  }
}
 
Example 6
Source File: TestIntAtomicOrdered.java    From openjdk-8-source with GNU General Public License v2.0 4 votes vote down vote up
static void test_cp(AtomicIntegerArray a, AtomicIntegerArray b) {
  for (int i = 0; i < ARRLEN; i+=1) {
    a.lazySet(i, b.get(i));
  }
}
 
Example 7
Source File: TestIntAtomicOrdered.java    From TencentKona-8 with GNU General Public License v2.0 4 votes vote down vote up
static void test_vi_off(AtomicIntegerArray a, int b, int old) {
  for (int i = 0; i < ARRLEN-OFFSET; i+=1) {
    a.lazySet((i+OFFSET), b);
  }
}
 
Example 8
Source File: TestIntAtomicOrdered.java    From openjdk-jdk9 with GNU General Public License v2.0 4 votes vote down vote up
static void test_cp_alndst(AtomicIntegerArray a, AtomicIntegerArray b) {
  for (int i = 0; i < ARRLEN-ALIGN_OFF; i+=1) {
    a.lazySet((i+ALIGN_OFF), b.get(i));
  }
}
 
Example 9
Source File: TestIntAtomicOrdered.java    From openjdk-jdk9 with GNU General Public License v2.0 4 votes vote down vote up
static void test_cp_alnsrc(AtomicIntegerArray a, AtomicIntegerArray b) {
  for (int i = 0; i < ARRLEN-ALIGN_OFF; i+=1) {
    a.lazySet(i, b.get(i+ALIGN_OFF));
  }
}
 
Example 10
Source File: TestIntAtomicOrdered.java    From openjdk-jdk9 with GNU General Public License v2.0 4 votes vote down vote up
static void test_2ci_inv(AtomicIntegerArray a, AtomicIntegerArray b, int k) {
  for (int i = 0; i < ARRLEN-k; i+=1) {
    a.lazySet((i+k), -123);
    b.lazySet((i+k), -103);
  }
}
 
Example 11
Source File: TestIntAtomicOrdered.java    From hottub with GNU General Public License v2.0 4 votes vote down vote up
static void test_2ci(AtomicIntegerArray a, AtomicIntegerArray b) {
  for (int i = 0; i < ARRLEN; i+=1) {
    a.lazySet(i, -123);
    b.lazySet(i, -103);
  }
}
 
Example 12
Source File: TestIntAtomicOrdered.java    From TencentKona-8 with GNU General Public License v2.0 4 votes vote down vote up
static void test_cp_alnsrc(AtomicIntegerArray a, AtomicIntegerArray b) {
  for (int i = 0; i < ARRLEN-ALIGN_OFF; i+=1) {
    a.lazySet(i, b.get(i+ALIGN_OFF));
  }
}
 
Example 13
Source File: TestIntAtomicOrdered.java    From openjdk-8 with GNU General Public License v2.0 4 votes vote down vote up
static void test_cp_oppos(AtomicIntegerArray a, AtomicIntegerArray b) {
  int limit = ARRLEN-1;
  for (int i = 0; i < ARRLEN; i+=1) {
    a.lazySet(i, b.get(limit-i));
  }
}
 
Example 14
Source File: TestIntAtomicOrdered.java    From openjdk-8 with GNU General Public License v2.0 4 votes vote down vote up
static void test_vi_inv(AtomicIntegerArray a, int b, int k, int old) {
  for (int i = 0; i < ARRLEN-k; i+=1) {
    a.lazySet((i+k), b);
  }
}
 
Example 15
Source File: TestIntAtomicOrdered.java    From openjdk-jdk8u with GNU General Public License v2.0 4 votes vote down vote up
static void test_2ci_unaln(AtomicIntegerArray a, AtomicIntegerArray b) {
  for (int i = 0; i < ARRLEN-UNALIGN_OFF; i+=1) {
    a.lazySet((i+UNALIGN_OFF), -123);
    b.lazySet(i, -103);
  }
}
 
Example 16
Source File: TestIntAtomicOrdered.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 4 votes vote down vote up
static void test_vi_neg(AtomicIntegerArray a, int b, int old) {
  for (int i = ARRLEN-1; i >= 0; i-=1) {
    a.lazySet(i, b);
  }
}
 
Example 17
Source File: TestIntAtomicOrdered.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 4 votes vote down vote up
static void test_2vi_inv(AtomicIntegerArray a, AtomicIntegerArray b, int c, int d, int k) {
  for (int i = 0; i < ARRLEN-k; i+=1) {
    a.lazySet((i+k), c);
    b.lazySet((i+k), d);
  }
}
 
Example 18
Source File: TestIntAtomicOrdered.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 4 votes vote down vote up
static void test_2vi_scl(AtomicIntegerArray a, AtomicIntegerArray b, int c, int d) {
  for (int i = 0; i*SCALE < ARRLEN; i+=1) {
    a.lazySet((i*SCALE), c);
    b.lazySet((i*SCALE), d);
  }
}
 
Example 19
Source File: TestIntAtomicOrdered.java    From TencentKona-8 with GNU General Public License v2.0 4 votes vote down vote up
static void test_cp(AtomicIntegerArray a, AtomicIntegerArray b) {
  for (int i = 0; i < ARRLEN; i+=1) {
    a.lazySet(i, b.get(i));
  }
}
 
Example 20
Source File: TestIntAtomicOrdered.java    From openjdk-jdk8u with GNU General Public License v2.0 4 votes vote down vote up
static void test_2ci_scl(AtomicIntegerArray a, AtomicIntegerArray b) {
  for (int i = 0; i*SCALE < ARRLEN; i+=1) {
    a.lazySet((i*SCALE), -123);
    b.lazySet((i*SCALE), -103);
  }
}