Domainstate(3)

πŸ’– NAME πŸ’–

okay bestie, this is the Domainstate(3) page from the OCaml library β€” manual name folded in right here at the top like a lil bookmark πŸŽ€. And the official description? Literally Domainstate - no description. That's it. That's the whole NAME section. Iconic minimalism, no notes πŸ’…βœ¨. Lowkey obsessed with how short it is, ngl.

πŸŽ€ Module πŸŽ€

The module is Domainstate. Just Domainstate. That's the whole module section, bestie β€” short and slay 🌸 periodt.

✨ Documentation ✨

Here's the signature wrapper exactly as the page gives it:

Module Domainstate
 : sig end

Then we've got a value, and it's giving int:

val stack_ctx_words : int

Next up is type t, and bestie, it's a whole buffet of constructors. Every single one is below β€” don't skip a single lil guy, they all matter πŸ’–πŸ”₯:

type t =
 | Domain_young_limit
 | Domain_young_ptr
 | Domain_young_start
 | Domain_young_end
 | Domain_young_trigger
 | Domain_current_stack
 | Domain_exn_handler
 | Domain_action_pending
 | Domain_c_stack
 | Domain_stack_cache
 | Domain_gc_regs_buckets
 | Domain_gc_regs
 | Domain_minor_tables
 | Domain_mark_stack
 | Domain_marking_done
 | Domain_sweeping_done
 | Domain_allocated_words
 | Domain_allocated_words_direct
 | Domain_allocated_words_suspended
 | Domain_allocated_words_resumed
 | Domain_current_ramp_up_allocated_words_diff
 | Domain_swept_words
 | Domain_gc_policy
 | Domain_major_slice_epoch
 | Domain_local_roots
 | Domain_ephe_info
 | Domain_final_info
 | Domain_backtrace_pos
 | Domain_backtrace_active
 | Domain_backtrace_buffer
 | Domain_backtrace_last_exn
 | Domain_compare_unordered
 | Domain_oo_next_id_local
 | Domain_requested_major_slice
 | Domain_requested_global_major_slice
 | Domain_requested_minor_gc
 | Domain_requested_external_interrupt
 | Domain_parser_trace
 | Domain_minor_heap_wsz
 | Domain_shared_heap
 | Domain_id
 | Domain_unique_id
 | Domain_dls_root
 | Domain_extra_heap_resources
 | Domain_extra_heap_resources_minor
 | Domain_dependent_size
 | Domain_dependent_allocated
 | Domain_slice_target
 | Domain_slice_budget
 | Domain_sweep_work_done_between_slices
 | Domain_mark_work_done_between_slices
 | Domain_extern_state
 | Domain_intern_state
 | Domain_stat_minor_words
 | Domain_stat_promoted_words
 | Domain_stat_major_words
 | Domain_stat_forced_major_collections
 | Domain_stat_blocks_marked
 | Domain_inside_stw_handler
 | Domain_trap_sp_off
 | Domain_trap_barrier_off
 | Domain_trap_barrier_block
 | Domain_external_raise
 | Domain_memprof
 | Domain_memprof_young_trigger
 | Domain_extra_params

Then after that delicious list, the page has:

val idx_of_field : t -> int

So idx_of_field takes a t and hands you back an int β€” slay, that's the whole signature βœ….


Cute sign-off time: this page was generated by OCamldoc, dated 2026-06-22, and it's the Domainstate(3) manual page. Bye bestie, go be iconic with your domain state πŸ«ΆπŸ’–βœ¨.

πŸ“¦ where this page comes from