diff options
author | jmasa <none@none> | 2010-06-10 08:27:35 -0700 |
---|---|---|
committer | jmasa <none@none> | 2010-06-10 08:27:35 -0700 |
commit | 41fddbd7c88346baa8c8cb6676f45b07499b51a9 (patch) | |
tree | c25fa7e89ae6ddb849e6d5f586067b567764a107 /src/share/vm/opto/graphKit.cpp | |
parent | a21238d1fb7cbda42eaa646f701f2eacf678af3b (diff) | |
parent | bbc241babb64be85dbf2ab351c9333ba500f03a1 (diff) |
Merge
Diffstat (limited to 'src/share/vm/opto/graphKit.cpp')
-rw-r--r-- | src/share/vm/opto/graphKit.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/share/vm/opto/graphKit.cpp b/src/share/vm/opto/graphKit.cpp index 550e6f174..ce2fb4bb7 100644 --- a/src/share/vm/opto/graphKit.cpp +++ b/src/share/vm/opto/graphKit.cpp @@ -3487,7 +3487,6 @@ void GraphKit::g1_write_barrier_post(Node* oop_store, Node* tls = __ thread(); // ThreadLocalStorage - Node* no_ctrl = NULL; Node* no_base = __ top(); float likely = PROB_LIKELY(0.999); float unlikely = PROB_UNLIKELY(0.999); @@ -3511,10 +3510,10 @@ void GraphKit::g1_write_barrier_post(Node* oop_store, Node* index_adr = __ AddP(no_base, tls, __ ConX(index_offset)); // Now some values - - Node* index = __ load(no_ctrl, index_adr, TypeInt::INT, T_INT, Compile::AliasIdxRaw); - Node* buffer = __ load(no_ctrl, buffer_adr, TypeRawPtr::NOTNULL, T_ADDRESS, Compile::AliasIdxRaw); - + // Use ctrl to avoid hoisting these values past a safepoint, which could + // potentially reset these fields in the JavaThread. + Node* index = __ load(__ ctrl(), index_adr, TypeInt::INT, T_INT, Compile::AliasIdxRaw); + Node* buffer = __ load(__ ctrl(), buffer_adr, TypeRawPtr::NOTNULL, T_ADDRESS, Compile::AliasIdxRaw); // Convert the store obj pointer to an int prior to doing math on it // Must use ctrl to prevent "integerized oop" existing across safepoint |