Mercurial > hg > truffle
diff src/share/vm/opto/graphKit.hpp @ 12169:29aa8936f03c
8023597: Optimize G1 barriers code for unsafe load_store
Summary: Avoid loading old values in G1 pre-barriers for inlined unsafe load_store nodes.
Reviewed-by: kvn, tonyp
Contributed-by: Martin Doerr <martin.doerr@sap.com>
author | kvn |
---|---|
date | Wed, 28 Aug 2013 11:22:43 +0200 |
parents | beebba0acc11 |
children | edb5ab0f3fe5 |
line wrap: on
line diff
--- a/src/share/vm/opto/graphKit.hpp Tue Aug 27 21:16:54 2013 +0200 +++ b/src/share/vm/opto/graphKit.hpp Wed Aug 28 11:22:43 2013 +0200 @@ -695,6 +695,10 @@ 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. + // Used for load_store operations which loads old value. + bool can_move_pre_barrier() const; + // G1 pre/post barriers void g1_write_barrier_pre(bool do_load, Node* obj,