< prev index next >

src/hotspot/share/asm/codeBuffer.hpp

Print this page
@@ -424,16 +424,21 @@
  class AsmRemarks {
   public:
    AsmRemarks();
   ~AsmRemarks();
  
+   void init();
+ 
    const char* insert(uint offset, const char* remstr);
  
    bool is_empty() const;
  
    void share(const AsmRemarks &src);
    void clear();
+   // Clear Collection refence when storing AOT code,
+   // new one will be created during AOT code load.
+   void clear_ref() { _remarks = nullptr; }
    uint print(uint offset, outputStream* strm = tty) const;
  
    // For testing purposes only.
    const AsmRemarkCollection* ref() const { return _remarks; }
  

@@ -450,16 +455,21 @@
  class DbgStrings {
   public:
    DbgStrings();
   ~DbgStrings();
  
+   void init();
+ 
    const char* insert(const char* dbgstr);
  
    bool is_empty() const;
  
    void share(const DbgStrings &src);
    void clear();
+   // Clear Collection refence when storing AOT code,
+   // new one will be created during AOT code load.
+   void clear_ref() { _strings = nullptr; }
  
    // For testing purposes only.
    const DbgStringCollection* ref() const { return _strings; }
  
    template<typename Function>
< prev index next >