• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1Test instance
2val is: [1, 2, 3] resize +3
3val is: [1, 2, 3, 0, 0, 0, 0, 0]
4Same value? true
5
6Test HashMap
7val is: [1, 2, 3, 4] resize +3
8Map is: ([1, 2, 3, 4]->Other Value), ([1, 2, 3, 4]->THE VALUE), ([1, 4]->Third value),
9val is: [1, 2, 3, 4, 0, 0, 0]
10Map is: ([1, 2, 3, 4]->Other Value), ([1, 2, 3, 4, 0, 0, 0]->THE VALUE), ([1, 4]->Third value),
11
12Test j.l.r.WeakReference
13val is: [weak, ref] resize +3
14val is: [weak, ref, null, null, null, null, null]
15Same value? true
16
17Test instance self-ref
18val is: [<SELF REF>, A, B, C] resize +5 item 0 is [<SELF REF>, A, B, C]
19val is: [<SELF REF>, A, B, C, null, null, null, null, null]
20val is: [<SELF REF>, A, B, C, null, null, null, null, null]
21Same value? true
22Same structure? true
23Same inner-structure? true
24
25Test instance self-ref smaller
26val is: [<SELF REF>, A, B, C, null, null, null, null, null] resize -7 item 0 is [<SELF REF>, A, B, C, null, null, null, null, null]
27val is: [<SELF REF>, A]
28val is: [<SELF REF>, A]
29Same value? true
30Same structure? true
31Same inner-structure? true
32
33Test local
34val is: [2, 3, 4] resize +5
35val is: [2, 3, 4, 0, 0, 0, 0, 0]
36Same value? true
37
38Test local smaller
39val is: [1, 2, 3, 4, 5] resize -2
40val is: [1, 2, 3]
41Same value? true
42
43T1: Test local multi-thread
44T1: val is: [1, 2, 3] resize -2
45T1: val is: [1]
46T1: Same value? true
47T2: Test local multi-thread
48T2: val is: [1, 2, 3] resize -2
49T2: val is: [1]
50T2: Same value? true
51
52Test locks
53val is: [A, 2, C] resize -2
54val is: [A]
55Same value? true
56Locks seem to all work.
57
58Test jni-ref
59val is: [1, 11, 111] resize +5
60val is: [1, 11, 111, null, null, null, null, null]
61Same value? true
62
63Test weak jni-ref
64val is: [2, 22, 222] resize +5
65val is: [2, 22, 222, null, null, null, null, null]
66Same value? true
67
68Test jni local ref
69val is: [3, 32, 322]
70Resize +4
71val is: [3, 32, 322, null, null, null, null]
72Same value? true
73
74Test jvmti-tags
75val is: [[3, 33, 333]] resize +5
76val is: [[3, 33, 333, null, null, null, null, null]]
77Same value? true
78
79Test jvmti-tags with obsolete
80val is: [[4, 44, 444]] resize +5
81val is: [[4, 44, 444, null, null, null, null, null]]
82Same value? true
83Everything looks good WRT obsolete object!
84
85