diff src/cpu/sparc/vm/globals_sparc.hpp @ 10287:12f651e29f6b

6843347: Boundary values in some public GC options cause crashes Summary: Setting some public integer options to specific values causes crashes or undefined GC behavior. This patchset adds the necessary argument checking for these options. Reviewed-by: jmasa, brutisso
author tschatzl
date Wed, 15 May 2013 11:05:09 +0200
parents a5dd6e3ef9f3
children 46c544b8fbfc
line wrap: on
line diff
--- a/src/cpu/sparc/vm/globals_sparc.hpp	Tue May 14 17:08:31 2013 +0200
+++ b/src/cpu/sparc/vm/globals_sparc.hpp	Wed May 15 11:05:09 2013 +0200
@@ -74,7 +74,7 @@
 define_pd_global(bool, UseMembar,            false);
 
 // GC Ergo Flags
-define_pd_global(intx, CMSYoungGenPerWorker, 16*M);  // default max size of CMS young gen, per GC worker thread
+define_pd_global(uintx, CMSYoungGenPerWorker, 16*M);  // default max size of CMS young gen, per GC worker thread
 
 #define ARCH_FLAGS(develop, product, diagnostic, experimental, notproduct) \
                                                                             \