14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 *
23 */
24
25 #include "precompiled.hpp"
26 #include "classfile/javaAssertions.hpp"
27 #include "classfile/javaClasses.hpp"
28 #include "classfile/systemDictionary.hpp"
29 #include "classfile/vmSymbols.hpp"
30 #include "memory/allocation.inline.hpp"
31 #include "memory/oopFactory.hpp"
32 #include "oops/objArrayOop.inline.hpp"
33 #include "oops/oop.inline.hpp"
34 #include "runtime/handles.inline.hpp"
35
36 bool JavaAssertions::_userDefault = false;
37 bool JavaAssertions::_sysDefault = false;
38 JavaAssertions::OptionList* JavaAssertions::_classes = 0;
39 JavaAssertions::OptionList* JavaAssertions::_packages = 0;
40
41 JavaAssertions::OptionList::OptionList(const char* name, bool enabled,
42 OptionList* next) {
43 assert(name != 0, "need a name");
44 _name = name;
45 _enabled = enabled;
46 _next = next;
47 }
48
49 int JavaAssertions::OptionList::count(OptionList* p) {
50 int rc;
51 for (rc = 0; p != 0; p = p->next(), ++rc) /* empty */;
52 return rc;
53 }
|
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 *
23 */
24
25 #include "precompiled.hpp"
26 #include "classfile/javaAssertions.hpp"
27 #include "classfile/javaClasses.hpp"
28 #include "classfile/systemDictionary.hpp"
29 #include "classfile/vmSymbols.hpp"
30 #include "memory/allocation.inline.hpp"
31 #include "memory/oopFactory.hpp"
32 #include "oops/objArrayOop.inline.hpp"
33 #include "oops/oop.inline.hpp"
34 #include "oops/typeArrayOop.inline.hpp"
35 #include "runtime/handles.inline.hpp"
36
37 bool JavaAssertions::_userDefault = false;
38 bool JavaAssertions::_sysDefault = false;
39 JavaAssertions::OptionList* JavaAssertions::_classes = 0;
40 JavaAssertions::OptionList* JavaAssertions::_packages = 0;
41
42 JavaAssertions::OptionList::OptionList(const char* name, bool enabled,
43 OptionList* next) {
44 assert(name != 0, "need a name");
45 _name = name;
46 _enabled = enabled;
47 _next = next;
48 }
49
50 int JavaAssertions::OptionList::count(OptionList* p) {
51 int rc;
52 for (rc = 0; p != 0; p = p->next(), ++rc) /* empty */;
53 return rc;
54 }
|