8009456: SA: typeToVtbl of BasicTypeDataBase should not be static

Tue, 19 Mar 2013 13:41:05 +0100

author
sla
date
Tue, 19 Mar 2013 13:41:05 +0100
changeset 4755
117bb0519114
parent 4754
82ab039b9680
child 4756
686916dc0439

8009456: SA: typeToVtbl of BasicTypeDataBase should not be static
Reviewed-by: coleenp, sla
Contributed-by: yunda.mly@taobao.com

agent/src/share/classes/sun/jvm/hotspot/types/basic/BasicTypeDataBase.java file | annotate | diff | comparison | revisions
     1.1 --- a/agent/src/share/classes/sun/jvm/hotspot/types/basic/BasicTypeDataBase.java	Sun Mar 17 08:57:56 2013 -0700
     1.2 +++ b/agent/src/share/classes/sun/jvm/hotspot/types/basic/BasicTypeDataBase.java	Tue Mar 19 13:41:05 2013 +0100
     1.3 @@ -24,10 +24,15 @@
     1.4  
     1.5  package sun.jvm.hotspot.types.basic;
     1.6  
     1.7 -import java.util.*;
     1.8 -import sun.jvm.hotspot.debugger.*;
     1.9 -import sun.jvm.hotspot.types.*;
    1.10 +import java.util.HashMap;
    1.11 +import java.util.Iterator;
    1.12 +import java.util.Map;
    1.13 +
    1.14 +import sun.jvm.hotspot.debugger.Address;
    1.15 +import sun.jvm.hotspot.debugger.MachineDescription;
    1.16  import sun.jvm.hotspot.runtime.VM;
    1.17 +import sun.jvm.hotspot.types.Type;
    1.18 +import sun.jvm.hotspot.types.TypeDataBase;
    1.19  
    1.20  /** <P> This is a basic implementation of the TypeDataBase interface.
    1.21      It allows an external type database builder to add types to be
    1.22 @@ -150,7 +155,7 @@
    1.23      return VM.getVM().getOopSize();
    1.24    }
    1.25  
    1.26 -  static HashMap typeToVtbl = new HashMap();
    1.27 +  HashMap typeToVtbl = new HashMap();
    1.28  
    1.29    private Address vtblForType(Type type) {
    1.30      Address vtblAddr = (Address)typeToVtbl.get(type);

mercurial