/[jscoverage]/trunk/js/jsdhash.h
ViewVC logotype

Diff of /trunk/js/jsdhash.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 506 by siliconforks, Thu Oct 23 19:03:33 2008 UTC revision 507 by siliconforks, Sun Jan 10 07:23:34 2010 UTC
# Line 576  Line 576 
576  extern JS_PUBLIC_API(uint32)  extern JS_PUBLIC_API(uint32)
577  JS_DHashTableEnumerate(JSDHashTable *table, JSDHashEnumerator etor, void *arg);  JS_DHashTableEnumerate(JSDHashTable *table, JSDHashEnumerator etor, void *arg);
578    
579    #ifdef DEBUG
580    /**
581     * Mark a table as immutable for the remainder of its lifetime.  This
582     * changes the implementation from ASSERTing one set of invariants to
583     * ASSERTing a different set.
584     *
585     * When a table is NOT marked as immutable, the table implementation
586     * asserts that the table is not mutated from its own callbacks.  It
587     * assumes the caller protects the table from being accessed on multiple
588     * threads simultaneously.
589     *
590     * When the table is marked as immutable, the re-entry assertions will
591     * no longer trigger erroneously due to multi-threaded access.  Instead,
592     * mutations will cause assertions.
593     */
594    extern JS_PUBLIC_API(void)
595    JS_DHashMarkTableImmutable(JSDHashTable *table);
596    #endif
597    
598  #ifdef JS_DHASHMETER  #ifdef JS_DHASHMETER
599  #include <stdio.h>  #include <stdio.h>
600    

Legend:
Removed from v.506  
changed lines
  Added in v.507

  ViewVC Help
Powered by ViewVC 1.1.24