The unpac monorepo manager self-hosting as a monorepo using unpac
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge pull request #11274 from gasche/max_domains_is_internal

protect Max_domains with CAML_INTERNALS

authored by

David Allsopp and committed by
GitHub
dea8e684 c1b07c81

+8 -7
-7
runtime/caml/config.h
··· 239 239 total size of live objects. */ 240 240 #define Percent_free_def 120 241 241 242 - /* Maximum number of domains */ 243 - #ifdef ARCH_SIXTYFOUR 244 - #define Max_domains 128 245 - #else 246 - #define Max_domains 16 247 - #endif 248 - 249 242 /* Default setting for the major GC slice smoothing window: 1 250 243 (i.e. no smoothing) 251 244 */
+8
runtime/caml/domain.h
··· 29 29 #include "domain_state.h" 30 30 #include "platform.h" 31 31 32 + /* The runtime currently has a hard limit on the number of domains. 33 + This hard limit may go away in the future. */ 34 + #ifdef ARCH_SIXTYFOUR 35 + #define Max_domains 128 36 + #else 37 + #define Max_domains 16 38 + #endif 39 + 32 40 /* is the minor heap full or an external interrupt has been triggered */ 33 41 Caml_inline int caml_check_gc_interrupt(caml_domain_state * dom_st) 34 42 {