projects
/
IRC.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
while working on memory pool for task records, fixed bug where mem Q hashtable entrie...
[IRC.git]
/
Robust
/
src
/
Tests
/
oooJava
/
poolalloc
/
test.java
1
public class Foo {
2
public int z;
3
public Foo() {}
4
}
5
6
public class Test {
7
8
static public void main( String args[] ) {
9
10
int x = 1000000;
11
12
for( int i = 0; i < 200000; ++i ) {
13
//for( int i = 0; i < 98; ++i ) {
14
rblock a {
15
Foo f = new Foo();
16
f.z = 0;
17
++f.z;
18
}
19
rblock b {
20
--f.z;
21
}
22
int y = -1000;
23
if( i % 2 == 0 ) {
24
//rblock c {
25
y = 1000;
26
//}
27
}
28
if( f.z > 0 ) {
29
System.out.println( "WHOA WHOA WHOA" );
30
}
31
x += f.z + y;
32
}
33
34
System.out.println( x );
35
}
36
}