WeakArray.st
changeset 21440 f4962d3c833a
parent 20955 fc48f6ef7556
child 21924 9769324e75d1
equal deleted inserted replaced
21439:5a7a395dc9b7 21440:f4962d3c833a
   181     ok = __addShadowObject(self, 0);
   181     ok = __addShadowObject(self, 0);
   182     if (ok == false) {
   182     if (ok == false) {
   183         /*
   183         /*
   184          * the behavior of __addShadowObject() in case of overflowing
   184          * the behavior of __addShadowObject() in case of overflowing
   185          * VM-table space can be controlled by the second argument:
   185          * VM-table space can be controlled by the second argument:
   186          *   if its 0, the weakObject is not registered, and false
   186          *   if it's 0, the weakObject is not registered, and false
   187          *   is returned.
   187          *   is returned.
   188          *   if its 1, the tables are reallocated, registration proceeds,
   188          *   if it's 1, the tables are reallocated, registration proceeds,
   189          *   and true is returned.
   189          *   and true is returned.
   190          * This allows for the caller to have an influence on the VM's
   190          * This allows for the caller to have an influence on the VM's
   191          * shadow table allocation.
   191          * shadow table allocation.
   192          *
   192          *
   193          * If addShadowObject() returned false, too many shadow objects are
   193          * If addShadowObject() returned false, too many shadow objects are
   244          other places as well).
   244          other places as well).
   245          Configure your OS for more swap space.
   245          Configure your OS for more swap space.
   246         "
   246         "
   247         ^ RegistrationFailedSignal raiseRequestWith:self
   247         ^ RegistrationFailedSignal raiseRequestWith:self
   248     ]
   248     ]
       
   249 
       
   250     "Modified: / 13-02-2017 / 20:34:24 / cg"
   249 ! !
   251 ! !
   250 
   252 
   251 !WeakArray methodsFor:'accessing'!
   253 !WeakArray methodsFor:'accessing'!
   252 
   254 
   253 at:index
   255 at:index