8248632: Shenandoah: build fails without both JVMTI and JFR

Reviewed-by: rkennke, zgu
This commit is contained in:
Aleksey Shipilev 2020-07-02 08:32:39 +02:00
parent 43a2010936
commit 00e0a60955

View File

@ -93,9 +93,11 @@ private:
JVMTI_ONLY(ShenandoahJVMTIWeakRoot _jvmti_weak_roots;)
JFR_ONLY(ShenandoahJFRWeakRoot _jfr_weak_roots;)
public:
ShenandoahSerialWeakRoots(ShenandoahPhaseTimings::Phase phase) :
JVMTI_ONLY(_jvmti_weak_roots(phase))
JFR_ONLY(JVMTI_ONLY(COMMA)_jfr_weak_roots(phase)) {};
ShenandoahSerialWeakRoots(ShenandoahPhaseTimings::Phase phase)
JVMTI_ONLY(: _jvmti_weak_roots(phase))
JFR_ONLY(NOT_JVMTI(:) JVMTI_ONLY(COMMA) _jfr_weak_roots(phase))
{};
void weak_oops_do(BoolObjectClosure* is_alive, OopClosure* keep_alive, uint worker_id);
void weak_oops_do(OopClosure* cl, uint worker_id);
};