File tree 4 files changed +8
-10
lines changed
src/test/java/com/carrotsearch/sizeof/experiments
4 files changed +8
-10
lines changed Original file line number Diff line number Diff line change 1
- package com .carrotsearch .sizeof ;
1
+ package com .carrotsearch .sizeof . experiments ;
2
2
3
3
import java .lang .reflect .Field ;
4
4
import java .util .Map ;
8
8
9
9
import sun .misc .Unsafe ;
10
10
11
- import com .carrotsearch .sizeof .experiments . TestSubclassAlignment ;
11
+ import com .carrotsearch .sizeof .RamUsageEstimator ;
12
12
13
13
@ SuppressWarnings ("restriction" )
14
- public class TestFieldAlignment {
14
+ public class ExpFieldAlignment {
15
15
16
16
@ SuppressWarnings ({"deprecation" })
17
17
@ Test
@@ -43,7 +43,7 @@ public void testFieldsOrdered() throws Exception {
43
43
44
44
if (reordered > 0 ) {
45
45
System .out .println ("# packed fields: " + reordered );
46
- System .out .println (TestSubclassAlignment .dumpFields (clz ));
46
+ System .out .println (ExpSubclassAlignment .dumpFields (clz ));
47
47
}
48
48
}
49
49
}
Original file line number Diff line number Diff line change 9
9
import com .carrotsearch .sizeof .RamUsageEstimator ;
10
10
11
11
@ SuppressWarnings ("restriction" )
12
- public class TestMemoryDumper {
12
+ public class ExpMemoryDumper {
13
13
14
14
public static class Super {
15
15
public int superMarker = 0x11223344 ;
@@ -37,7 +37,7 @@ public void testDumper() throws Exception {
37
37
38
38
@ SuppressWarnings ("deprecation" )
39
39
public static String dumpObjectMem (Object o ) {
40
- Unsafe unsafe = TestSubclassAlignment .getUnsafe ();
40
+ Unsafe unsafe = ExpSubclassAlignment .getUnsafe ();
41
41
42
42
StringBuilder b = new StringBuilder ();
43
43
final int obSize = (int ) RamUsageEstimator .shallowSizeOf (o );
Original file line number Diff line number Diff line change 10
10
import sun .misc .Unsafe ;
11
11
12
12
@ SuppressWarnings ("restriction" )
13
- public class TestSubclassAlignment {
13
+ public class ExpSubclassAlignment {
14
14
15
15
public static class Super {
16
16
public long subLong ;
Original file line number Diff line number Diff line change 1
- package com .carrotsearch .sizeof ;
2
-
3
- import com .carrotsearch .sizeof .experiments .GenerateWildClasses ;
1
+ package com .carrotsearch .sizeof .experiments ;
4
2
5
3
/**
6
4
* Generated by {@link GenerateWildClasses}/
You can’t perform that action at this time.
0 commit comments