hotspot/agent/src/share/classes/sun/jvm/hotspot/oops/Klass.java
author duke
Sat, 01 Dec 2007 00:00:00 +0000
changeset 1 489c9b5090e2
child 360 21d113ecbf6a
permissions -rw-r--r--
Initial load
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
     1
/*
489c9b5090e2 Initial load
duke
parents:
diff changeset
     2
 * Copyright 2000-2007 Sun Microsystems, Inc.  All Rights Reserved.
489c9b5090e2 Initial load
duke
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
489c9b5090e2 Initial load
duke
parents:
diff changeset
     4
 *
489c9b5090e2 Initial load
duke
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
489c9b5090e2 Initial load
duke
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
489c9b5090e2 Initial load
duke
parents:
diff changeset
     7
 * published by the Free Software Foundation.
489c9b5090e2 Initial load
duke
parents:
diff changeset
     8
 *
489c9b5090e2 Initial load
duke
parents:
diff changeset
     9
 * This code is distributed in the hope that it will be useful, but WITHOUT
489c9b5090e2 Initial load
duke
parents:
diff changeset
    10
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
489c9b5090e2 Initial load
duke
parents:
diff changeset
    11
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
489c9b5090e2 Initial load
duke
parents:
diff changeset
    12
 * version 2 for more details (a copy is included in the LICENSE file that
489c9b5090e2 Initial load
duke
parents:
diff changeset
    13
 * accompanied this code).
489c9b5090e2 Initial load
duke
parents:
diff changeset
    14
 *
489c9b5090e2 Initial load
duke
parents:
diff changeset
    15
 * You should have received a copy of the GNU General Public License version
489c9b5090e2 Initial load
duke
parents:
diff changeset
    16
 * 2 along with this work; if not, write to the Free Software Foundation,
489c9b5090e2 Initial load
duke
parents:
diff changeset
    17
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
489c9b5090e2 Initial load
duke
parents:
diff changeset
    18
 *
489c9b5090e2 Initial load
duke
parents:
diff changeset
    19
 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
489c9b5090e2 Initial load
duke
parents:
diff changeset
    20
 * CA 95054 USA or visit www.sun.com if you need additional information or
489c9b5090e2 Initial load
duke
parents:
diff changeset
    21
 * have any questions.
489c9b5090e2 Initial load
duke
parents:
diff changeset
    22
 *
489c9b5090e2 Initial load
duke
parents:
diff changeset
    23
 */
489c9b5090e2 Initial load
duke
parents:
diff changeset
    24
489c9b5090e2 Initial load
duke
parents:
diff changeset
    25
package sun.jvm.hotspot.oops;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    26
489c9b5090e2 Initial load
duke
parents:
diff changeset
    27
import java.io.*;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    28
import java.util.*;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    29
import sun.jvm.hotspot.debugger.*;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    30
import sun.jvm.hotspot.runtime.*;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    31
import sun.jvm.hotspot.types.*;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    32
489c9b5090e2 Initial load
duke
parents:
diff changeset
    33
public class Klass extends Oop implements ClassConstants {
489c9b5090e2 Initial load
duke
parents:
diff changeset
    34
  static {
489c9b5090e2 Initial load
duke
parents:
diff changeset
    35
    VM.registerVMInitializedObserver(new Observer() {
489c9b5090e2 Initial load
duke
parents:
diff changeset
    36
        public void update(Observable o, Object data) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
    37
          initialize(VM.getVM().getTypeDataBase());
489c9b5090e2 Initial load
duke
parents:
diff changeset
    38
        }
489c9b5090e2 Initial load
duke
parents:
diff changeset
    39
      });
489c9b5090e2 Initial load
duke
parents:
diff changeset
    40
  }
489c9b5090e2 Initial load
duke
parents:
diff changeset
    41
489c9b5090e2 Initial load
duke
parents:
diff changeset
    42
  // anon-enum constants for _layout_helper.
489c9b5090e2 Initial load
duke
parents:
diff changeset
    43
  public static int LH_INSTANCE_SLOW_PATH_BIT;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    44
  public static int LH_LOG2_ELEMENT_SIZE_SHIFT;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    45
  public static int LH_ELEMENT_TYPE_SHIFT;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    46
  public static int LH_HEADER_SIZE_SHIFT;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    47
  public static int LH_ARRAY_TAG_SHIFT;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    48
  public static int LH_ARRAY_TAG_TYPE_VALUE;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    49
  public static int LH_ARRAY_TAG_OBJ_VALUE;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    50
489c9b5090e2 Initial load
duke
parents:
diff changeset
    51
  private static synchronized void initialize(TypeDataBase db) throws WrongTypeException {
489c9b5090e2 Initial load
duke
parents:
diff changeset
    52
    Type type    = db.lookupType("Klass");
489c9b5090e2 Initial load
duke
parents:
diff changeset
    53
    javaMirror   = new OopField(type.getOopField("_java_mirror"), Oop.getHeaderSize());
489c9b5090e2 Initial load
duke
parents:
diff changeset
    54
    superField   = new OopField(type.getOopField("_super"), Oop.getHeaderSize());
489c9b5090e2 Initial load
duke
parents:
diff changeset
    55
    layoutHelper = new IntField(type.getJIntField("_layout_helper"), Oop.getHeaderSize());
489c9b5090e2 Initial load
duke
parents:
diff changeset
    56
    name         = new OopField(type.getOopField("_name"), Oop.getHeaderSize());
489c9b5090e2 Initial load
duke
parents:
diff changeset
    57
    accessFlags  = new CIntField(type.getCIntegerField("_access_flags"), Oop.getHeaderSize());
489c9b5090e2 Initial load
duke
parents:
diff changeset
    58
    subklass     = new OopField(type.getOopField("_subklass"), Oop.getHeaderSize());
489c9b5090e2 Initial load
duke
parents:
diff changeset
    59
    nextSibling  = new OopField(type.getOopField("_next_sibling"), Oop.getHeaderSize());
489c9b5090e2 Initial load
duke
parents:
diff changeset
    60
    allocCount   = new CIntField(type.getCIntegerField("_alloc_count"), Oop.getHeaderSize());
489c9b5090e2 Initial load
duke
parents:
diff changeset
    61
489c9b5090e2 Initial load
duke
parents:
diff changeset
    62
    LH_INSTANCE_SLOW_PATH_BIT  = db.lookupIntConstant("Klass::_lh_instance_slow_path_bit").intValue();
489c9b5090e2 Initial load
duke
parents:
diff changeset
    63
    LH_LOG2_ELEMENT_SIZE_SHIFT = db.lookupIntConstant("Klass::_lh_log2_element_size_shift").intValue();
489c9b5090e2 Initial load
duke
parents:
diff changeset
    64
    LH_ELEMENT_TYPE_SHIFT      = db.lookupIntConstant("Klass::_lh_element_type_shift").intValue();
489c9b5090e2 Initial load
duke
parents:
diff changeset
    65
    LH_HEADER_SIZE_SHIFT       = db.lookupIntConstant("Klass::_lh_header_size_shift").intValue();
489c9b5090e2 Initial load
duke
parents:
diff changeset
    66
    LH_ARRAY_TAG_SHIFT         = db.lookupIntConstant("Klass::_lh_array_tag_shift").intValue();
489c9b5090e2 Initial load
duke
parents:
diff changeset
    67
    LH_ARRAY_TAG_TYPE_VALUE    = db.lookupIntConstant("Klass::_lh_array_tag_type_value").intValue();
489c9b5090e2 Initial load
duke
parents:
diff changeset
    68
    LH_ARRAY_TAG_OBJ_VALUE     = db.lookupIntConstant("Klass::_lh_array_tag_obj_value").intValue();
489c9b5090e2 Initial load
duke
parents:
diff changeset
    69
  }
489c9b5090e2 Initial load
duke
parents:
diff changeset
    70
489c9b5090e2 Initial load
duke
parents:
diff changeset
    71
  Klass(OopHandle handle, ObjectHeap heap) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
    72
    super(handle, heap);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    73
  }
489c9b5090e2 Initial load
duke
parents:
diff changeset
    74
489c9b5090e2 Initial load
duke
parents:
diff changeset
    75
  // jvmdi support - see also class_status in VM code
489c9b5090e2 Initial load
duke
parents:
diff changeset
    76
  public int getClassStatus() {
489c9b5090e2 Initial load
duke
parents:
diff changeset
    77
    return 0; // overridden in derived classes
489c9b5090e2 Initial load
duke
parents:
diff changeset
    78
  }
489c9b5090e2 Initial load
duke
parents:
diff changeset
    79
489c9b5090e2 Initial load
duke
parents:
diff changeset
    80
  public boolean isKlass()             { return true; }
489c9b5090e2 Initial load
duke
parents:
diff changeset
    81
489c9b5090e2 Initial load
duke
parents:
diff changeset
    82
  // Fields
489c9b5090e2 Initial load
duke
parents:
diff changeset
    83
  private static OopField  javaMirror;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    84
  private static OopField  superField;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    85
  private static IntField layoutHelper;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    86
  private static OopField  name;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    87
  private static CIntField accessFlags;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    88
  private static OopField  subklass;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    89
  private static OopField  nextSibling;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    90
  private static CIntField allocCount;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    91
489c9b5090e2 Initial load
duke
parents:
diff changeset
    92
  // Accessors for declared fields
489c9b5090e2 Initial load
duke
parents:
diff changeset
    93
  public Instance getJavaMirror()       { return (Instance) javaMirror.getValue(this);   }
489c9b5090e2 Initial load
duke
parents:
diff changeset
    94
  public Klass    getSuper()            { return (Klass)    superField.getValue(this);   }
489c9b5090e2 Initial load
duke
parents:
diff changeset
    95
  public Klass    getJavaSuper()        { return null;  }
489c9b5090e2 Initial load
duke
parents:
diff changeset
    96
  public int      getLayoutHelper()     { return (int)           layoutHelper.getValue(this); }
489c9b5090e2 Initial load
duke
parents:
diff changeset
    97
  public Symbol   getName()             { return (Symbol)   name.getValue(this);         }
489c9b5090e2 Initial load
duke
parents:
diff changeset
    98
  public long     getAccessFlags()      { return            accessFlags.getValue(this);  }
489c9b5090e2 Initial load
duke
parents:
diff changeset
    99
  // Convenience routine
489c9b5090e2 Initial load
duke
parents:
diff changeset
   100
  public AccessFlags getAccessFlagsObj(){ return new AccessFlags(getAccessFlags());      }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   101
  public Klass    getSubklassKlass()    { return (Klass)    subklass.getValue(this);     }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   102
  public Klass    getNextSiblingKlass() { return (Klass)    nextSibling.getValue(this);  }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   103
  public long     getAllocCount()       { return            allocCount.getValue(this);   }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   104
489c9b5090e2 Initial load
duke
parents:
diff changeset
   105
  // computed access flags - takes care of inner classes etc.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   106
  // This is closer to actual source level than getAccessFlags() etc.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   107
  public long computeModifierFlags() {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   108
    return 0L; // Unless overridden, modifier_flags is 0.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   109
  }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   110
489c9b5090e2 Initial load
duke
parents:
diff changeset
   111
  // same as JVM_GetClassModifiers
489c9b5090e2 Initial load
duke
parents:
diff changeset
   112
  public final long getClassModifiers() {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   113
    // unlike the VM counterpart we never have to deal with primitive type,
489c9b5090e2 Initial load
duke
parents:
diff changeset
   114
    // because we operator on Klass and not an instance of java.lang.Class.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   115
    long flags = computeModifierFlags();
489c9b5090e2 Initial load
duke
parents:
diff changeset
   116
    if (isSuper()) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   117
       flags |= JVM_ACC_SUPER;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   118
    }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   119
    return flags;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   120
  }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   121
489c9b5090e2 Initial load
duke
parents:
diff changeset
   122
  // subclass check
489c9b5090e2 Initial load
duke
parents:
diff changeset
   123
  public boolean isSubclassOf(Klass k) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   124
    if (k != null) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   125
      Klass t = this;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   126
      // Run up the super chain and check
489c9b5090e2 Initial load
duke
parents:
diff changeset
   127
      while (t != null) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   128
        if (t.equals(k)) return true;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   129
        t = t.getSuper();
489c9b5090e2 Initial load
duke
parents:
diff changeset
   130
      }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   131
    }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   132
    return false;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   133
  }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   134
489c9b5090e2 Initial load
duke
parents:
diff changeset
   135
  // subtype check
489c9b5090e2 Initial load
duke
parents:
diff changeset
   136
  public boolean isSubtypeOf(Klass k) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   137
    return computeSubtypeOf(k);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   138
  }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   139
489c9b5090e2 Initial load
duke
parents:
diff changeset
   140
  boolean computeSubtypeOf(Klass k) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   141
    return isSubclassOf(k);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   142
  }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   143
489c9b5090e2 Initial load
duke
parents:
diff changeset
   144
  // Find LCA (Least Common Ancester) in class heirarchy
489c9b5090e2 Initial load
duke
parents:
diff changeset
   145
  public Klass lca( Klass k2 ) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   146
    Klass k1 = this;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   147
    while ( true ) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   148
      if ( k1.isSubtypeOf(k2) ) return k2;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   149
      if ( k2.isSubtypeOf(k1) ) return k1;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   150
      k1 = k1.getSuper();
489c9b5090e2 Initial load
duke
parents:
diff changeset
   151
      k2 = k2.getSuper();
489c9b5090e2 Initial load
duke
parents:
diff changeset
   152
    }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   153
  }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   154
489c9b5090e2 Initial load
duke
parents:
diff changeset
   155
  public void printValueOn(PrintStream tty) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   156
    tty.print("Klass");
489c9b5090e2 Initial load
duke
parents:
diff changeset
   157
  }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   158
489c9b5090e2 Initial load
duke
parents:
diff changeset
   159
  public void iterateFields(OopVisitor visitor, boolean doVMFields) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   160
    super.iterateFields(visitor, doVMFields);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   161
    if (doVMFields) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   162
      visitor.doOop(javaMirror, true);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   163
      visitor.doOop(superField, true);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   164
      visitor.doInt(layoutHelper, true);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   165
      visitor.doOop(name, true);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   166
      visitor.doCInt(accessFlags, true);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   167
      visitor.doOop(subklass, true);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   168
      visitor.doOop(nextSibling, true);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   169
      visitor.doCInt(allocCount, true);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   170
    }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   171
  }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   172
489c9b5090e2 Initial load
duke
parents:
diff changeset
   173
  public long getObjectSize() {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   174
    System.out.println("should not reach here");
489c9b5090e2 Initial load
duke
parents:
diff changeset
   175
    return 0;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   176
  }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   177
489c9b5090e2 Initial load
duke
parents:
diff changeset
   178
  /** Array class with specific rank */
489c9b5090e2 Initial load
duke
parents:
diff changeset
   179
  public Klass arrayKlass(int rank)       { return arrayKlassImpl(false, rank); }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   180
  /** Array class with this klass as element type */
489c9b5090e2 Initial load
duke
parents:
diff changeset
   181
  public Klass arrayKlass()               { return arrayKlassImpl(false);       }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   182
  /** These will return null instead of allocating on the heap */
489c9b5090e2 Initial load
duke
parents:
diff changeset
   183
  public Klass arrayKlassOrNull(int rank) { return arrayKlassImpl(true, rank);  }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   184
  public Klass arrayKlassOrNull()         { return arrayKlassImpl(true);        }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   185
489c9b5090e2 Initial load
duke
parents:
diff changeset
   186
  public Klass arrayKlassImpl(boolean orNull, int rank) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   187
    throw new RuntimeException("array_klass should be dispatched to instanceKlass, objArrayKlass or typeArrayKlass");
489c9b5090e2 Initial load
duke
parents:
diff changeset
   188
  }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   189
489c9b5090e2 Initial load
duke
parents:
diff changeset
   190
  public Klass arrayKlassImpl(boolean orNull) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   191
    throw new RuntimeException("array_klass should be dispatched to instanceKlass, objArrayKlass or typeArrayKlass");
489c9b5090e2 Initial load
duke
parents:
diff changeset
   192
  }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   193
489c9b5090e2 Initial load
duke
parents:
diff changeset
   194
  // This returns the name in the form java/lang/String which isn't really a signature
489c9b5090e2 Initial load
duke
parents:
diff changeset
   195
  // The subclasses override this to produce the correct form, eg
489c9b5090e2 Initial load
duke
parents:
diff changeset
   196
  //   Ljava/lang/String; For ArrayKlasses getName itself is the signature.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   197
  public String signature() { return getName().asString(); }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   198
489c9b5090e2 Initial load
duke
parents:
diff changeset
   199
  // Convenience routines
489c9b5090e2 Initial load
duke
parents:
diff changeset
   200
  public boolean isPublic()                 { return getAccessFlagsObj().isPublic(); }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   201
  public boolean isFinal()                  { return getAccessFlagsObj().isFinal(); }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   202
  public boolean isInterface()              { return getAccessFlagsObj().isInterface(); }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   203
  public boolean isAbstract()               { return getAccessFlagsObj().isAbstract(); }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   204
  public boolean isSuper()                  { return getAccessFlagsObj().isSuper(); }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   205
  public boolean isSynthetic()              { return getAccessFlagsObj().isSynthetic(); }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   206
  public boolean hasFinalizer()             { return getAccessFlagsObj().hasFinalizer(); }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   207
  public boolean isCloneable()              { return getAccessFlagsObj().isCloneable(); }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   208
  public boolean hasVanillaConstructor()    { return getAccessFlagsObj().hasVanillaConstructor(); }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   209
  public boolean hasMirandaMethods ()       { return getAccessFlagsObj().hasMirandaMethods(); }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   210
}