< prev index next >

test/hotspot/jtreg/vmTestbase/nsk/jvmti/SetThreadLocalStorage/setthrdstor002/setthrdstor002.cpp

Print this page
rev 52100 : 8212082: Remove the NSK_CPP_STUB macros for remaining vmTestbase/jvmti/[sS]*
Summary:
Reviewed-by:

*** 64,76 **** memset(storageData.data, STORAGE_DATA_CHAR, STORAGE_DATA_SIZE); NSK_DISPLAY1("SetThreadLocalStorage() for current agent thread with pointer: %p\n", (void*)initialStorage); ! if (!NSK_JVMTI_VERIFY( ! NSK_CPP_STUB3(SetThreadLocalStorage, jvmti, ! NULL, (void*)initialStorage))) { nsk_jvmti_setFailStatus(); return; } NSK_DISPLAY0("Let debuggee to run\n"); --- 64,74 ---- memset(storageData.data, STORAGE_DATA_CHAR, STORAGE_DATA_SIZE); NSK_DISPLAY1("SetThreadLocalStorage() for current agent thread with pointer: %p\n", (void*)initialStorage); ! if (!NSK_JVMTI_VERIFY(jvmti->SetThreadLocalStorage(NULL, (void*)initialStorage))) { nsk_jvmti_setFailStatus(); return; } NSK_DISPLAY0("Let debuggee to run\n");
*** 80,92 **** NSK_DISPLAY0("Wait for debuggee to run\n"); if (!nsk_jvmti_waitForSync(timeout)) return; NSK_DISPLAY0("GetThreadLocalStorage() for current agent thread\n"); ! if (!NSK_JVMTI_VERIFY( ! NSK_CPP_STUB3(GetThreadLocalStorage, jvmti, ! NULL, (void**)&obtainedStorage))) { nsk_jvmti_setFailStatus(); return; } NSK_DISPLAY1(" ... got storage: %p\n", (void*)obtainedStorage); --- 78,88 ---- NSK_DISPLAY0("Wait for debuggee to run\n"); if (!nsk_jvmti_waitForSync(timeout)) return; NSK_DISPLAY0("GetThreadLocalStorage() for current agent thread\n"); ! if (!NSK_JVMTI_VERIFY(jvmti->GetThreadLocalStorage(NULL, (void**)&obtainedStorage))) { nsk_jvmti_setFailStatus(); return; } NSK_DISPLAY1(" ... got storage: %p\n", (void*)obtainedStorage);
< prev index next >