--- a/src/hotspot/share/jfr/recorder/checkpoint/jfrCheckpointWriter.hpp Fri Aug 23 18:47:55 2019 +0200
+++ b/src/hotspot/share/jfr/recorder/checkpoint/jfrCheckpointWriter.hpp Sat Aug 24 14:30:27 2019 +0200
@@ -54,24 +54,23 @@
};
class JfrCheckpointWriter : public JfrCheckpointWriterBase {
+ friend class JfrCheckpointManager;
friend class JfrSerializerRegistration;
private:
JfrTicks _time;
int64_t _offset;
u4 _count;
- bool _flushpoint;
bool _header;
u4 count() const;
void set_count(u4 count);
void increment();
- void set_flushpoint(bool flushpoint);
- bool is_flushpoint() const;
- const u1* session_data(size_t* size, const JfrCheckpointContext* ctx = NULL);
+ const u1* session_data(size_t* size, bool move = false, const JfrCheckpointContext* ctx = NULL);
void release();
-
+ JfrCheckpointWriter(Thread* t, JfrBuffer* buffer);
public:
- JfrCheckpointWriter(bool flushpoint, bool header, Thread* thread);
+ JfrCheckpointWriter();
+ JfrCheckpointWriter(Thread* t, bool header = true);
~JfrCheckpointWriter();
void write_type(JfrTypeId type_id);
void write_count(u4 nof_entries);
@@ -80,7 +79,6 @@
const JfrCheckpointContext context() const;
void set_context(const JfrCheckpointContext ctx);
bool has_data() const;
- JfrCheckpointBlobHandle checkpoint_blob();
JfrCheckpointBlobHandle copy(const JfrCheckpointContext* ctx = NULL);
JfrCheckpointBlobHandle move(const JfrCheckpointContext* ctx = NULL);
};