diff --git a/src/java/com/threerings/presents/dobj/DSet.java b/src/java/com/threerings/presents/dobj/DSet.java index 59f1e586d..c1c761cc0 100644 --- a/src/java/com/threerings/presents/dobj/DSet.java +++ b/src/java/com/threerings/presents/dobj/DSet.java @@ -320,7 +320,7 @@ public class DSet int elength = _entries.length; if (_size >= elength) { // sanity check - if (elength > 2048) { + if (elength > getWarningSize()) { log.warning("Requested to expand to questionably large size", "l", elength, new Exception()); } @@ -425,6 +425,14 @@ public class DSet } } + /** + * Returns the minimum size where we should warn that we're getting a bit large. + */ + protected int getWarningSize () + { + return 2048; + } + /** * Generates a shallow copy of this object in a type safe manner. *