Mercurial > hg > truffle
comparison src/share/vm/runtime/arguments.cpp @ 10864:6457dc4227e3
Add compressed klass pointers in gate
author | Christos Kotselidis <christos.kotselidis@oracle.com> |
---|---|
date | Tue, 23 Jul 2013 19:51:15 +0200 |
parents | cdbfff4547be |
children | df4d86530e21 |
comparison
equal
deleted
inserted
replaced
10863:5404cde63c43 | 10864:6457dc4227e3 |
---|---|
1 /* | 1 /* |
2 * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved. | |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. | 2 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * | 3 * |
5 * This code is free software; you can redistribute it and/or modify it | 4 * 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 | 5 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. | 6 * published by the Free Software Foundation. |
2204 #if INCLUDE_NMT | 2203 #if INCLUDE_NMT |
2205 } | 2204 } |
2206 #endif | 2205 #endif |
2207 } | 2206 } |
2208 #ifdef GRAAL | 2207 #ifdef GRAAL |
2209 if (UseCompressedKlassPointers) { | |
2210 if (IgnoreUnrecognizedVMOptions) { | |
2211 FLAG_SET_CMDLINE(bool, UseCompressedKlassPointers, true); | |
2212 } else { | |
2213 status = true; | |
2214 } | |
2215 } else { | |
2216 // This prevents the flag being set to true by set_ergonomics_flags() | |
2217 FLAG_SET_CMDLINE(bool, UseCompressedKlassPointers, false); | |
2218 } | |
2219 if (UseG1GC) { | 2208 if (UseG1GC) { |
2220 if (IgnoreUnrecognizedVMOptions) { | 2209 if (IgnoreUnrecognizedVMOptions) { |
2221 warning("UseG1GC is still experimental in Graal, use SerialGC instead "); | 2210 warning("UseG1GC is still experimental in Graal, use SerialGC instead "); |
2222 FLAG_SET_CMDLINE(bool, UseG1GC, true); | 2211 FLAG_SET_CMDLINE(bool, UseG1GC, true); |
2223 } else { | 2212 } else { |
2224 warning("UseG1GC is still experimental in Graal, use SerialGC instead "); | 2213 warning("UseG1GC is still experimental in Graal, use SerialGC instead "); |
2225 status = true; | 2214 status = true; |
2226 } | 2215 } |
2227 } else { | 2216 } else { |
2228 // This prevents the flag being set to true by set_ergonomics_flags() | 2217 // This prevents the flag being set to true by set_ergonomics_flags() |
2229 FLAG_SET_CMDLINE(bool, UseG1GC, false); | 2218 FLAG_SET_CMDLINE(bool, UseG1GC, false); |
2230 } | 2219 } |
2231 | 2220 |
2232 if (!ScavengeRootsInCode) { | 2221 if (!ScavengeRootsInCode) { |
2233 warning("forcing ScavengeRootsInCode non-zero because Graal is enabled"); | 2222 warning("forcing ScavengeRootsInCode non-zero because Graal is enabled"); |
2234 ScavengeRootsInCode = 1; | 2223 ScavengeRootsInCode = 1; |
2235 } | 2224 } |