summaryrefslogtreecommitdiff
path: root/pr/src/misc/prthinfo.c
diff options
context:
space:
mode:
Diffstat (limited to 'pr/src/misc/prthinfo.c')
-rw-r--r--pr/src/misc/prthinfo.c14
1 files changed, 2 insertions, 12 deletions
diff --git a/pr/src/misc/prthinfo.c b/pr/src/misc/prthinfo.c
index 2cfac1b2..a278e0ad 100644
--- a/pr/src/misc/prthinfo.c
+++ b/pr/src/misc/prthinfo.c
@@ -134,24 +134,14 @@ PR_ThreadScanStackPointers(PRThread* t,
if (status != PR_SUCCESS)
return status;
+#ifndef GC_LEAK_DETECTOR
+ /* if thread is not allocated on stack, this is redundant. */
ptd = t->privateData;
for (index = 0; index < t->tpdLength; index++, ptd++) {
status = scanFun(t, (void**)ptd, 1, scanClosure);
if (status != PR_SUCCESS)
return status;
}
-
-#ifdef GC_LEAK_DETECTOR
- /*
- ** if the thread was allocated on its own stack, conservatively
- ** scan the thread object itself to keep all data structures
- ** referenced by the thread visible to the garbage collector.
- */
- if (t->threadAllocatedOnStack) {
- status = scanFun(t, (void**)t, (sizeof(PRThread) + 3) / sizeof(void*), scanClosure);
- if (status != PR_SUCCESS)
- return status;
- }
#endif
return PR_SUCCESS;