-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathRunningJikesRVM.html
More file actions
454 lines (415 loc) · 25.3 KB
/
Copy pathRunningJikesRVM.html
File metadata and controls
454 lines (415 loc) · 25.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
---
layout: default
---
<?xml version="1.0" encoding="utf8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!--http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd-->
<html xmlns="http://www.w3.org/1999/xhtml"
>
<head><title>9 Running Jikes RVM</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf8" />
<meta name="generator" content="TeX4ht (https://tug.org/tex4ht/)" />
<meta name="originator" content="TeX4ht (https://tug.org/tex4ht/)" />
<!-- xhtml,charset=utf8,2,html -->
<meta name="src" content="index.tex" />
<link rel="stylesheet" type="text/css" href="index.css" />
</head><body
>
<!--l. 2--><div class="crosslinks"><p class="noindent"></p></div>
<h2 class="chapterHead"><span class="titlemark">Chapter 9</span><br /><a
id="x11-1030009"></a>Running Jikes RVM</h2>
<!--l. 5--><p class="noindent" >Jikes<sup class="textsuperscript"><span
class="cmr-9">TM</span></sup> RVM executes Java virtual machine byte code instructions from <span class="obeylines-h"><span class="verb"><span
class="cmtt-10">.class</span></span></span>
files. It does <span
class="cmti-10">not </span>compile Java<sup class="textsuperscript"><span
class="cmr-9">TM</span></sup> source code. Therefore, you must compile all Java
source files into bytecode using a Java compiler.
</p><!--l. 7--><p class="noindent" >For example, to run class foo with source code in file foo.java:
</p>
<!--l. 9-->
<div class="lstlisting" id="listing-70"><span class="label"><a
id="x11-103001r1"></a></span><span
class="cmtt-10">%</span><span
class="cmtt-10"> </span><span
class="cmtt-10">javac</span><span
class="cmtt-10"> </span><span
class="cmtt-10">foo</span><span
class="cmtt-10">.</span><span
class="cmtt-10">java</span><span
class="cmtt-10"> </span><br /><span class="label"><a
id="x11-103002r2"></a></span><span
class="cmtt-10">%</span><span
class="cmtt-10"> </span><span
class="cmtt-10">rvm</span><span
class="cmtt-10"> </span><span
class="cmtt-10">foo</span>
</div>
<!--l. 14--><p class="noindent" >The general syntax is
</p>
<!--l. 16-->
<div class="lstlisting" id="listing-71"><span class="label"><a
id="x11-103003r1"></a></span><span
class="cmtt-10">rvm</span><span
class="cmtt-10"> </span><span
class="cmtt-10">[</span><span
class="cmtt-10">rvm</span><span
class="cmtt-10"> </span><span
class="cmtt-10">options</span><span
class="cmtt-10">...]</span><span
class="cmtt-10"> </span><span
class="cmtt-10">class</span><span
class="cmtt-10"> </span><span
class="cmtt-10">[</span><span
class="cmtt-10">args</span><span
class="cmtt-10">...]</span>
</div>
<!--l. 20--><p class="noindent" >You may choose from a myriad of options for the rvm command-line. Options fall
into two categories: <span
class="cmti-10">standard </span>and <span
class="cmti-10">non-standard</span>. Non-standard options are preceded
by ”-X:” and differ between virtual machines (e.g. Jikes RVM’s options may not be
available in HotSpot and vice-versa).
</p>
<h3 class="sectionHead"><span class="titlemark">9.1 </span> <a
id="x11-1040009.1"></a>Standard Command-Line Options</h3>
<!--l. 24--><p class="noindent" >We currently support a subset of the JDK 1.5 standard options. Below is a list of all
options and their descriptions. Unless otherwise noted each option is supported in
Jikes RVM.
</p>
<div class="table">
<!--l. 26--><p class="noindent" ></p><hr class="float" /><div class="float"
>
<div class="tabular"> <table id="TBL-9" class="tabular"
><colgroup id="TBL-9-1g"><col
id="TBL-9-1" /><col
id="TBL-9-2" /></colgroup><tr
style="vertical-align:baseline;" id="TBL-9-1-"><td style="white-space:normal; text-align:left;" id="TBL-9-1-1"
class="td11"><!--l. 29--><p class="noindent" >Option </p></td><td style="white-space:normal; text-align:left;" id="TBL-9-1-2"
class="td11"><!--l. 29--><p class="noindent" >Description </p></td>
</tr><tr
style="vertical-align:baseline;" id="TBL-9-2-"><td style="white-space:normal; text-align:left;" id="TBL-9-2-1"
class="td11"><!--l. 30--><p class="noindent" ><span class="obeylines-h"><span class="verb"><span
class="cmtt-10">-cp</span></span></span> or <span class="obeylines-h"><span class="verb"><span
class="cmtt-10">-classpath</span></span></span> (directories and <br
class="newline" />zip/jar files separated by ”:”) </p></td><td style="white-space:normal; text-align:left;" id="TBL-9-2-2"
class="td11"><!--l. 30--><p class="noindent" >set search path for application
classes and resources </p></td>
</tr><tr
style="vertical-align:baseline;" id="TBL-9-3-"><td style="white-space:normal; text-align:left;" id="TBL-9-3-1"
class="td11"><!--l. 31--><p class="noindent" ><span class="obeylines-h"><span class="verb"><span
class="cmtt-10">-D<name>=<value></span></span></span> </p></td><td style="white-space:normal; text-align:left;" id="TBL-9-3-2"
class="td11"><!--l. 31--><p class="noindent" >set a system property </p></td>
</tr><tr
style="vertical-align:baseline;" id="TBL-9-4-"><td style="white-space:normal; text-align:left;" id="TBL-9-4-1"
class="td11"><!--l. 32--><p class="noindent" >-verbose:[class<span
class="cmsy-10">|</span>gc<span
class="cmsy-10">|</span>jni] </p></td><td style="white-space:normal; text-align:left;" id="TBL-9-4-2"
class="td11"><!--l. 32--><p class="noindent" >enable verbose output </p></td>
</tr><tr
style="vertical-align:baseline;" id="TBL-9-5-"><td style="white-space:normal; text-align:left;" id="TBL-9-5-1"
class="td11"><!--l. 33--><p class="noindent" >-version </p></td><td style="white-space:normal; text-align:left;" id="TBL-9-5-2"
class="td11"><!--l. 33--><p class="noindent" >print current VM version and
terminate the run </p></td>
</tr><tr
style="vertical-align:baseline;" id="TBL-9-6-"><td style="white-space:normal; text-align:left;" id="TBL-9-6-1"
class="td11"><!--l. 34--><p class="noindent" >-showversion </p></td><td style="white-space:normal; text-align:left;" id="TBL-9-6-2"
class="td11"><!--l. 34--><p class="noindent" >print current VM version and
continue running </p></td>
</tr><tr
style="vertical-align:baseline;" id="TBL-9-7-"><td style="white-space:normal; text-align:left;" id="TBL-9-7-1"
class="td11"><!--l. 35--><p class="noindent" >-fullversion </p></td><td style="white-space:normal; text-align:left;" id="TBL-9-7-2"
class="td11"><!--l. 35--><p class="noindent" >like ”-version”, but with more
information </p></td>
</tr><tr
style="vertical-align:baseline;" id="TBL-9-8-"><td style="white-space:normal; text-align:left;" id="TBL-9-8-1"
class="td11"><!--l. 36--><p class="noindent" >-? or -help </p></td><td style="white-space:normal; text-align:left;" id="TBL-9-8-2"
class="td11"><!--l. 36--><p class="noindent" >print help message </p></td>
</tr><tr
style="vertical-align:baseline;" id="TBL-9-9-"><td style="white-space:normal; text-align:left;" id="TBL-9-9-1"
class="td11"><!--l. 37--><p class="noindent" >-X </p></td><td style="white-space:normal; text-align:left;" id="TBL-9-9-2"
class="td11"><!--l. 37--><p class="noindent" >print help on non-standard
options </p></td>
</tr><tr
style="vertical-align:baseline;" id="TBL-9-10-"><td style="white-space:normal; text-align:left;" id="TBL-9-10-1"
class="td11"><!--l. 38--><p class="noindent" >-jar </p></td><td style="white-space:normal; text-align:left;" id="TBL-9-10-2"
class="td11"><!--l. 38--><p class="noindent" >execute a jar file </p></td>
</tr><tr
style="vertical-align:baseline;" id="TBL-9-11-"><td style="white-space:normal; text-align:left;" id="TBL-9-11-1"
class="td11"><!--l. 39--><p class="noindent" ><span class="obeylines-h"><span class="verb"><span
class="cmtt-10">-javaagent:<jarpath>[=<options>]</span></span></span> </p></td><td style="white-space:normal; text-align:left;" id="TBL-9-11-2"
class="td11"><!--l. 39--><p class="noindent" >load Java
programming language agent,
see <span class="obeylines-h"><span class="verb"><span
class="cmtt-10">java.lang.instrument</span></span></span> </p></td>
</tr><tr
style="vertical-align:baseline;" id="TBL-9-12-"><td style="white-space:normal; text-align:left;" id="TBL-9-12-1"
class="td11"> </td></tr></table></div>
</div><hr class="endfloat" />
</div>
<h3 class="sectionHead"><span class="titlemark">9.2 </span> <a
id="x11-1050009.2"></a>Non-Standard Command-Line Options</h3>
<!--l. 47--><p class="noindent" >It is generally the case that the non-standard options may change from one release to
another. However, the core and memory non-standard options that are listed here
don’t change often.
</p><!--l. 49--><p class="noindent" >The bulk of the non-standard options are grouped according to the subsystem that
they control. See below for details.
</p><!--l. 51--><p class="noindent" >
</p>
<h4 class="subsectionHead"><span class="titlemark">9.2.1 </span> <a
id="x11-1060009.2.1"></a>Core Non-Standard Command-Line Options</h4>
<div class="table">
<!--l. 53--><p class="noindent" ></p><hr class="float" /><div class="float"
>
<div class="tabular"> <table id="TBL-10" class="tabular"
><colgroup id="TBL-10-1g"><col
id="TBL-10-1" /><col
id="TBL-10-2" /></colgroup><tr
style="vertical-align:baseline;" id="TBL-10-1-"><td style="white-space:normal; text-align:left;" id="TBL-10-1-1"
class="td11"><!--l. 55--><p class="noindent" >Option </p></td><td style="white-space:normal; text-align:left;" id="TBL-10-1-2"
class="td11"><!--l. 55--><p class="noindent" >Description </p></td>
</tr><tr
style="vertical-align:baseline;" id="TBL-10-2-"><td style="white-space:normal; text-align:left;" id="TBL-10-2-1"
class="td11"><!--l. 56--><p class="noindent" ><span class="obeylines-h"><span class="verb"><span
class="cmtt-10">-X:verbose</span></span></span> </p></td><td style="white-space:normal; text-align:left;" id="TBL-10-2-2"
class="td11"><!--l. 56--><p class="noindent" >Print out additional lowlevel
information for GC and hardware trap
handling </p></td>
</tr><tr
style="vertical-align:baseline;" id="TBL-10-3-"><td style="white-space:normal; text-align:left;" id="TBL-10-3-1"
class="td11"><!--l. 57--><p class="noindent" ><span class="obeylines-h"><span class="verb"><span
class="cmtt-10">-X:verboseBoot=<number></span></span></span> </p></td><td style="white-space:normal; text-align:left;" id="TBL-10-3-2"
class="td11"><!--l. 57--><p class="noindent" >Print out additional information while
VM is booting, using verbosity level
<span class="obeylines-h"><span class="verb"><span
class="cmtt-10"><number></span></span></span> </p></td>
</tr><tr
style="vertical-align:baseline;" id="TBL-10-4-"><td style="white-space:normal; text-align:left;" id="TBL-10-4-1"
class="td11"><!--l. 58--><p class="noindent" ><span class="obeylines-h"><span class="verb"><span
class="cmtt-10">-X:sysLogfile=<filename></span></span></span> </p></td><td style="white-space:normal; text-align:left;" id="TBL-10-4-2"
class="td11"><!--l. 58--><p class="noindent" >Write standard error message to
<span class="obeylines-h"><span class="verb"><span
class="cmtt-10"><filename></span></span></span> </p></td>
</tr><tr
style="vertical-align:baseline;" id="TBL-10-5-"><td style="white-space:normal; text-align:left;" id="TBL-10-5-1"
class="td11"><!--l. 59--><p class="noindent" ><span class="obeylines-h"><span class="verb"><span
class="cmtt-10">-X:ic=<filename></span></span></span> </p></td><td style="white-space:normal; text-align:left;" id="TBL-10-5-2"
class="td11"><!--l. 59--><p class="noindent" >Read boot image code from <span class="obeylines-h"><span class="verb"><span
class="cmtt-10"><filename></span></span></span></p></td>
</tr><tr
style="vertical-align:baseline;" id="TBL-10-6-"><td style="white-space:normal; text-align:left;" id="TBL-10-6-1"
class="td11"><!--l. 60--><p class="noindent" ><span class="obeylines-h"><span class="verb"><span
class="cmtt-10">-X:id=<filename></span></span></span> </p></td><td style="white-space:normal; text-align:left;" id="TBL-10-6-2"
class="td11"><!--l. 60--><p class="noindent" >Read boot image data from <span class="obeylines-h"><span class="verb"><span
class="cmtt-10"><filename></span></span></span></p></td>
</tr><tr
style="vertical-align:baseline;" id="TBL-10-7-"><td style="white-space:normal; text-align:left;" id="TBL-10-7-1"
class="td11"><!--l. 61--><p class="noindent" ><span class="obeylines-h"><span class="verb"><span
class="cmtt-10">-X:ir=<filename></span></span></span> </p></td><td style="white-space:normal; text-align:left;" id="TBL-10-7-2"
class="td11"><!--l. 61--><p class="noindent" >Read boot image ref map from
<span class="obeylines-h"><span class="verb"><span
class="cmtt-10"><filename></span></span></span> </p></td>
</tr><tr
style="vertical-align:baseline;" id="TBL-10-8-"><td style="white-space:normal; text-align:left;" id="TBL-10-8-1"
class="td11"><!--l. 62--><p class="noindent" ><span class="obeylines-h"><span class="verb"><span
class="cmtt-10">-X:vmClasses=<path></span></span></span> </p></td><td style="white-space:normal; text-align:left;" id="TBL-10-8-2"
class="td11"><!--l. 62--><p class="noindent" >Load the <span class="obeylines-h"><span class="verb"><span
class="cmtt-10">org.jikesrvm.*</span></span></span> and <span class="obeylines-h"><span class="verb"><span
class="cmtt-10">java.*</span></span></span>
classes from <span class="obeylines-h"><span class="verb"><span
class="cmtt-10"><path></span></span></span> </p></td>
</tr><tr
style="vertical-align:baseline;" id="TBL-10-9-"><td style="white-space:normal; text-align:left;" id="TBL-10-9-1"
class="td11"><!--l. 63--><p class="noindent" ><span class="obeylines-h"><span class="verb"><span
class="cmtt-10">-X:processors=<number|"all"></span></span></span> </p></td><td style="white-space:normal; text-align:left;" id="TBL-10-9-2"
class="td11"><!--l. 63--><p class="noindent" >The number of processors that the
garbage collector will use </p></td>
</tr><tr
style="vertical-align:baseline;" id="TBL-10-10-"><td style="white-space:normal; text-align:left;" id="TBL-10-10-1"
class="td11"> </td></tr></table></div>
</div><hr class="endfloat" />
</div>
<h4 class="subsectionHead"><span class="titlemark">9.2.2 </span> <a
id="x11-1070009.2.2"></a>Memory Non-Standard Command-Line Options</h4>
<div class="table">
<!--l. 71--><p class="noindent" ></p><hr class="float" /><div class="float"
>
<div class="tabular"> <table id="TBL-11" class="tabular"
><colgroup id="TBL-11-1g"><col
id="TBL-11-1" /><col
id="TBL-11-2" /></colgroup><tr
style="vertical-align:baseline;" id="TBL-11-1-"><td style="white-space:normal; text-align:left;" id="TBL-11-1-1"
class="td11"><!--l. 73--><p class="noindent" >Option </p></td><td style="white-space:normal; text-align:left;" id="TBL-11-1-2"
class="td11"><!--l. 73--><p class="noindent" >Description </p></td>
</tr><tr
style="vertical-align:baseline;" id="TBL-11-2-"><td style="white-space:normal; text-align:left;" id="TBL-11-2-1"
class="td11"><!--l. 74--><p class="noindent" ><span class="obeylines-h"><span class="verb"><span
class="cmtt-10">-Xms<number><unit></span></span></span> </p></td><td style="white-space:normal; text-align:left;" id="TBL-11-2-2"
class="td11"><!--l. 74--><p class="noindent" >Initial size of heap where <span class="obeylines-h"><span class="verb"><span
class="cmtt-10"><number></span></span></span>
is an integer, an extended-precision
floating point or a hexadecimal value
and <span class="obeylines-h"><span class="verb"><span
class="cmtt-10"><unit></span></span></span> is one of T (Terabytes), G
(Gigabytes), M (Megabytes), pages (of
size 4096), K (Kilobytes) or <span class="obeylines-h"><span class="verb"><span
class="cmtt-10"><no unit></span></span></span>
for bytes </p></td>
</tr><tr
style="vertical-align:baseline;" id="TBL-11-3-"><td style="white-space:normal; text-align:left;" id="TBL-11-3-1"
class="td11"><!--l. 75--><p class="noindent" ><span class="obeylines-h"><span class="verb"><span
class="cmtt-10">-Xmx<number><unit></span></span></span> </p></td><td style="white-space:normal; text-align:left;" id="TBL-11-3-2"
class="td11"><!--l. 75--><p class="noindent" >Maximum size of heap. See above for
definition of <span class="obeylines-h"><span class="verb"><span
class="cmtt-10"><number></span></span></span> and <span class="obeylines-h"><span class="verb"><span
class="cmtt-10"><unit></span></span></span> </p></td>
</tr><tr
style="vertical-align:baseline;" id="TBL-11-4-"><td style="white-space:normal; text-align:left;" id="TBL-11-4-1"
class="td11"> </td></tr></table></div>
</div><hr class="endfloat" />
</div>
<h4 class="subsectionHead"><span class="titlemark">9.2.3 </span> <a
id="x11-1080009.2.3"></a>Subsystem Non-Standard Command-Line Options</h4>
<!--l. 83--><p class="noindent" >The other non-standard command line options are not listed here because they will
change from time to time. To get a current list of these options, you can do the
following: </p>
<ul class="itemize1">
<li class="itemize">To find out which subsystems are available in the image you’re using:
<!--l. 86-->
<div class="lstlisting" id="listing-72"><span class="label"><a
id="x11-108001r1"></a></span><span
class="cmtt-10">rvm</span><span
class="cmtt-10"> </span><span
class="cmtt-10">-</span><span
class="cmtt-10">X</span>
</div>
</li>
<li class="itemize">To get information about the options for a specific subsystem (e.g. the garbage
collection subsystem) <!--l. 90-->
<div class="lstlisting" id="listing-73"><span class="label"><a
id="x11-108002r1"></a></span><span
class="cmtt-10">rvm</span><span
class="cmtt-10"> </span><span
class="cmtt-10">-</span><span
class="cmtt-10">X</span><span
class="cmtt-10">:</span><span
class="cmtt-10">gc</span><span
class="cmtt-10">:</span><span
class="cmtt-10">help</span>
</div>
</li>
<li class="itemize">To find out the current values of the options for a specific subystem (e.g. the
optimizing compiler subsystem) <!--l. 94-->
<div class="lstlisting" id="listing-74"><span class="label"><a
id="x11-108003r1"></a></span><span
class="cmtt-10">rvm</span><span
class="cmtt-10"> </span><span
class="cmtt-10">-</span><span
class="cmtt-10">X</span><span
class="cmtt-10">:</span><span
class="cmtt-10">opt</span><span
class="cmtt-10">:</span><span
class="cmtt-10">printOptions</span>
</div>
</li></ul>
<!--l. 103--><p class="noindent" >
</p>
<h3 class="sectionHead"><span class="titlemark">9.3 </span> <a
id="x11-1090009.3"></a>Running Jikes RVM with Valgrind</h3>
<!--l. 105--><p class="noindent" >Jikes RVM can run under valgrind, as of 29-Aug-2007. Applying a patch of this
revision to release 3.2.1 should also produce a working system. Versions of valgrind
CVS prior to release 3.0 are also known to have worked. The current git HEAD
should also work with Valgrind.
</p><!--l. 107--><p class="noindent" >To run a Jikes RVM build with valgrind, use the -wrap flag to invoke valgrind, eg
</p><!--l. 108-->
<div class="lstlisting" id="listing-75"><span class="label"><a
id="x11-109001r1"></a></span><span
class="cmtt-10">rvm</span><span
class="cmtt-10"> </span><span
class="cmtt-10">-</span><span
class="cmtt-10">wrap</span><span
class="cmtt-10"> </span><span
class="cmtt-10">"</span><span
class="cmtt-10">path</span><span
class="cmtt-10">/</span><span
class="cmtt-10">to</span><span
class="cmtt-10">/</span><span
class="cmtt-10">valgrind</span><span
class="cmtt-10"> </span><span
class="cmtt-10">--</span><span
class="cmtt-10">smc</span><span
class="cmtt-10">-</span><span
class="cmtt-10">check</span><span
class="cmtt-10">=</span><span
class="cmtt-10">all</span><span
class="cmtt-10"> </span><span
class="cmtt-10"><</span><span
class="cmtt-10">valgrind</span><span
class="cmtt-10">-</span><span
class="cmtt-10">options</span><span
class="cmtt-10">>"</span><span
class="cmtt-10"> </span><span
class="cmtt-10"><</span><span
class="cmtt-10">jikesrvm</span><span
class="cmtt-10">-</span><span
class="cmtt-10">options</span><span
class="cmtt-10">></span><span
class="cmtt-10"> </span><span
class="cmtt-10">...</span>
</div>
<!--l. 112--><p class="noindent" >Note that the full path to valgrind must be specified.
</p><!--l. 114--><p class="noindent" >This will insert the invocation of valgrind at the appropriate place for it to operate
on Jikes RVM proper rather than a wrapper script.
</p><!--l. 116--><p class="noindent" >Under some circumstances, valgrind will load shared object libraries or allocate
memory in areas of the heap that conflict with Jikes RVM. Using the flag
<span class="obeylines-h"><span class="verb"><span
class="cmtt-10">-X:gc:eagerMmapSpaces=true</span></span></span> will prevent and/or detect this. If this flag reveals
errors while mapping the spaces, you will need to rearrange the heap to avoid the
addresses that Valgrind is occupying.
</p><!--l. 118--><p class="noindent" >If you’re using a recent Jikes RVM version (later than 3.1.3), you may want to change
the line </p><!--l. 119-->
<div class="lstlisting" id="listing-76"><span class="label"><a
id="x11-109002r1"></a></span><span
class="cmtt-10">private</span><span
class="cmtt-10"> </span><span
class="cmtt-10">static</span><span
class="cmtt-10"> </span><span
class="cmtt-10">final</span><span
class="cmtt-10"> </span><span
class="cmtt-10">boolean</span><span
class="cmtt-10"> </span><span
class="cmtt-10">ALLOW_READS_OF_UNDEFINED_MEMORY</span><span
class="cmtt-10"> </span><span
class="cmtt-10">=</span><span
class="cmtt-10"> </span><span
class="cmtt-10">true</span><span
class="cmtt-10">;</span>
</div>
<!--l. 123--><p class="noindent" >in <span
class="cmtt-10">org.jikesrvm.jni.JNIGenericHelpers </span>to
</p>
<!--l. 125-->
<div class="lstlisting" id="listing-77"><span class="label"><a
id="x11-109003r1"></a></span><span
class="cmtt-10">private</span><span
class="cmtt-10"> </span><span
class="cmtt-10">static</span><span
class="cmtt-10"> </span><span
class="cmtt-10">final</span><span
class="cmtt-10"> </span><span
class="cmtt-10">boolean</span><span
class="cmtt-10"> </span><span
class="cmtt-10">ALLOW_READS_OF_UNDEFINED_MEMORY</span><span
class="cmtt-10"> </span><span
class="cmtt-10">=</span><span
class="cmtt-10"> </span><span
class="cmtt-10">false</span><span
class="cmtt-10">;</span>
</div>
<!--l. 129--><p class="noindent" >to prevent false positives from Valgrind.
</p>
<!--l. 2--><div class="crosslinks"><p class="noindent"></p></div>
<!--l. 2--><p class="noindent" ><a
id="tailRunningJikesRVM.html"></a></p>
</body></html>