Mercurial > hg > graal-jvmci-8
comparison src/share/vm/gc_implementation/shared/markSweep.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 | a08c80e9e1e5 |
children | 001ec9515f84 |
comparison
equal
deleted
inserted
replaced
10286:0a2986f36965 | 10287:12f651e29f6b |
---|---|
111 // | 111 // |
112 // Vars | 112 // Vars |
113 // | 113 // |
114 protected: | 114 protected: |
115 // Total invocations of a MarkSweep collection | 115 // Total invocations of a MarkSweep collection |
116 static unsigned int _total_invocations; | 116 static uint _total_invocations; |
117 | 117 |
118 // Traversal stacks used during phase1 | 118 // Traversal stacks used during phase1 |
119 static Stack<oop, mtGC> _marking_stack; | 119 static Stack<oop, mtGC> _marking_stack; |
120 static Stack<ObjArrayTask, mtGC> _objarray_stack; | 120 static Stack<ObjArrayTask, mtGC> _objarray_stack; |
121 | 121 |
145 static FollowStackClosure follow_stack_closure; | 145 static FollowStackClosure follow_stack_closure; |
146 static AdjustPointerClosure adjust_pointer_closure; | 146 static AdjustPointerClosure adjust_pointer_closure; |
147 static AdjustKlassClosure adjust_klass_closure; | 147 static AdjustKlassClosure adjust_klass_closure; |
148 | 148 |
149 // Accessors | 149 // Accessors |
150 static unsigned int total_invocations() { return _total_invocations; } | 150 static uint total_invocations() { return _total_invocations; } |
151 | 151 |
152 // Reference Processing | 152 // Reference Processing |
153 static ReferenceProcessor* const ref_processor() { return _ref_processor; } | 153 static ReferenceProcessor* const ref_processor() { return _ref_processor; } |
154 | 154 |
155 // Call backs for marking | 155 // Call backs for marking |