< prev index next >
test/hotspot/jtreg/vmTestbase/nsk/jvmti/scenarios/events/EM04/em04t001/em04t001.cpp
Print this page
rev 52050 : [mq]: refactor
*** 109,121 ****
/* ============================================================================= */
static int
enableEvent(jvmtiEventMode enable, jvmtiEvent event) {
! if (!NSK_JVMTI_VERIFY(
! NSK_CPP_STUB4(SetEventNotificationMode, jvmti, enable,
! event, NULL))) {
nsk_jvmti_setFailStatus();
return NSK_FALSE;
}
return NSK_TRUE;
--- 109,119 ----
/* ============================================================================= */
static int
enableEvent(jvmtiEventMode enable, jvmtiEvent event) {
! if (!NSK_JVMTI_VERIFY(jvmti->SetEventNotificationMode(enable, event, NULL))) {
nsk_jvmti_setFailStatus();
return NSK_FALSE;
}
return NSK_TRUE;
*** 127,140 ****
memset(&eventCallbacks, 0, sizeof(eventCallbacks));
eventCallbacks.DynamicCodeGenerated = (stage == 1) ?
cbDynamicCodeGenerated1 : cbDynamicCodeGenerated2;
! if (!NSK_JVMTI_VERIFY(
! NSK_CPP_STUB3(SetEventCallbacks, jvmti,
! &eventCallbacks,
! sizeof(eventCallbacks))))
return NSK_FALSE;
return NSK_TRUE;
}
--- 125,135 ----
memset(&eventCallbacks, 0, sizeof(eventCallbacks));
eventCallbacks.DynamicCodeGenerated = (stage == 1) ?
cbDynamicCodeGenerated1 : cbDynamicCodeGenerated2;
! if (!NSK_JVMTI_VERIFY(jvmti->SetEventCallbacks(&eventCallbacks, sizeof(eventCallbacks))))
return NSK_FALSE;
return NSK_TRUE;
}
*** 151,163 ****
/* stage 2 */
if (!setCallBacks(2)) {
return;
}
! if (!NSK_JVMTI_VERIFY(
! NSK_CPP_STUB2(GenerateEvents, jvmti,
! JVMTI_EVENT_DYNAMIC_CODE_GENERATED)))
nsk_jvmti_setFailStatus();
{
int i;
const nsk_jvmti_DCG_params *rec;
--- 146,156 ----
/* stage 2 */
if (!setCallBacks(2)) {
return;
}
! if (!NSK_JVMTI_VERIFY(jvmti->GenerateEvents(JVMTI_EVENT_DYNAMIC_CODE_GENERATED)))
nsk_jvmti_setFailStatus();
{
int i;
const nsk_jvmti_DCG_params *rec;
< prev index next >