src/share/vm/jfr/recorder/checkpoint/jfrCheckpointWriter.hpp

changeset 9947
db357034b763
parent 9858
b985cbb00e68
     1.1 --- a/src/share/vm/jfr/recorder/checkpoint/jfrCheckpointWriter.hpp	Fri Dec 06 12:42:29 2019 +0100
     1.2 +++ b/src/share/vm/jfr/recorder/checkpoint/jfrCheckpointWriter.hpp	Tue Jun 16 11:03:04 2020 +0800
     1.3 @@ -49,21 +49,21 @@
     1.4  typedef EventWriterHost<BigEndianEncoder, CompressedIntegerEncoder, JfrTransactionalCheckpointWriter> JfrCheckpointWriterBase;
     1.5  
     1.6  struct JfrCheckpointContext {
     1.7 -  jlong offset;
     1.8 -  juint count;
     1.9 +  int64_t offset;
    1.10 +  u4 count;
    1.11  };
    1.12  
    1.13  class JfrCheckpointWriter : public JfrCheckpointWriterBase {
    1.14    friend class JfrSerializerRegistration;
    1.15   private:
    1.16    JfrTicks _time;
    1.17 -  jlong _offset;
    1.18 -  juint _count;
    1.19 +  int64_t _offset;
    1.20 +  u4 _count;
    1.21    bool _flushpoint;
    1.22    bool _header;
    1.23  
    1.24 -  juint count() const;
    1.25 -  void set_count(juint count);
    1.26 +  u4 count() const;
    1.27 +  void set_count(u4 count);
    1.28    void increment();
    1.29    void set_flushpoint(bool flushpoint);
    1.30    bool is_flushpoint() const;
    1.31 @@ -75,7 +75,7 @@
    1.32    ~JfrCheckpointWriter();
    1.33    void write_type(JfrTypeId type_id);
    1.34    void write_count(u4 nof_entries);
    1.35 -  void write_count(u4 nof_entries, jlong offset);
    1.36 +  void write_count(u4 nof_entries, int64_t offset);
    1.37    void write_key(u8 key);
    1.38    const JfrCheckpointContext context() const;
    1.39    void set_context(const JfrCheckpointContext ctx);

mercurial