Skip to content

Commit 7ec2c2d

Browse files
committed
Add -Xmx512m to -Xcheck:memory GC Regression tests
Looks like -Xcheck:memory has a problem on x86 Mac platform preventing to run Balanced with enabled off-heap with default maximum heap size as 25% of RAM available on machine failing with Native OOM. I guess it forces Sparce Heap to be allocated in the physical memory instead of be mostly virtual. Size of the heap is not significant for this particular test, so it can be explicitly set to smaller value to avoid the problem. We are going to investigate -Xcheck:memory behaviour on x86 Mac.
1 parent 72b169f commit 7ec2c2d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/functional/cmdLineTests/gcRegressionTests/gcRegressionTests.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@
348348
<output regex="no" type="success">version</output>
349349
</test>
350350
<test id="-verbose:gc -Xcheck:memory - check for memory corruption">
351-
<command>$EXE$ $XINT$ $ARGS_FOR_ALL_TESTS$ -verbose:gc -Dibm.java9.forceCommonCleanerShutdown=true -Xcheck:memory:quick,ignoreUnfreedCallsite=zip/:dbgwrapper:unknown:wrapper -version</command>
351+
<command>$EXE$ $XINT$ $ARGS_FOR_ALL_TESTS$ -verbose:gc -Dibm.java9.forceCommonCleanerShutdown=true -Xcheck:memory:quick,ignoreUnfreedCallsite=zip/:dbgwrapper:unknown:wrapper -Xmx512m -version</command>
352352
<output regex="no" type="required">&lt;/verbosegc&gt;</output>
353353
<output regex="no" type="success">All allocated blocks were freed.</output>
354354
<!-- allow memory leaks since the JIT leaks, unfortunately -->
@@ -357,7 +357,7 @@
357357
</test>
358358
<test id="-verbose:gc -Xcheck:memory -Xverbosegclog:foo.log - check for memory corruption">
359359
<exec command="rm foo.*.log" />
360-
<command>$EXE$ $XINT$ $ARGS_FOR_ALL_TESTS$ -verbose:gc -Xverbosegclog -Dibm.java9.forceCommonCleanerShutdown=true -Xcheck:memory:quick,ignoreUnfreedCallsite=zip/:dbgwrapper:unknown:wrapper -version</command>
360+
<command>$EXE$ $XINT$ $ARGS_FOR_ALL_TESTS$ -verbose:gc -Xverbosegclog -Dibm.java9.forceCommonCleanerShutdown=true -Xcheck:memory:quick,ignoreUnfreedCallsite=zip/:dbgwrapper:unknown:wrapper -Xmx512m -version</command>
361361
<output regex="no" type="success">All allocated blocks were freed.</output>
362362
<!-- allow memory leaks since the JIT leaks, unfortunately -->
363363
<output regex="no" type="success">bytes were not freed before shutdown!</output>

0 commit comments

Comments
 (0)