Home | History | Annotate | Download | only in vm

Lines Matching refs:pArgs

1637     InternalStartArgs* pArgs;
1647 pArgs = (InternalStartArgs*) malloc(sizeof(*pArgs));
1648 pArgs->func = func;
1649 pArgs->funcArg = funcArg;
1650 pArgs->name = strdup(name); // storage will be owned by new thread
1651 pArgs->group = systemGroup;
1652 pArgs->isDaemon = true;
1653 pArgs->pThread = &newThread;
1654 pArgs->pCreateStatus = &createStatus;
1660 pArgs) != 0)
1663 free(pArgs->name);
1664 free(pArgs);
1692 /* don't free pArgs -- if pthread_create succeeded, child owns it */
1717 InternalStartArgs* pArgs = (InternalStartArgs*) arg;
1721 jniArgs.name = pArgs->name;
1722 jniArgs.group = reinterpret_cast<jobject>(pArgs->group);
1724 setThreadName(pArgs->name);
1727 if (dvmAttachCurrentThread(&jniArgs, pArgs->isDaemon)) {
1734 *pArgs->pCreateStatus = 1;
1735 *pArgs->pThread = dvmThreadSelf();
1740 dvmThreadSelf()->threadId, pArgs->name);
1743 (*pArgs->func)(pArgs->funcArg);
1754 *pArgs->pCreateStatus = -1;
1755 assert(*pArgs->pThread == NULL);
1759 assert(*pArgs->pThread == NULL);
1762 free(pArgs->name);
1763 free(pArgs);
1772 bool dvmAttachCurrentThread(const JavaVMAttachArgs* pArgs, bool isDaemon)
1867 if (pArgs->name != NULL) {
1868 threadNameStr = dvmCreateStringFromCstr(pArgs->name);
1894 dvmCallMethod(self, init, threadObj, &unused, (Object*)pArgs->group,
1943 self->threadId, pArgs->name);