[webkit-changes] cvs commit: JavaScriptCore/bindings/objc objc_class.mm

Richard rjw at opensource.apple.com
Wed Aug 3 17:40:20 PDT 2005


rjw         05/08/03 17:40:20

  Modified:    bindings/objc objc_class.mm
  Log:
  Submitted by: rjw at apple.com
  Reviewed by: cblu at apple.com
  Fixed hard capacity limit on the method and field cache use for the ObjC bindings.
  
  <rdar://problem/4204416> Dashboard client crashes when too many ObjC methods are called
  
  Revision  Changes    Path
  1.9       +2 -2      JavaScriptCore/bindings/objc/objc_class.mm
  
  Index: objc_class.mm
  ===================================================================
  RCS file: /cvs/root/JavaScriptCore/bindings/objc/objc_class.mm,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- objc_class.mm	1 Oct 2004 00:24:39 -0000	1.8
  +++ objc_class.mm	4 Aug 2005 00:40:20 -0000	1.9
  @@ -48,8 +48,8 @@
   void ObjcClass::_commonInit (ClassStructPtr aClass)
   {
       _isa = aClass;
  -    _methods = CFDictionaryCreateMutable(NULL, 16, &kCFTypeDictionaryKeyCallBacks, NULL);
  -    _fields = CFDictionaryCreateMutable(NULL, 16, &kCFTypeDictionaryKeyCallBacks, NULL);
  +    _methods = CFDictionaryCreateMutable(NULL, 0, &kCFTypeDictionaryKeyCallBacks, NULL);
  +    _fields = CFDictionaryCreateMutable(NULL, 0, &kCFTypeDictionaryKeyCallBacks, NULL);
   }
   
   
  
  
  



More information about the webkit-changes mailing list