equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2002, 2014, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2002, 2015, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. |
7 * published by the Free Software Foundation. |
30 #include "oops/method.hpp" |
30 #include "oops/method.hpp" |
31 #include "oops/oop.inline.hpp" |
31 #include "oops/oop.inline.hpp" |
32 #include "runtime/deoptimization.hpp" |
32 #include "runtime/deoptimization.hpp" |
33 #include "runtime/vmThread.hpp" |
33 #include "runtime/vmThread.hpp" |
34 #include "utilities/xmlstream.hpp" |
34 #include "utilities/xmlstream.hpp" |
|
35 |
|
36 // Do not assert this condition if there's already another error reported. |
|
37 #define assert_if_no_error(cond, msg) \ |
|
38 vmassert((cond) || is_error_reported(), msg) |
35 |
39 |
36 void xmlStream::initialize(outputStream* out) { |
40 void xmlStream::initialize(outputStream* out) { |
37 _out = out; |
41 _out = out; |
38 _last_flush = 0; |
42 _last_flush = 0; |
39 _markup_state = BODY; |
43 _markup_state = BODY; |