Print this page
rev 5127 : 8023597: Optimize G1 barriers code for unsafe load_store
Summary: Avoid loading old values in G1 pre-barriers for inlined unsafe load_store nodes.

@@ -693,10 +693,13 @@
   // vanilla/CMS post barrier
   void write_barrier_post(Node *store, Node* obj,
                           Node* adr,  uint adr_idx, Node* val, bool use_precise);
+  // allow reordering of pre-barrier with oop store and/or post-barrier
+  bool can_move_pre_barrier() const;
   // G1 pre/post barriers
   void g1_write_barrier_pre(bool do_load,
                             Node* obj,
                             Node* adr,
                             uint alias_idx,