31 #include "jfr/writers/jfrEncoding.hpp" |
31 #include "jfr/writers/jfrEncoding.hpp" |
32 #include "jfr/writers/jfrWriterHost.hpp" |
32 #include "jfr/writers/jfrWriterHost.hpp" |
33 #include "memory/resourceArea.hpp" |
33 #include "memory/resourceArea.hpp" |
34 #include "oops/oop.hpp" |
34 #include "oops/oop.hpp" |
35 #include "oops/symbol.hpp" |
35 #include "oops/symbol.hpp" |
36 //#include "oops/typeArrayOop.inline.hpp" - XXX |
|
37 |
36 |
38 inline bool compressed_integers() { |
37 inline bool compressed_integers() { |
39 static const bool comp_integers = JfrOptionSet::compressed_integers(); |
38 static const bool comp_integers = JfrOptionSet::compressed_integers(); |
40 return comp_integers; |
39 return comp_integers; |
41 } |
40 } |
257 template <typename BE, typename IE, typename WriterPolicyImpl> |
256 template <typename BE, typename IE, typename WriterPolicyImpl> |
258 void WriterHost<BE, IE, WriterPolicyImpl>::write(const Method* method) { |
257 void WriterHost<BE, IE, WriterPolicyImpl>::write(const Method* method) { |
259 tag_write(this, method); |
258 tag_write(this, method); |
260 } |
259 } |
261 |
260 |
262 // XXX |
|
263 // template <typename BE, typename IE, typename WriterPolicyImpl> |
|
264 // void WriterHost<BE, IE, WriterPolicyImpl>::write(const PackageEntry* package) { |
|
265 // tag_write(this, package); |
|
266 // } |
|
267 |
|
268 template <typename BE, typename IE, typename WriterPolicyImpl> |
261 template <typename BE, typename IE, typename WriterPolicyImpl> |
269 void WriterHost<BE, IE, WriterPolicyImpl>::write(const Symbol* symbol) { |
262 void WriterHost<BE, IE, WriterPolicyImpl>::write(const Symbol* symbol) { |
270 ResourceMark rm; |
263 ResourceMark rm; |
271 write_utf8(symbol != NULL ? symbol->as_C_string() : NULL); |
264 write_utf8(symbol != NULL ? symbol->as_C_string() : NULL); |
272 } |
265 } |