< prev index next >

src/jdk.hotspot.agent/share/classes/sun/jvm/hotspot/runtime/MonitorInfo.java

Print this page
*** 27,16 ***
  import sun.jvm.hotspot.debugger.*;
  import sun.jvm.hotspot.utilities.*;
  
  public class MonitorInfo {
    private OopHandle owner;
-   private BasicLock lock;
    private OopHandle ownerKlass;
    private boolean eliminated;
    private boolean ownerIsScalarReplaced;
  
!   public MonitorInfo(OopHandle owner, BasicLock lock, boolean eliminated, boolean ownerIsScalarReplaced) {
      if (!ownerIsScalarReplaced) {
        this.owner = owner;
        this.ownerKlass = null;
      } else {
        Assert.that(eliminated, "monitor should be eliminated for scalar replaced object");
--- 27,15 ---
  import sun.jvm.hotspot.debugger.*;
  import sun.jvm.hotspot.utilities.*;
  
  public class MonitorInfo {
    private OopHandle owner;
    private OopHandle ownerKlass;
    private boolean eliminated;
    private boolean ownerIsScalarReplaced;
  
!   public MonitorInfo(OopHandle owner, boolean eliminated, boolean ownerIsScalarReplaced) {
      if (!ownerIsScalarReplaced) {
        this.owner = owner;
        this.ownerKlass = null;
      } else {
        Assert.that(eliminated, "monitor should be eliminated for scalar replaced object");

*** 55,9 ***
    public OopHandle ownerKlass() {
     Assert.that(ownerIsScalarReplaced, "should not be called for not scalar replaced object");
     return ownerKlass;
    }
  
-   public BasicLock lock()  { return lock; }
    public boolean eliminated() { return eliminated; }
    public boolean ownerIsScalarReplaced() { return ownerIsScalarReplaced; }
  }
--- 54,8 ---
< prev index next >