When the heap sampler was initially put in, we used enable/disable/enabled but we should be able to use should_post_sampled_object_alloc instead.
Note, there is a risk that a similar mechanism comes back for when we handle the per-thread system (JDK-8201655) but that can be done in a second webrev and determined then.
Note, there is a risk that a similar mechanism comes back for when we handle the per-thread system (