comparison src/share/vm/gc_implementation/shared/markSweep.cpp @ 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 a08c80e9e1e5
children 2958af1d8c5a 001ec9515f84
comparison
equal deleted inserted replaced
10286:0a2986f36965 10287:12f651e29f6b
28 #include "gc_interface/collectedHeap.inline.hpp" 28 #include "gc_interface/collectedHeap.inline.hpp"
29 #include "oops/methodData.hpp" 29 #include "oops/methodData.hpp"
30 #include "oops/objArrayKlass.inline.hpp" 30 #include "oops/objArrayKlass.inline.hpp"
31 #include "oops/oop.inline.hpp" 31 #include "oops/oop.inline.hpp"
32 32
33 unsigned int MarkSweep::_total_invocations = 0; 33 uint MarkSweep::_total_invocations = 0;
34 34
35 Stack<oop, mtGC> MarkSweep::_marking_stack; 35 Stack<oop, mtGC> MarkSweep::_marking_stack;
36 Stack<ObjArrayTask, mtGC> MarkSweep::_objarray_stack; 36 Stack<ObjArrayTask, mtGC> MarkSweep::_objarray_stack;
37 37
38 Stack<oop, mtGC> MarkSweep::_preserved_oop_stack; 38 Stack<oop, mtGC> MarkSweep::_preserved_oop_stack;