Mercurial > hg > graal-compiler
comparison src/share/vm/services/management.cpp @ 350:d28aa69f0959
6618726: Introduce -XX:+UnlockExperimentalVMOptions flag
Summary: experimental() flags will protect features of an experimental nature that are not supported in the regular product build. Made UseG1GC an experimental flag.
Reviewed-by: jmasa, kamg, coleenp
author | ysr |
---|---|
date | Mon, 30 Jun 2008 17:04:59 -0700 |
parents | a61af66fc99e |
children | 2494ab195856 |
comparison
equal
deleted
inserted
replaced
349:73278b62f36c | 350:d28aa69f0959 |
---|---|
884 // last flag entry is always NULL, so subtract 1 | 884 // last flag entry is always NULL, so subtract 1 |
885 int nFlags = (int) Flag::numFlags - 1; | 885 int nFlags = (int) Flag::numFlags - 1; |
886 int count = 0; | 886 int count = 0; |
887 for (int i = 0; i < nFlags; i++) { | 887 for (int i = 0; i < nFlags; i++) { |
888 Flag* flag = &Flag::flags[i]; | 888 Flag* flag = &Flag::flags[i]; |
889 // Exclude the diagnostic flags | 889 // Exclude the locked (diagnostic, experimental) flags |
890 if (flag->is_unlocked() || flag->is_unlocker()) { | 890 if (flag->is_unlocked() || flag->is_unlocker()) { |
891 count++; | 891 count++; |
892 } | 892 } |
893 } | 893 } |
894 return count; | 894 return count; |
1485 nFlags, CHECK_0); | 1485 nFlags, CHECK_0); |
1486 objArrayHandle flags_ah(THREAD, r); | 1486 objArrayHandle flags_ah(THREAD, r); |
1487 int num_entries = 0; | 1487 int num_entries = 0; |
1488 for (int i = 0; i < nFlags; i++) { | 1488 for (int i = 0; i < nFlags; i++) { |
1489 Flag* flag = &Flag::flags[i]; | 1489 Flag* flag = &Flag::flags[i]; |
1490 // Exclude the diagnostic flags | 1490 // Exclude the locked (experimental, diagnostic) flags |
1491 if (flag->is_unlocked() || flag->is_unlocker()) { | 1491 if (flag->is_unlocked() || flag->is_unlocker()) { |
1492 Handle s = java_lang_String::create_from_str(flag->name, CHECK_0); | 1492 Handle s = java_lang_String::create_from_str(flag->name, CHECK_0); |
1493 flags_ah->obj_at_put(num_entries, s()); | 1493 flags_ah->obj_at_put(num_entries, s()); |
1494 num_entries++; | 1494 num_entries++; |
1495 } | 1495 } |
1614 int nFlags = (int) Flag::numFlags - 1; | 1614 int nFlags = (int) Flag::numFlags - 1; |
1615 Handle null_h; | 1615 Handle null_h; |
1616 int num_entries = 0; | 1616 int num_entries = 0; |
1617 for (int i = 0; i < nFlags && num_entries < count; i++) { | 1617 for (int i = 0; i < nFlags && num_entries < count; i++) { |
1618 Flag* flag = &Flag::flags[i]; | 1618 Flag* flag = &Flag::flags[i]; |
1619 // Exclude the diagnostic flags | 1619 // Exclude the locked (diagnostic, experimental) flags |
1620 if (flag->is_unlocked() || flag->is_unlocker()) { | 1620 if (flag->is_unlocked() || flag->is_unlocker()) { |
1621 add_global_entry(env, null_h, &globals[num_entries], flag, THREAD); | 1621 add_global_entry(env, null_h, &globals[num_entries], flag, THREAD); |
1622 num_entries++; | 1622 num_entries++; |
1623 } | 1623 } |
1624 } | 1624 } |