author | Jan Vrany <jan.vrany@fit.cvut.cz> |
Fri, 22 Sep 2017 12:06:12 +0100 | |
branch | jv |
changeset 1955 | 509eae4c5c94 |
parent 1953 | 50499a3d9b19 |
child 1957 | 91005025501a |
permissions | -rw-r--r-- |
1447 | 1 |
"{ Package: 'stx:goodies/regression' }" |
1181 | 2 |
|
3 |
"{ NameSpace: RegressionTests }" |
|
4 |
||
5 |
VMCrashTestCase subclass:#VMCrashTests |
|
6 |
instanceVariableNames:'' |
|
7 |
classVariableNames:'' |
|
8 |
poolDictionaries:'' |
|
9 |
category:'tests-Regression-RuntimeSystem' |
|
10 |
! |
|
11 |
||
12 |
||
13 |
!VMCrashTests methodsFor:'tests - GC'! |
|
14 |
||
1190
cf332dfb2334
Added regression test #test_java_initialize
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1181
diff
changeset
|
15 |
iter_java_initialize |
cf332dfb2334
Added regression test #test_java_initialize
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1181
diff
changeset
|
16 |
<spawn: true> |
cf332dfb2334
Added regression test #test_java_initialize
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1181
diff
changeset
|
17 |
|
cf332dfb2334
Added regression test #test_java_initialize
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1181
diff
changeset
|
18 |
1 to: 100 do:[:i | |
1447 | 19 |
Stdout nextPutLine: 'Pass ' , i printString. |
20 |
Java release: JavaRelease JDK7. |
|
21 |
Java initialize. |
|
22 |
JavaVM initializeVM. |
|
23 |
Java flushAllJavaResources. |
|
24 |
Stdout nextPutLine: 'Full GC...'. |
|
25 |
Smalltalk garbageCollect. |
|
26 |
Stdout nextPutLine: 'Pass ' , i printString , '...OK'. |
|
1190
cf332dfb2334
Added regression test #test_java_initialize
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1181
diff
changeset
|
27 |
]. |
cf332dfb2334
Added regression test #test_java_initialize
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1181
diff
changeset
|
28 |
|
cf332dfb2334
Added regression test #test_java_initialize
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1181
diff
changeset
|
29 |
"Created: / 08-09-2014 / 12:33:55 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
cf332dfb2334
Added regression test #test_java_initialize
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1181
diff
changeset
|
30 |
! |
cf332dfb2334
Added regression test #test_java_initialize
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1181
diff
changeset
|
31 |
|
1953 | 32 |
test_issue_171_crash_in_Smalltalk_keys |
33 |
<timeout: 120> "2min" |
|
34 |
<spawn: true> |
|
35 |
||
36 |
" |
|
37 |
Commit a68e1e09f73a/stx:libbasic caused following code to crash the VM. |
|
38 |
" |
|
39 |
||
40 |
Smalltalk keys. |
|
41 |
||
42 |
"Created: / 09-08-2017 / 10:00:17 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
43 |
! |
|
44 |
||
1493 | 45 |
test_issue_64_vm_crashes_in_fclose |
46 |
" |
|
47 |
Quickly opening and closing files for long enough used to kill the |
|
48 |
VM. |
|
49 |
||
50 |
This testcase keeps opening and closing files for 10 minutes. Just a |
|
51 |
stress-test. |
|
52 |
" |
|
53 |
||
54 |
<spawn: true> |
|
55 |
<timeout: 660> "11min" |
|
56 |
||
1598
300cd20b8c03
SnapshotRestartTests: do a compressing GC after some iterations
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1531
diff
changeset
|
57 |
| timeout deadline iterStart iterStop directory files oldSpaceSizeLimit i | |
1531
dbd517ea6e1c
Issue #64: Temporarily disabled "fclose" test on Windows
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1500
diff
changeset
|
58 |
|
dbd517ea6e1c
Issue #64: Temporarily disabled "fclose" test on Windows
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1500
diff
changeset
|
59 |
"/ See https://swing.fit.cvut.cz/projects/stx-jv/ticket/64 |
dbd517ea6e1c
Issue #64: Temporarily disabled "fclose" test on Windows
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1500
diff
changeset
|
60 |
self skipIf: OperatingSystem isMSWINDOWSlike description: 'Temporarily skipped because of issue #64'. |
dbd517ea6e1c
Issue #64: Temporarily disabled "fclose" test on Windows
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1500
diff
changeset
|
61 |
|
1493 | 62 |
|
63 |
timeout := self timeout. |
|
64 |
deadline := OperatingSystem getMillisecondTime + ((timeout - 60"extra min to cover variance") * 1000). |
|
65 |
iterStart := iterStop := 0. |
|
66 |
i := 0. |
|
67 |
directory := Smalltalk getPackageDirectoryForPackage: #'stx:goodies'. |
|
1598
300cd20b8c03
SnapshotRestartTests: do a compressing GC after some iterations
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1531
diff
changeset
|
68 |
|
300cd20b8c03
SnapshotRestartTests: do a compressing GC after some iterations
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1531
diff
changeset
|
69 |
oldSpaceSizeLimit := ObjectMemory oldSpaceUsed + (128"MB"*1024*1024). |
300cd20b8c03
SnapshotRestartTests: do a compressing GC after some iterations
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1531
diff
changeset
|
70 |
|
1493 | 71 |
[ OperatingSystem getMillisecondTime < (deadline - (iterStop - iterStart)) ] whileTrue:[ |
72 |
iterStart := OperatingSystem getMillisecondTime. |
|
73 |
||
74 |
i := i + 1. |
|
75 |
Stdout nextPutLine: 'Pass ' , i printString. |
|
76 |
files := directory recursiveDirectoryContentsAsFilenames select:[:each | each isRegularFile ]. |
|
77 |
files := files select: [ :e | e suffix = 'st' ]. |
|
78 |
files collect:[ :e | (FileStream fileNamed: e) contents asString ]. |
|
79 |
Stdout nextPutLine: 'Pass ' , i printString , '...OK'. |
|
1598
300cd20b8c03
SnapshotRestartTests: do a compressing GC after some iterations
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1531
diff
changeset
|
80 |
(oldSpaceSizeLimit notNil and:[ ObjectMemory oldSpaceUsed > oldSpaceSizeLimit ]) ifTrue:[ |
300cd20b8c03
SnapshotRestartTests: do a compressing GC after some iterations
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1531
diff
changeset
|
81 |
Stdout nextPutLine: 'GC'. |
300cd20b8c03
SnapshotRestartTests: do a compressing GC after some iterations
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1531
diff
changeset
|
82 |
files := nil. |
300cd20b8c03
SnapshotRestartTests: do a compressing GC after some iterations
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1531
diff
changeset
|
83 |
ObjectMemory compressingGarbageCollect. |
300cd20b8c03
SnapshotRestartTests: do a compressing GC after some iterations
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1531
diff
changeset
|
84 |
oldSpaceSizeLimit := ObjectMemory oldSpaceUsed + (128"MB"*1024*1024). |
300cd20b8c03
SnapshotRestartTests: do a compressing GC after some iterations
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1531
diff
changeset
|
85 |
Stdout nextPutLine: 'GC...OK '. |
300cd20b8c03
SnapshotRestartTests: do a compressing GC after some iterations
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1531
diff
changeset
|
86 |
]. |
1493 | 87 |
iterStop := OperatingSystem getMillisecondTime. |
88 |
]. |
|
89 |
||
1531
dbd517ea6e1c
Issue #64: Temporarily disabled "fclose" test on Windows
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1500
diff
changeset
|
90 |
"Created: / 04-09-2016 / 03:16:19 / jv" |
1598
300cd20b8c03
SnapshotRestartTests: do a compressing GC after some iterations
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1531
diff
changeset
|
91 |
"Modified: / 27-02-2017 / 12:10:21 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
1493 | 92 |
! |
93 |
||
1190
cf332dfb2334
Added regression test #test_java_initialize
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1181
diff
changeset
|
94 |
test_java_initialize |
cf332dfb2334
Added regression test #test_java_initialize
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1181
diff
changeset
|
95 |
" |
cf332dfb2334
Added regression test #test_java_initialize
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1181
diff
changeset
|
96 |
Running `JavaVM boot` for long enough used to kill the |
cf332dfb2334
Added regression test #test_java_initialize
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1181
diff
changeset
|
97 |
VM due to problems in memory managements. |
cf332dfb2334
Added regression test #test_java_initialize
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1181
diff
changeset
|
98 |
|
cf332dfb2334
Added regression test #test_java_initialize
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1181
diff
changeset
|
99 |
This testcase runs for 10 minutes a test in separate VM |
cf332dfb2334
Added regression test #test_java_initialize
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1181
diff
changeset
|
100 |
that 100 times boots and flushes the VM. |
cf332dfb2334
Added regression test #test_java_initialize
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1181
diff
changeset
|
101 |
" |
cf332dfb2334
Added regression test #test_java_initialize
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1181
diff
changeset
|
102 |
|
cf332dfb2334
Added regression test #test_java_initialize
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1181
diff
changeset
|
103 |
<spawn: false> |
cf332dfb2334
Added regression test #test_java_initialize
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1181
diff
changeset
|
104 |
<timeout: 660> "11min" |
cf332dfb2334
Added regression test #test_java_initialize
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1181
diff
changeset
|
105 |
|
1447 | 106 |
| timeout deadline iterStart iterStop | |
1190
cf332dfb2334
Added regression test #test_java_initialize
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1181
diff
changeset
|
107 |
|
cf332dfb2334
Added regression test #test_java_initialize
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1181
diff
changeset
|
108 |
timeout := self timeout. |
cf332dfb2334
Added regression test #test_java_initialize
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1181
diff
changeset
|
109 |
deadline := OperatingSystem getMillisecondTime + ((timeout - 60"extra min to cover variance") * 1000). |
cf332dfb2334
Added regression test #test_java_initialize
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1181
diff
changeset
|
110 |
iterStart := iterStop := 0. |
cf332dfb2334
Added regression test #test_java_initialize
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1181
diff
changeset
|
111 |
[ OperatingSystem getMillisecondTime < (deadline - (iterStop - iterStart)) ] whileTrue:[ |
1447 | 112 |
iterStart := OperatingSystem getMillisecondTime. |
113 |
(self class selector: #iter_java_initialize) runCase. |
|
114 |
iterStop := OperatingSystem getMillisecondTime. |
|
1190
cf332dfb2334
Added regression test #test_java_initialize
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1181
diff
changeset
|
115 |
]. |
cf332dfb2334
Added regression test #test_java_initialize
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1181
diff
changeset
|
116 |
|
cf332dfb2334
Added regression test #test_java_initialize
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1181
diff
changeset
|
117 |
"Created: / 08-09-2014 / 12:14:46 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
cf332dfb2334
Added regression test #test_java_initialize
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1181
diff
changeset
|
118 |
! |
cf332dfb2334
Added regression test #test_java_initialize
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1181
diff
changeset
|
119 |
|
1181 | 120 |
test_newspace_overflow |
121 |
||
122 |
<timeout: 120> "2min" |
|
1193
4fd89b765c87
Added forgotten annotation <spawn:true> to newspace overflow test
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1190
diff
changeset
|
123 |
<spawn: true> |
1181 | 124 |
|
125 |
| newSize newLimit | |
|
126 |
||
127 |
newSize := ObjectMemory newSpaceSize. |
|
128 |
newLimit := (newSize * 0.9) rounded. |
|
129 |
"/ Allocate some garbage to fill in new space... |
|
130 |
[ ObjectMemory newSpaceUsed < newLimit ] whileTrue:[ |
|
1447 | 131 |
| a | |
1181 | 132 |
|
1447 | 133 |
a := Array new: 100. |
1181 | 134 |
]. |
1248
ab9af85de41a
class: RegressionTests::VMCrashTests
Claus Gittinger <cg@exept.de>
parents:
1193
diff
changeset
|
135 |
"/ Now, allocate some really huge object |
1498
398050ba2384
Fixed VMCrashTests>>test_newspace_overflow
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1493
diff
changeset
|
136 |
[ |
398050ba2384
Fixed VMCrashTests>>test_newspace_overflow
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1493
diff
changeset
|
137 |
String new: 300 * 1024 * 1024"300MB" |
398050ba2384
Fixed VMCrashTests>>test_newspace_overflow
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1493
diff
changeset
|
138 |
] on: AllocationFailure do:[:ex | |
398050ba2384
Fixed VMCrashTests>>test_newspace_overflow
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1493
diff
changeset
|
139 |
"/ Do nothing, allocation failure is valid error |
398050ba2384
Fixed VMCrashTests>>test_newspace_overflow
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1493
diff
changeset
|
140 |
]. |
1181 | 141 |
|
142 |
"Created: / 05-09-2014 / 19:44:09 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
1193
4fd89b765c87
Added forgotten annotation <spawn:true> to newspace overflow test
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1190
diff
changeset
|
143 |
"Modified: / 16-09-2014 / 18:50:30 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
1498
398050ba2384
Fixed VMCrashTests>>test_newspace_overflow
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1493
diff
changeset
|
144 |
"Modified: / 24-06-2016 / 00:41:29 / jv" |
1603
37db6f9f4ac5
Added test for regression in STX:LIBJAVA when compiled with `-O` or `-O2`
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1598
diff
changeset
|
145 |
! |
37db6f9f4ac5
Added test for regression in STX:LIBJAVA when compiled with `-O` or `-O2`
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1598
diff
changeset
|
146 |
|
1955
509eae4c5c94
Added tests for newspace resizing (`ObjectMemory >> #newSpaceSize:`)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1953
diff
changeset
|
147 |
test_newspace_resize |
509eae4c5c94
Added tests for newspace resizing (`ObjectMemory >> #newSpaceSize:`)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1953
diff
changeset
|
148 |
|
509eae4c5c94
Added tests for newspace resizing (`ObjectMemory >> #newSpaceSize:`)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1953
diff
changeset
|
149 |
<timeout: 120> "2min" |
509eae4c5c94
Added tests for newspace resizing (`ObjectMemory >> #newSpaceSize:`)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1953
diff
changeset
|
150 |
<spawn: true> |
509eae4c5c94
Added tests for newspace resizing (`ObjectMemory >> #newSpaceSize:`)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1953
diff
changeset
|
151 |
|
509eae4c5c94
Added tests for newspace resizing (`ObjectMemory >> #newSpaceSize:`)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1953
diff
changeset
|
152 |
| newSize newLimit holder | |
509eae4c5c94
Added tests for newspace resizing (`ObjectMemory >> #newSpaceSize:`)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1953
diff
changeset
|
153 |
|
509eae4c5c94
Added tests for newspace resizing (`ObjectMemory >> #newSpaceSize:`)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1953
diff
changeset
|
154 |
newSize := ObjectMemory newSpaceSize. |
509eae4c5c94
Added tests for newspace resizing (`ObjectMemory >> #newSpaceSize:`)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1953
diff
changeset
|
155 |
[ |
509eae4c5c94
Added tests for newspace resizing (`ObjectMemory >> #newSpaceSize:`)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1953
diff
changeset
|
156 |
ObjectMemory scavenge. |
509eae4c5c94
Added tests for newspace resizing (`ObjectMemory >> #newSpaceSize:`)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1953
diff
changeset
|
157 |
newLimit := (ObjectMemory newSpaceSize * 0.9) rounded. |
509eae4c5c94
Added tests for newspace resizing (`ObjectMemory >> #newSpaceSize:`)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1953
diff
changeset
|
158 |
|
509eae4c5c94
Added tests for newspace resizing (`ObjectMemory >> #newSpaceSize:`)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1953
diff
changeset
|
159 |
"/ Fill in new space so it's 90% full, no garbage. |
509eae4c5c94
Added tests for newspace resizing (`ObjectMemory >> #newSpaceSize:`)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1953
diff
changeset
|
160 |
holder := OrderedCollection new. |
509eae4c5c94
Added tests for newspace resizing (`ObjectMemory >> #newSpaceSize:`)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1953
diff
changeset
|
161 |
[ ObjectMemory newSpaceUsed < newLimit ] whileTrue:[ |
509eae4c5c94
Added tests for newspace resizing (`ObjectMemory >> #newSpaceSize:`)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1953
diff
changeset
|
162 |
holder add: (Array new: 100). |
509eae4c5c94
Added tests for newspace resizing (`ObjectMemory >> #newSpaceSize:`)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1953
diff
changeset
|
163 |
]. |
509eae4c5c94
Added tests for newspace resizing (`ObjectMemory >> #newSpaceSize:`)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1953
diff
changeset
|
164 |
"/ Grow the new space to two times the current size. |
509eae4c5c94
Added tests for newspace resizing (`ObjectMemory >> #newSpaceSize:`)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1953
diff
changeset
|
165 |
ObjectMemory newSpaceSize: 2 * newSize. |
509eae4c5c94
Added tests for newspace resizing (`ObjectMemory >> #newSpaceSize:`)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1953
diff
changeset
|
166 |
self assert: (ObjectMemory newSpaceSize >= (2 * newSize)). |
509eae4c5c94
Added tests for newspace resizing (`ObjectMemory >> #newSpaceSize:`)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1953
diff
changeset
|
167 |
self assert: (ObjectMemory newSpaceUsed / ObjectMemory newSpaceSize) < 0.5. |
509eae4c5c94
Added tests for newspace resizing (`ObjectMemory >> #newSpaceSize:`)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1953
diff
changeset
|
168 |
|
509eae4c5c94
Added tests for newspace resizing (`ObjectMemory >> #newSpaceSize:`)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1953
diff
changeset
|
169 |
"/ Fill in new space so it's 90% full, no garbage. |
509eae4c5c94
Added tests for newspace resizing (`ObjectMemory >> #newSpaceSize:`)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1953
diff
changeset
|
170 |
newLimit := (ObjectMemory newSpaceSize * 0.9) rounded. |
509eae4c5c94
Added tests for newspace resizing (`ObjectMemory >> #newSpaceSize:`)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1953
diff
changeset
|
171 |
[ ObjectMemory newSpaceUsed < newLimit ] whileTrue:[ |
509eae4c5c94
Added tests for newspace resizing (`ObjectMemory >> #newSpaceSize:`)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1953
diff
changeset
|
172 |
holder add: (Array new: 100). |
509eae4c5c94
Added tests for newspace resizing (`ObjectMemory >> #newSpaceSize:`)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1953
diff
changeset
|
173 |
]. |
509eae4c5c94
Added tests for newspace resizing (`ObjectMemory >> #newSpaceSize:`)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1953
diff
changeset
|
174 |
"/ Grow the new space to two times the current size. |
509eae4c5c94
Added tests for newspace resizing (`ObjectMemory >> #newSpaceSize:`)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1953
diff
changeset
|
175 |
ObjectMemory newSpaceSize: newSize. |
509eae4c5c94
Added tests for newspace resizing (`ObjectMemory >> #newSpaceSize:`)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1953
diff
changeset
|
176 |
self assert: (ObjectMemory newSpaceSize < (newSize + 4096"page size as tolerance for page aligning")). |
509eae4c5c94
Added tests for newspace resizing (`ObjectMemory >> #newSpaceSize:`)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1953
diff
changeset
|
177 |
|
509eae4c5c94
Added tests for newspace resizing (`ObjectMemory >> #newSpaceSize:`)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1953
diff
changeset
|
178 |
] ensure:[ |
509eae4c5c94
Added tests for newspace resizing (`ObjectMemory >> #newSpaceSize:`)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1953
diff
changeset
|
179 |
ObjectMemory newSpaceSize: newSize. |
509eae4c5c94
Added tests for newspace resizing (`ObjectMemory >> #newSpaceSize:`)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1953
diff
changeset
|
180 |
]. |
509eae4c5c94
Added tests for newspace resizing (`ObjectMemory >> #newSpaceSize:`)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1953
diff
changeset
|
181 |
|
509eae4c5c94
Added tests for newspace resizing (`ObjectMemory >> #newSpaceSize:`)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1953
diff
changeset
|
182 |
"Created: / 21-09-2017 / 23:16:32 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
509eae4c5c94
Added tests for newspace resizing (`ObjectMemory >> #newSpaceSize:`)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1953
diff
changeset
|
183 |
! |
509eae4c5c94
Added tests for newspace resizing (`ObjectMemory >> #newSpaceSize:`)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1953
diff
changeset
|
184 |
|
1603
37db6f9f4ac5
Added test for regression in STX:LIBJAVA when compiled with `-O` or `-O2`
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1598
diff
changeset
|
185 |
test_stx_libjava_testSuite_inspect |
37db6f9f4ac5
Added test for regression in STX:LIBJAVA when compiled with `-O` or `-O2`
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1598
diff
changeset
|
186 |
<timeout: 120> "2min" |
37db6f9f4ac5
Added test for regression in STX:LIBJAVA when compiled with `-O` or `-O2`
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1598
diff
changeset
|
187 |
<spawn: true> |
37db6f9f4ac5
Added test for regression in STX:LIBJAVA when compiled with `-O` or `-O2`
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1598
diff
changeset
|
188 |
|
37db6f9f4ac5
Added test for regression in STX:LIBJAVA when compiled with `-O` or `-O2`
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1598
diff
changeset
|
189 |
stx_libjava testSuite inspect. |
37db6f9f4ac5
Added test for regression in STX:LIBJAVA when compiled with `-O` or `-O2`
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1598
diff
changeset
|
190 |
|
37db6f9f4ac5
Added test for regression in STX:LIBJAVA when compiled with `-O` or `-O2`
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1598
diff
changeset
|
191 |
"Created: / 01-05-2017 / 21:34:46 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
1181 | 192 |
! ! |
193 |
||
194 |
!VMCrashTests class methodsFor:'documentation'! |
|
195 |
||
196 |
version |
|
197 |
^ '$Header$' |
|
198 |
! |
|
199 |
||
200 |
version_CVS |
|
201 |
^ '$Header$' |
|
1493 | 202 |
! |
203 |
||
204 |
version_HG |
|
205 |
||
206 |
^ '$Changeset: <not expanded> $' |
|
1181 | 207 |
! ! |
208 |