8285851: Cleanup C2AtomicParseAccess::needs_pinning()
Reviewed-by: thartmann
This commit is contained in:
parent
3eb661bbe7
commit
9795ef5dd3
src/hotspot/share/gc/shared/c2
@ -386,9 +386,6 @@ void C2Access::fixup_decorators() {
|
||||
//--------------------------- atomic operations---------------------------------
|
||||
|
||||
void BarrierSetC2::pin_atomic_op(C2AtomicParseAccess& access) const {
|
||||
if (!access.needs_pinning()) {
|
||||
return;
|
||||
}
|
||||
// SCMemProjNodes represent the memory state of a LoadStore. Their
|
||||
// main role is to prevent LoadStore nodes from being optimized away
|
||||
// when their results aren't used.
|
||||
|
@ -168,22 +168,19 @@ public:
|
||||
class C2AtomicParseAccess: public C2ParseAccess {
|
||||
Node* _memory;
|
||||
uint _alias_idx;
|
||||
bool _needs_pinning;
|
||||
|
||||
public:
|
||||
C2AtomicParseAccess(GraphKit* kit, DecoratorSet decorators, BasicType type,
|
||||
Node* base, C2AccessValuePtr& addr, uint alias_idx) :
|
||||
C2ParseAccess(kit, decorators, type, base, addr),
|
||||
_memory(NULL),
|
||||
_alias_idx(alias_idx),
|
||||
_needs_pinning(true) {}
|
||||
_alias_idx(alias_idx) {}
|
||||
|
||||
// Set the memory node based on the current memory slice.
|
||||
virtual void set_memory();
|
||||
|
||||
Node* memory() const { return _memory; }
|
||||
uint alias_idx() const { return _alias_idx; }
|
||||
bool needs_pinning() const { return _needs_pinning; }
|
||||
};
|
||||
|
||||
// C2Access for optimization time calls to the BarrierSetC2 backend.
|
||||
|
Loading…
x
Reference in New Issue
Block a user