Changeset 5198


Ignore:
Timestamp:
Sep 12, 2006, 4:29:33 AM (18 years ago)
Author:
Gary Byers
Message:

os_get_stack_bounds(): get stack direction right on FreeBSD.
(Much better than randomly scribbling on memory in the GC, as the
FreeBSD port has been doing for months now ...)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ccl/lisp-kernel/thread_manager.c

    r5164 r5198  
    345345#ifdef FREEBSD
    346346  pthread_attr_t attr;
     347  void * temp_base;
     348  size_t temp_size;
     349 
    347350
    348351  pthread_attr_init(&attr); 
    349352  pthread_attr_get_np(p, &attr);
    350   pthread_attr_getstackaddr(&attr,base);
    351   pthread_attr_getstacksize(&attr,size);
     353  pthread_attr_getstackaddr(&attr,&temp_base);
     354  pthread_attr_getstacksize(&attr,&temp_size);
     355  *base = (void *)((natural)temp_base + temp_size);
     356  *size = temp_size;
    352357#endif
    353358
Note: See TracChangeset for help on using the changeset viewer.