test/jdk/java/lang/management/MemoryMXBean/LowMemoryTest2.sh
changeset 59053 ba6c248cae19
parent 51556 30a2c149fd7e
equal deleted inserted replaced
59051:f0312c7d5b37 59053:ba6c248cae19
     1 #
     1 #
     2 # Copyright (c) 2004, 2017, Oracle and/or its affiliates. All rights reserved.
     2 # Copyright (c) 2004, 2019, Oracle and/or its affiliates. All rights reserved.
     3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4 #
     4 #
     5 # This code is free software; you can redistribute it and/or modify it
     5 # This code is free software; you can redistribute it and/or modify it
     6 # under the terms of the GNU General Public License version 2 only, as
     6 # under the terms of the GNU General Public License version 2 only, as
     7 # published by the Free Software Foundation.
     7 # published by the Free Software Foundation.
    57 # Also we set the max metaspace to 16MB/32MB - otherwise the test takes too
    57 # Also we set the max metaspace to 16MB/32MB - otherwise the test takes too
    58 # long to run. The 32MB setting is required for running with CDS archive.
    58 # long to run. The 32MB setting is required for running with CDS archive.
    59 
    59 
    60 go -noclassgc -XX:MaxMetaspaceSize=32m -XX:+UseSerialGC LowMemoryTest2
    60 go -noclassgc -XX:MaxMetaspaceSize=32m -XX:+UseSerialGC LowMemoryTest2
    61 go -noclassgc -XX:MaxMetaspaceSize=32m -XX:+UseParallelGC LowMemoryTest2
    61 go -noclassgc -XX:MaxMetaspaceSize=32m -XX:+UseParallelGC LowMemoryTest2
    62 go -noclassgc -XX:MaxMetaspaceSize=32m -XX:+UseConcMarkSweepGC LowMemoryTest2
       
    63 
    62 
    64 # Test class metaspace - might hit MaxMetaspaceSize instead if
    63 # Test class metaspace - might hit MaxMetaspaceSize instead if
    65 # UseCompressedClassPointers is off or if 32 bit.
    64 # UseCompressedClassPointers is off or if 32 bit.
    66 go -noclassgc -XX:MaxMetaspaceSize=16m -XX:CompressedClassSpaceSize=4m LowMemoryTest2
    65 go -noclassgc -XX:MaxMetaspaceSize=16m -XX:CompressedClassSpaceSize=4m LowMemoryTest2
    67 
    66